NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Evaluate built macro
« previous
next »
Print
Pages: [
1
]
Author
Topic: Evaluate built macro (Read 15776 times)
QuestionGuy
New Member
Posts: 1
Evaluate built macro
«
on:
April 08, 2010, 07:08:40 PM »
Hi
!
How do I evaluate a macro built by another macro? A rather simple example:
Code:
[Select]
%macro test 0
%deftok one "%1"
%define a one
push byte one
%endmacro
I've tried using %[] and some strange combinations of %define, %defstr and %deftok without any results. Is it even possible to do this inside NASM without using anything else, such as the C preprocessor?
Logged
Frank Kotler
NASM Developer
Hero Member
Posts: 2667
Country:
Re: Evaluate built macro
«
Reply #1 on:
April 10, 2010, 12:56:42 AM »
I'm afraid I don't have the slightest idea what you're trying to do. Can you show how you'd use this macro, and what you want it to produce?
Best,
Frank
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Evaluate built macro