aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_colors.z80
blob: 4b89c997f4c531b9d2fc78e25bb7a82250b54aac (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 (FORCLR), a
	ld a, l
	ld (BAKCLR), a

	ld hl, #2
	add hl, sp
	ld a, (hl)
	ld (BDRCLR), a

	call CHGCLR

	pop hl
	inc sp
	jp (hl)