From ce3c89948e6fc3c7234e8f47e048d74f917e6bf9 Mon Sep 17 00:00:00 2001 From: Pedro de Medeiros Date: Fri, 7 Jan 2022 15:53:15 -0300 Subject: Replacing VRAM magic numbers with constants --- src/ubox/ubox_set_sprite_pat16.z80 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ubox/ubox_set_sprite_pat16.z80') diff --git a/src/ubox/ubox_set_sprite_pat16.z80 b/src/ubox/ubox_set_sprite_pat16.z80 index 4689267..59d7ccb 100644 --- a/src/ubox/ubox_set_sprite_pat16.z80 +++ b/src/ubox/ubox_set_sprite_pat16.z80 @@ -1,6 +1,8 @@ .globl _ubox_set_sprite_pat16 .globl _ubox_write_vm +SP_PATTERNS = 0x3800 + _ubox_set_sprite_pat16:: ld hl, #2 add hl, sp @@ -17,7 +19,7 @@ _ubox_set_sprite_pat16:: add hl, hl add hl, hl add hl, hl - ld bc, #0x3800 + ld bc, #SP_PATTERNS add hl, bc push de -- cgit v1.2.3