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