summaryrefslogtreecommitdiff
path: root/include/macros/field_effect_script.inc
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2018-01-11 13:51:45 -0600
committerGitHub <noreply@github.com>2018-01-11 13:51:45 -0600
commit2b56f43fce75871f2be993d43b483ceefd0bfc0f (patch)
tree6fefa6a95a940c731ce7e551d1bc5c00a2626db0 /include/macros/field_effect_script.inc
parenta51b95150ba86a3982f613886471626f742aeacd (diff)
parente7672a1aeb5e42d6f4e416ede9f6220122d11743 (diff)
Merge branch 'master' into assert
Diffstat (limited to 'include/macros/field_effect_script.inc')
-rw-r--r--include/macros/field_effect_script.inc42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/macros/field_effect_script.inc b/include/macros/field_effect_script.inc
new file mode 100644
index 000000000..d5895b0ef
--- /dev/null
+++ b/include/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