Any idea how to pass variables instead of constant numbers to a macro?
E.g. instead of "MACRO 1" I would like to do "MACRO variable". But when I do this outside an expression, inside the macro {1} is converted into the string "variable" and not the content of the variable.
MAC TEST
Label{1}
.byte {1}
ENDM
variable SET 10
TEST variable
This works for the .byte instruction, but not for the label. I get "Labelvariable" instead of "Label10".
Any ideas?