1

Inside a macro, I'd like to declare a string whose value is equal to the textual value of a macro argument.

For example, I want something like:

%macro foo 1
;; some other stuff that might use %1 unquoted
db "%1",0
%endmacro

foo bar

Which after macro expansion should result in the assembly:

db "bar",0

Which would assemble to the the string "bar" with a trailing null.

BeeOnRope
  • 60,350
  • 16
  • 207
  • 386

0 Answers0