gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/z80/msxdos/___sdcc_bcall.s
1 .include "global.s"
2
3 .area _CODE
4
5 .globl ___sdcc_bcall
6 .globl ___sdcc_bcall_abc
7
8 ;
9 ; trampoline to call banked functions
10 ; used when legacy banking is enabled only
11 ; Usage:
12 ; call ___sdcc_bcall
13 ; .dw <function>
14 ; .dw <function_bank>
15 ;
16 ___sdcc_bcall::
17 ex (sp), hl
18 ld c, (hl)
19 inc hl
20 ld b, (hl)
21 inc hl
22 ld a, (hl)
23 inc hl
24 inc hl
25 ex (sp), hl
26 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.