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_get_tile.z80 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ubox/ubox_get_tile.z80') diff --git a/src/ubox/ubox_get_tile.z80 b/src/ubox/ubox_get_tile.z80 index 49dcb30..3a6004d 100644 --- a/src/ubox/ubox_get_tile.z80 +++ b/src/ubox/ubox_get_tile.z80 @@ -1,6 +1,7 @@ .globl _ubox_get_tile RDVRM = 0x004a +BG_TILE_MAP = 0x1800 _ubox_get_tile:: ld hl, #2 @@ -19,7 +20,7 @@ _ubox_get_tile:: add hl, hl add hl, bc - ld bc, #0x1800 + ld bc, #BG_TILE_MAP add hl, bc call RDVRM -- cgit v1.2.3