GB: Improve performance of the banked calls

This commit is contained in:
Toxa
2025-12-02 01:34:47 +03:00
parent 12e4ebe22c
commit 9e18a081bb

View File

@@ -9,14 +9,10 @@ ___sdcc_bcall_ehl:: ; Performs a long call.
ldh (__current_bank), a
ld (rROMB0), a ; Perform the switch
rst 0x20
push hl
ldhl sp, #3
ld h, (hl)
pop hl
ld l, a
ld a, h
ldh (__current_bank), a
ld (rROMB0), a
ld a, l
pop hl
add sp, #2
ret