gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/sm83/cgb_compat.s
1 .include "global.s"
2
3 .title "CGB support"
4 .module CGB
5
6 .globl _set_sprite_palette, _set_bkg_palette
7
8 .area _CODE
9
10 _cgb_compatibility::
11 _set_default_palette::
12 ld bc, #1$
13 xor a
14 ld e, #1
15 push bc
16 call _set_sprite_palette ; preserve BC
17
18 xor a
19 ld e, #1
20 push bc
21 call _set_bkg_palette
22 ret
23
24 1$:
25 .dw 0x7FFF, 0x56B5, 0x294A, 0x0000
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.