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

@@ -2805,9 +2805,9 @@ ApplyBGMapAnchorToObjects:
pop hl
ret
PRIORITY_LOW EQU $10
PRIORITY_NORM EQU $20
PRIORITY_HIGH EQU $30
DEF PRIORITY_LOW EQU $10
DEF PRIORITY_NORM EQU $20
DEF PRIORITY_HIGH EQU $30
InitSprites:
call .DeterminePriorities

View File

@@ -601,7 +601,7 @@ DoPlayerMovement::
ld [wWalkingTile], a
ret
player_action: MACRO
MACRO player_action
; walk direction, facing, x movement, y movement, tile collision pointer
db \1, \2, \3, \4
dw \5