From 2682bc5d1d864341aaeb42a449db73c3ecd16d70 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 30 Dec 2020 19:07:31 +0000 Subject: Initial import --- src/ubox/ubox_set_colors.z80 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/ubox/ubox_set_colors.z80 (limited to 'src/ubox/ubox_set_colors.z80') diff --git a/src/ubox/ubox_set_colors.z80 b/src/ubox/ubox_set_colors.z80 new file mode 100644 index 0000000..b4638b8 --- /dev/null +++ b/src/ubox/ubox_set_colors.z80 @@ -0,0 +1,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 + -- cgit v1.2.3