aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_colors.z80
blob: b4638b8540efcc1b954f0756cb719dcb0179fdd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.globl _ubox_set_colors

CHGCLR = 0x0062
FORCLR = 0xf3e9
BAKCLR = 0xf3ea
BDRCLR = 0xf3eb

_ubox_set_colors::
	ld hl, #2
	add hl, sp

	ld a, (hl)
	inc hl
	ld (FORCLR), a
	ld a, (hl)
	inc hl
	ld (BAKCLR), a
	ld a, (hl)
	inc hl
	ld (BDRCLR), a
	call CHGCLR
	ret