summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorDaniel Harding <corrnondacqb@yahoo.com>2015-07-20 17:40:25 -0500
committerDaniel Harding <corrnondacqb@yahoo.com>2015-07-20 17:40:25 -0500
commit13e28b0ece7c7888cba792cc6f7219b384213427 (patch)
tree4dcd58e0fe7ac33bf38817f423754dc758cb902f /macros.asm
parent64b4cf624fe2175e2c7539b91bc41b6dae28a00e (diff)
parentdb7d941d22d89cf8d6d13cbf768208c5cf2ac2c2 (diff)
Merge pull request #106 from YamaArashi/master
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