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_put_tile.z80 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ubox/ubox_put_tile.z80') diff --git a/src/ubox/ubox_put_tile.z80 b/src/ubox/ubox_put_tile.z80 index 1bdf3ce..24e58b2 100644 --- a/src/ubox/ubox_put_tile.z80 +++ b/src/ubox/ubox_put_tile.z80 @@ -1,6 +1,7 @@ .globl _ubox_put_tile WRTVRM = 0x004d +BG_TILE_MAP = 0x1800 _ubox_put_tile:: ld hl, #2 @@ -23,7 +24,7 @@ _ubox_put_tile:: ld b, #0 add hl, bc - ld bc, #0x1800 + ld bc, #BG_TILE_MAP add hl, bc jp WRTVRM -- cgit v1.2.3