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,9 +1,9 @@
INCLUDE "engine/gfx/sgb_layouts.asm"
SHINY_ATK_BIT EQU 5
SHINY_DEF_VAL EQU 10
SHINY_SPD_VAL EQU 10
SHINY_SPC_VAL EQU 10
DEF SHINY_ATK_BIT EQU 5
DEF SHINY_DEF_VAL EQU 10
DEF SHINY_SPD_VAL EQU 10
DEF SHINY_SPC_VAL EQU 10
CheckShininess:
; Check if a mon is shiny by DVs at bc.

View File

@@ -247,7 +247,7 @@ GetMonBackpic:
FixPicBank:
; This is a thing for some reason.
PICS_FIX EQU $36
DEF PICS_FIX EQU $36
EXPORT PICS_FIX
push hl

View File

@@ -46,11 +46,11 @@ AnimateMon_HOF:
call AnimateFrontpic
ret
pokeanim: MACRO
rept _NARG
db (PokeAnim_\1_SetupCommand - PokeAnim_SetupCommands) / 2
shift
endr
MACRO pokeanim
rept _NARG
db (PokeAnim_\1_SetupCommand - PokeAnim_SetupCommands) / 2
shift
endr
db (PokeAnim_Finish_SetupCommand - PokeAnim_SetupCommands) / 2
ENDM
@@ -128,7 +128,7 @@ SetUpPokeAnim:
scf
ret
add_setup_command: MACRO
MACRO add_setup_command
\1_SetupCommand:
dw \1
ENDM
@@ -533,12 +533,12 @@ PokeAnim_CopyBitmaskToBuffer:
.Sizes: db 4, 5, 7
poke_anim_box: MACRO
for y, 1, \1 + 1
for x, 7 - \1, 7
db y * 7 + x
endr
endr
MACRO poke_anim_box
for y, 1, \1 + 1
for x, 7 - \1, 7
db y * 7 + x
endr
endr
ENDM
PokeAnim_ConvertAndApplyBitmask: