summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-02-11 15:03:42 -0800
committeryenatch <yenatch@gmail.com>2015-02-11 15:03:42 -0800
commitb048ea0faf295832faa3f113ccb9308b60b0b11e (patch)
treea89a9c66c38f591c6bd889b303df1d583bd34eb8 /macros
parent8bc89189cc8d6059d8eda1b2dd2ed952e7c6fd1d (diff)
Use labels for script specials instead of constants/static values.
Diffstat (limited to 'macros')
-rw-r--r--macros/event.asm10
1 files changed, 9 insertions, 1 deletions
diff --git a/macros/event.asm b/macros/event.asm
index 82468c2a8..238f18f85 100644
--- a/macros/event.asm
+++ b/macros/event.asm
@@ -80,11 +80,19 @@ callasm: macro
dw \1
endm
+
special: macro
db $0f
- dw \1 ; predefined_script
+ dw (\1Special - SpecialsPointers) / 3
endm
+add_special: MACRO
+\1Special::
+ db BANK(\1)
+ dw \1
+ENDM
+
+
ptcallasm: macro
db $10
dw \1 ; asm