Re: macros, local variables...

2004-10-10 Thread William Coleda
Leopold Toetsch wrote: .macro swapP (A,B) $P0 = .A .A = .B .B = $P0 .endm (untested) Seems to work, thanks. *But* we have an opcode called *exchange* ... It's even JITted on i386. This was just an example. Thanks. leo

Re: macros, local variables...

2004-10-08 Thread Leopold Toetsch
William Coleda wrote: 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

macros, local variables...

2004-10-07 Thread William Coleda
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

Re: macros, local variables...

2004-10-07 Thread Michael Walter
gensym, hehe. History repeats ;-) - Michael On Thu, 07 Oct 2004 21:49:22 -0400, William Coleda [EMAIL PROTECTED] wrote: 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