A macro example in the docs shows:

 .macro swap (A,B,TEMP) # . marks the directive
   set .TEMP,.A         # . marks the special variable.
   set .A,.B
   set .B,.TEMP
 .endm                  # And . marks the end of the macro.


Is there a way to write this macro without specifying the TEMP parameter? For example, something like:

.macro swap (A,B)
 .local pmc .TEMP
 .TEMP = .A
 .A = .B
 .B = .TEMP
.endm

I've tried a few obvious permutations, but don't see anything that works as is.

Reply via email to