diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-07 11:10:29 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-07 11:10:29 -0400 |
| commit | 45ed05decf330faab4503fe8fecadc54698c9724 (patch) | |
| tree | add3eeda2d09334209abe4e55341b674e64dd117 /home/uncompress.asm | |
| parent | PSYCHIC -> PSYCHIC_TYPE (PSYCHIC is ambiguous with PSYCHIC_M) (diff) | |
| download | pokeyellow-45ed05decf330faab4503fe8fecadc54698c9724.tar.gz pokeyellow-45ed05decf330faab4503fe8fecadc54698c9724.tar.xz pokeyellow-45ed05decf330faab4503fe8fecadc54698c9724.zip | |
Use HIGH() and LOW()
Diffstat (limited to 'home/uncompress.asm')
| -rw-r--r-- | home/uncompress.asm | 4 |
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 |
