I'd like to use EITHER a constant or a register as arg0 (@0) in a macro, so that either of the following two cases works:
"MyMacroName tempreg" (where tempreg = r16)
In the macro, the only real difference would be that I would be either loading the constant, or moving the register, respectively, to another register.
Thinking that in the case of a constant, the constant would appear 'undefined' to the assembler, in the macro definition I've tried this:
but the assembler didn't like like the 'ifndef' when a number was used as arg0 - seemed ok when arg0 was 'tempreg' though.
Any ideas would be appreciated.