summaryrefslogtreecommitdiff
path: root/home/uncompress.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/uncompress.asm')
-rw-r--r--home/uncompress.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/uncompress.asm b/home/uncompress.asm
index 69d94cb0..9d08aa60 100644
--- a/home/uncompress.asm
+++ b/home/uncompress.asm
@@ -20,8 +20,8 @@ UncompressSpriteData::
; initializes necessary data to load a sprite and runs UncompressSpriteDataLoop
_UncompressSpriteData::
ld hl, sSpriteBuffer1
- ld c, (2*SPRITEBUFFERSIZE) % $100
- ld b, (2*SPRITEBUFFERSIZE) / $100
+ ld c, LOW(2 * SPRITEBUFFERSIZE)
+ ld b, HIGH(2 * SPRITEBUFFERSIZE)
xor a
call FillMemory ; clear sprite buffer 1 and 2
ld a, $1