aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_sprite_pat8_flip.z80
diff options
context:
space:
mode:
authorJuan J. Martínez <jjm@usebox.net>2022-01-07 19:07:59 +0000
committerJuan J. Martínez <jjm@usebox.net>2022-01-07 19:07:59 +0000
commit0b007b77028aa3ef2056ff915b0a197576b3c4f9 (patch)
treed9e29728697bc3ccf34d322a29a7e9b47e6ea2b0 /src/ubox/ubox_set_sprite_pat8_flip.z80
parentc149e9f96d9f6901656a2dfe4482bb8b45f1f62b (diff)
parentce3c89948e6fc3c7234e8f47e048d74f917e6bf9 (diff)
downloadubox-msx-lib-0b007b77028aa3ef2056ff915b0a197576b3c4f9.tar.gz
ubox-msx-lib-0b007b77028aa3ef2056ff915b0a197576b3c4f9.zip
Merge branch 'master' into 'master'
Replacing VRAM magic numbers with constants See merge request reidrac/ubox-msx-lib!23
Diffstat (limited to 'src/ubox/ubox_set_sprite_pat8_flip.z80')
-rw-r--r--src/ubox/ubox_set_sprite_pat8_flip.z803
1 files changed, 2 insertions, 1 deletions
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