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_pat8_flip.z80 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ubox/ubox_set_sprite_pat8_flip.z80') diff --git a/src/ubox/ubox_set_sprite_pat8_flip.z80 b/src/ubox/ubox_set_sprite_pat8_flip.z80 index a3f8d1d..fdcf9ec 100644 --- a/src/ubox/ubox_set_sprite_pat8_flip.z80 +++ b/src/ubox/ubox_set_sprite_pat8_flip.z80 @@ -1,6 +1,7 @@ .globl _ubox_set_sprite_pat8_flip WRTVRM = 0x004d +SP_PATTERNS = 0x3800 _ubox_set_sprite_pat8_flip:: ld hl, #2 @@ -16,7 +17,7 @@ _ubox_set_sprite_pat8_flip:: add hl, hl add hl, hl add hl, hl - ld bc, #0x3800 + ld bc, #SP_PATTERNS add hl, bc ld b, #8 -- cgit v1.2.3