The simple macros I know. Such as;
MACRO NAME
code....
ENDM
MACRO setAXY x,y,z
LDA #x
LDX #y
LDY #z
ENDM
I wonder if there are any other configurations? The source code that I'm dealing with is from the old PDS 6502 assembler with different macro syntax and supports some "expressions" or operators specifically for macros.
Code: Select all
VRSET $2000 ; called macro in code
MACRO VRSET
LDA #>@1
STA $2006
LDA #<@1
STA $2006
ENDMFor example.
Code: Select all
EXAMPLE $2000,4*4,$85 ; from code.
MACRO EXAMPLE
LDA #>@1
STA $2006
LDA #<@1
STA $2006
LDA #@2
STA $2007
LDA #@3
STA $2007
ENDM
EDIT: I think I just figured it out. I'll keep you posted.