gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/z80/gg/___sdcc_bcall.s
1 .include "global.s"
2
3 .area _CODE
4
5 .globl ___sdcc_bcall
6 .globl ___sdcc_bcall_abc
7 ;
8 ; trampoline to call banked functions
9 ; used when legacy banking is enabled only
10 ; Usage:
11 ; call ___sdcc_bcall
12 ; .dw <function>
13 ; .dw <function_bank>
14 ;
15 ___sdcc_bcall::
16 ex (sp), hl
17 ld c, (hl)
18 inc hl
19 ld b, (hl)
20 inc hl
21 ld a, (hl)
22 inc hl
23 inc hl
24 ex (sp), hl
25 jp ___sdcc_bcall_abc
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.