aboutsummaryrefslogtreecommitdiffstats
path: root/macros.asm
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2014-05-12 17:41:21 -0500
committerMarcus Huderle <huderlem@gmail.com>2014-05-12 17:41:21 -0500
commit36d588a83c249e2df7a3177eb7aa22e2b09658e0 (patch)
tree5c98d8090ac12e4ac400fd7ceb7631bd8b68caed /macros.asm
parentDocumented/labeled lots of move-effect-related stuff. (diff)
parentMerge remote-tracking branch 'iimarckus/master' (diff)
downloadpokeyellow-36d588a83c249e2df7a3177eb7aa22e2b09658e0.tar.gz
pokeyellow-36d588a83c249e2df7a3177eb7aa22e2b09658e0.tar.xz
pokeyellow-36d588a83c249e2df7a3177eb7aa22e2b09658e0.zip
Merged with yenatch
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index b5d0ff7c..a0732705 100644
--- a/macros.asm
+++ b/macros.asm
@@ -11,6 +11,18 @@ page EQUS "db $49," ; Start a new Pokedex page.
dex EQUS "db $5f, $50" ; End a Pokedex entry.
+callba: MACRO
+ ld b, BANK(\1)
+ ld hl, \1
+ call Bankswitch
+ ENDM
+
+callab: MACRO
+ ld hl, \1
+ ld b, BANK(\1)
+ call Bankswitch
+ ENDM
+
;\1 = X
;\2 = Y
FuncCoord: MACRO