diff options
author | Pedro de Medeiros <pedro.medeiros@gmail.com> | 2022-01-07 15:53:15 -0300 |
---|---|---|
committer | Pedro de Medeiros <pedro.medeiros@gmail.com> | 2022-01-07 15:59:19 -0300 |
commit | ce3c89948e6fc3c7234e8f47e048d74f917e6bf9 (patch) | |
tree | d9e29728697bc3ccf34d322a29a7e9b47e6ea2b0 /src/ubox/ubox_set_sprite_attr.z80 | |
parent | c149e9f96d9f6901656a2dfe4482bb8b45f1f62b (diff) | |
download | ubox-msx-lib-ce3c89948e6fc3c7234e8f47e048d74f917e6bf9.tar.gz ubox-msx-lib-ce3c89948e6fc3c7234e8f47e048d74f917e6bf9.zip |
Replacing VRAM magic numbers with constants
Diffstat (limited to 'src/ubox/ubox_set_sprite_attr.z80')
-rw-r--r-- | src/ubox/ubox_set_sprite_attr.z80 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ubox/ubox_set_sprite_attr.z80 b/src/ubox/ubox_set_sprite_attr.z80 index fe573b6..4e5c80e 100644 --- a/src/ubox/ubox_set_sprite_attr.z80 +++ b/src/ubox/ubox_set_sprite_attr.z80 @@ -1,6 +1,8 @@ .globl _ubox_set_sprite_attr .globl _ubox_write_vm +SP_ATTRS = 0x1b00 + _ubox_set_sprite_attr:: ld hl, #2 add hl, sp @@ -14,7 +16,7 @@ _ubox_set_sprite_attr:: sla l sla l ld h, #0 - ld bc, #0x1b00 + ld bc, #SP_ATTRS add hl, bc push de |