RGBDS syntax updates (#905)

New MACRO and DEF syntax
This commit is contained in:
vulcandth
2022-06-06 16:25:42 -05:00
committed by GitHub
parent a4d346cc8c
commit 3648afda16
179 changed files with 2546 additions and 2545 deletions

View File

@@ -1,4 +1,4 @@
battleanimoam: MACRO
MACRO battleanimoam
; vtile offset, data length, data pointer
db \1, \2
dw \3

View File

@@ -1,4 +1,4 @@
anim_obj_gfx: MACRO
MACRO anim_obj_gfx
; # tiles, gfx pointer
db \1
dba \2

View File

@@ -1,7 +1,7 @@
ABSOLUTE_X EQU $00
RELATIVE_X EQU $01
DEF ABSOLUTE_X EQU $00
DEF RELATIVE_X EQU $01
battleanimobj: MACRO
MACRO battleanimobj
db \1 ; flags
; bit 7: priority
; bit 6: y flip (for enemy)