Simple case:
mv EQU DAT
xx mv xx
will become
DAT.F # 0, $ -1
Multiline macro:
my EQU MOV 0, 0
EQU NOP 1, bb
EQU DAT 2
aa my aa
bb my aa
my aa
will become
MOV.I $ 0, $ 0
NOP.F $ 1, $ 2
DAT.F # 0, $ -1
MOV.I $ 0, $ 0
NOP.F $ 1, $ -1
DAT.F # 0, $ -4
MOV.I $ 0, $ 0
NOP.F $ 1, $ -4
DAT.F # 0, $ -7
Check :
- aa; -1 shift same problem as you reported
- bb; first is correct, but later two are wrong
- DAT 2,aa; number 2 disapeared