Port homecall macro
This commit is contained in:
12
macros.asm
12
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
|
||||
|
||||
|
Reference in New Issue
Block a user