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_tiles.z80 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ubox/ubox_set_tiles.z80') diff --git a/src/ubox/ubox_set_tiles.z80 b/src/ubox/ubox_set_tiles.z80 index fbb2ff9..7e4f42e 100644 --- a/src/ubox/ubox_set_tiles.z80 +++ b/src/ubox/ubox_set_tiles.z80 @@ -1,21 +1,22 @@ .globl _ubox_set_tiles LDIRVM = 0x005c +BG_TILES = 0x0 _ubox_set_tiles:: - ld de, #0 + ld de, #BG_TILES ld bc, #256 * 8 push hl call LDIRVM pop hl - ld de, #256 * 8 + ld de, #BG_TILES + #256 * 8 ld bc, #256 * 8 push hl call LDIRVM pop hl - ld de, #256 * 8 * 2 + ld de, #BG_TILES + #256 * 8 * 2 ld bc, #256 * 8 jp LDIRVM -- cgit v1.2.3