gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/z80/emu_debug_printf.s
1 .include "global.s"
2
3 .title "EMU_debug"
4 .module EMU_debug
5
6 .area _HOME
7
8 ;;void EMU_printf(const unsigned char * fmt, ...)
9 _EMU_printf::
10 ld hl, #2
11 add hl, sp
12 ld e, (hl)
13 inc hl
14 ld d, (hl)
15 inc hl
16 ex de, hl
17
18 ld d, d
19 jr 1$
20 .dw 0x6464
21 .dw 0x0200
22 1$:
23 ret
24
25 ;;void EMU_fmtbuf(const unsigned char * fmt, void * data)
26 _EMU_fmtbuf::
27 ld d, d
28 jr 1$
29 .dw 0x6464
30 .dw 0x0200
31 1$:
32 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.