diff options
author | yenatch <yenatch@gmail.com> | 2015-02-11 15:03:42 -0800 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2015-02-11 15:03:42 -0800 |
commit | b048ea0faf295832faa3f113ccb9308b60b0b11e (patch) | |
tree | a89a9c66c38f591c6bd889b303df1d583bd34eb8 /macros | |
parent | 8bc89189cc8d6059d8eda1b2dd2ed952e7c6fd1d (diff) |
Use labels for script specials instead of constants/static values.
Diffstat (limited to 'macros')
-rw-r--r-- | macros/event.asm | 10 |
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 |