aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_tiles.z80
diff options
context:
space:
mode:
authorPedro de Medeiros <pedro.medeiros@gmail.com>2022-01-07 15:53:15 -0300
committerPedro de Medeiros <pedro.medeiros@gmail.com>2022-01-07 15:59:19 -0300
commitce3c89948e6fc3c7234e8f47e048d74f917e6bf9 (patch)
treed9e29728697bc3ccf34d322a29a7e9b47e6ea2b0 /src/ubox/ubox_set_tiles.z80
parentc149e9f96d9f6901656a2dfe4482bb8b45f1f62b (diff)
downloadubox-msx-lib-ce3c89948e6fc3c7234e8f47e048d74f917e6bf9.tar.gz
ubox-msx-lib-ce3c89948e6fc3c7234e8f47e048d74f917e6bf9.zip
Replacing VRAM magic numbers with constants
Diffstat (limited to 'src/ubox/ubox_set_tiles.z80')
-rw-r--r--src/ubox/ubox_set_tiles.z807
1 files changed, 4 insertions, 3 deletions
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