aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 16:55:42 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-05 16:55:42 -0500
commit3de7ab601d465581accfe3ff171aeed2808c9647 (patch)
treeab357b894c9457b3d1d38fd49300df34412168f8 /home
parentRemove trailing whitespace (diff)
downloadpokeyellow-3de7ab601d465581accfe3ff171aeed2808c9647.tar.gz
pokeyellow-3de7ab601d465581accfe3ff171aeed2808c9647.tar.xz
pokeyellow-3de7ab601d465581accfe3ff171aeed2808c9647.zip
Sync more with pokered
Diffstat (limited to 'home')
-rw-r--r--home/clear_sprites.asm2
-rw-r--r--home/uncompress.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/home/clear_sprites.asm b/home/clear_sprites.asm
index 34f4b4ec..79cc99d6 100644
--- a/home/clear_sprites.asm
+++ b/home/clear_sprites.asm
@@ -1,7 +1,7 @@
ClearSprites::
xor a
ld hl, wOAMBuffer
- ld b, 40 * 4
+ ld b, wOAMBufferEnd - wOAMBuffer
.loop
ld [hli], a
dec b
diff --git a/home/uncompress.asm b/home/uncompress.asm
index 182821aa..27474f2d 100644
--- a/home/uncompress.asm
+++ b/home/uncompress.asm
@@ -558,7 +558,7 @@ ResetSpriteBufferPointers::
; maps each nybble to its reverse
NybbleReverseTable::
- db $0, $8, $4, $c, $2, $a, $6 ,$e, $1, $9, $5, $d, $3, $b, $7 ,$f
+ db $0, $8, $4, $c, $2, $a, $6, $e, $1, $9, $5, $d, $3, $b, $7, $f
; combines the two loaded chunks with xor (the chunk loaded second is the destination). Both chunks are differeintial decoded beforehand.
UnpackSpriteMode2::