summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-07-19 11:56:13 -0700
committerYamaArashi <shadow962@live.com>2015-07-19 11:56:13 -0700
commit02bd91b7076165653a900a8e39c12a92a9bd2976 (patch)
tree90590dc9f3b05eb19697ba81ec3467ac533c8f1b /macros.asm
parent64b4cf624fe2175e2c7539b91bc41b6dae28a00e (diff)
jpab/jpba macros
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 ba83e73a..659b0722 100644
--- a/macros.asm
+++ b/macros.asm
@@ -53,6 +53,18 @@ callab: MACRO
call Bankswitch
ENDM
+jpba: MACRO
+ ld b, BANK(\1)
+ ld hl, \1
+ jp Bankswitch
+ ENDM
+
+jpab: MACRO
+ ld hl, \1
+ ld b, BANK(\1)
+ jp Bankswitch
+ ENDM
+
bcd2: MACRO
dn ((\1) / 1000) % 10, ((\1) / 100) % 10
dn ((\1) / 10) % 10, (\1) % 10