git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 9e18a081bba552464893f142d6c6fa850b9f47b1
parent 12e4ebe22cf7e07358ddca7c335a922e35f0baa3
Author: Toxa <untoxa@mail.ru>
Date:   Tue,  2 Dec 2025 01:34:47 +0300

GB: Improve performance of the banked calls

Diffstat:
Mgbdk-lib/libc/targets/sm83/___sdcc_bcall_ehl.s6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gbdk-lib/libc/targets/sm83/___sdcc_bcall_ehl.s b/gbdk-lib/libc/targets/sm83/___sdcc_bcall_ehl.s @@ -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

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.