gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/z80/set_palette.s
1 ;; SMS palette routines
2
3 .include "global.s"
4
5 .title "CRAM SMS Palettes"
6 .module CRAMUtils
7
8 .globl .CRT_DEFAULT_PALETTE, _set_palette
9
10 .area _HOME
11
12 _set_default_palette::
13 ld hl, #.CRT_DEFAULT_PALETTE
14 push hl
15 ld hl, #0x0100
16 push hl
17 call _set_palette
18 ld hl, #.CRT_DEFAULT_PALETTE
19 push hl
20 ld hl, #0x0101
21 push hl
22 call _set_palette
23 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.