summaryrefslogtreecommitdiff
path: root/asm/macros/field_effect_script.inc
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-10-28 15:41:15 -0700
committerYamaArashi <shadow962@live.com>2016-10-28 15:41:15 -0700
commitd9e59a388c7c4b2464769963b3d58980ce742f70 (patch)
treedc2c4dc78b6272854bfddd83c029323acd712391 /asm/macros/field_effect_script.inc
parent38076cb64093e5d50323075516b832111dc59c92 (diff)
included .s to .inc
Diffstat (limited to 'asm/macros/field_effect_script.inc')
-rw-r--r--asm/macros/field_effect_script.inc42
1 files changed, 42 insertions, 0 deletions
diff --git a/asm/macros/field_effect_script.inc b/asm/macros/field_effect_script.inc
new file mode 100644
index 000000000..d5895b0ef
--- /dev/null
+++ b/asm/macros/field_effect_script.inc
@@ -0,0 +1,42 @@
+ .macro loadtiles address
+ .byte 0
+ .4byte \address
+ .endm
+
+ .macro loadfadedpal address
+ .byte 1
+ .4byte \address
+ .endm
+
+ .macro loadpal address
+ .byte 2
+ .4byte \address
+ .endm
+
+ .macro callnative address
+ .byte 3
+ .4byte \address
+ .endm
+
+ .macro end
+ .byte 4
+ .endm
+
+ .macro loadgfx_callnative tiles_address, palette_address, function_address
+ .byte 5
+ .4byte \tiles_address
+ .4byte \palette_address
+ .4byte \function_address
+ .endm
+
+ .macro loadtiles_callnative tiles_address, function_address
+ .byte 6
+ .4byte \tiles_address
+ .4byte \function_address
+ .endm
+
+ .macro loadfadedpal_callnative palette_address, function_address
+ .byte 7
+ .4byte \palette_address
+ .4byte \function_address
+ .endm