pokecrystal-board/macros/rst.asm

22 lines
265 B
NASM
Raw Normal View History

MACRO farcall ; bank, address
2015-01-20 14:26:16 -08:00
ld a, BANK(\1)
ld hl, \1
rst FarCall
2017-12-28 13:31:16 -08:00
ENDM
2015-01-20 14:26:16 -08:00
MACRO callfar ; address, bank
2015-01-20 14:26:16 -08:00
ld hl, \1
ld a, BANK(\1)
rst FarCall
2017-12-28 13:31:16 -08:00
ENDM
2017-12-13 21:36:24 -08:00
MACRO homecall
ldh a, [hROMBank]
2017-12-13 21:36:24 -08:00
push af
ld a, BANK(\1)
rst Bankswitch
call \1
pop af
rst Bankswitch
2017-12-28 13:31:16 -08:00
ENDM