mirror of
https://github.com/gbdk-2020/gbdk-2020.git
synced 2026-02-20 00:32:21 +01:00
18 lines
532 B
ArmAsm
18 lines
532 B
ArmAsm
.include "global.s"
|
|
|
|
.area _HOME
|
|
|
|
___sdcc_bcall_ehl:: ; Performs a long call.
|
|
ldh a, (__current_bank)
|
|
push af ; Push the current bank onto the stack
|
|
ld a, e
|
|
ldh (__current_bank), a
|
|
ld (rROMB0), a ; Perform the switch
|
|
rst 0x20
|
|
pop hl
|
|
ld l, a
|
|
ld a, h
|
|
ldh (__current_bank), a
|
|
ld (rROMB0), a
|
|
ld a, l
|
|
ret |