summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-05-27 10:41:59 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-05-27 10:41:59 -0400
commit789ebc73042e07b5e50b3cc3c17ebd1df141f000 (patch)
tree4b8ef20101e73ba626751ec76d86888274b84486 /macros.asm
parentbfe2f6d52e035ea03a372cabb18ba5cf57823bf9 (diff)
Port homecall macro
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 e72d2ee66..c4fd73b3e 100644
--- a/macros.asm
+++ b/macros.asm
@@ -302,3 +302,15 @@ ENDC
endr
endm
+homecall: MACRO
+ ld a, [hROMBank]
+ push af
+ ld a, BANK(\1)
+ rst Bankswitch
+
+ call \1
+
+ pop af
+ rst Bankswitch
+ENDM
+