summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorU-Fish-PC\Daniel <corrnondacqb@yahoo.com>2014-05-19 10:38:20 -0400
committerU-Fish-PC\Daniel <corrnondacqb@yahoo.com>2014-05-19 16:05:19 -0400
commit1a0992a2f16ba2026c7fbf9fcfd1576a0f81c329 (patch)
tree0981af81f93d33b07cbfe47674d87ae4aa2d46b0 /macros.asm
parent82ffb336a975fe8cf9c3953fc380339feaae65b3 (diff)
parentd218d1972a9be5b9d0025a17842239e1fbf5b622 (diff)
Merge branch 'master' of https://github.com/huderlem/pokered into pull-data
Conflicts: main.asm text.asm text/maps/route_22.asm
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