aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_colors.z80
blob: 74a5b7f7deee7fa19dc518b37bd17151e1e814ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.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)
	ld (BDRCLR), a
	call CHGCLR
	ret