pokeemerald/asm/macros/field_effect_script.inc

45 lines
911 B
PHP
Raw Normal View History

2022-01-24 00:26:22 +00:00
@ The first .byte argument of each macro below is an index into gFieldEffectScriptFuncs
2022-01-23 23:51:56 +00:00
.macro field_eff_loadtiles address:req
.byte 0
.4byte \address
.endm
2022-01-23 23:51:56 +00:00
.macro field_eff_loadfadedpal address:req
.byte 1
.4byte \address
.endm
2022-01-23 23:51:56 +00:00
.macro field_eff_loadpal address:req
.byte 2
.4byte \address
.endm
2022-01-23 23:51:56 +00:00
.macro field_eff_callnative address:req
.byte 3
.4byte \address
.endm
.macro field_eff_end
.byte 4
.endm
2022-01-23 23:51:56 +00:00
.macro field_eff_loadgfx_callnative tiles_address:req, palette_address:req, function_address:req
.byte 5
.4byte \tiles_address
.4byte \palette_address
.4byte \function_address
.endm
2022-01-23 23:51:56 +00:00
.macro field_eff_loadtiles_callnative tiles_address:req, function_address:req
.byte 6
.4byte \tiles_address
.4byte \function_address
.endm
2022-01-23 23:51:56 +00:00
.macro field_eff_loadfadedpal_callnative palette_address:req, function_address:req
.byte 7
.4byte \palette_address
.4byte \function_address
.endm