#3883 - cabaret voltaire - Tue Mar 11, 2003 6:16 pm
Is it possible to supply variables/registers/etc as arguements with macros?
I have a macro, putpixel, which has 3 arguements x,y,colour and works fine if I do:-
putpixel 12,12,0xFF
it works fine, but if I do:-
putpixel X,Y,COLOR ; or putpixel r0,r1,r2
where X,Y and COLOR are variables it wont work. Should this be possible, and if so could someone post an example?
Any help would be appreciated, thanks.
I have a macro, putpixel, which has 3 arguements x,y,colour and works fine if I do:-
putpixel 12,12,0xFF
it works fine, but if I do:-
putpixel X,Y,COLOR ; or putpixel r0,r1,r2
where X,Y and COLOR are variables it wont work. Should this be possible, and if so could someone post an example?
Any help would be appreciated, thanks.