diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-24 18:34:33 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-24 18:34:33 -0400 |
commit | 2fe0cbbb19df504723934f39473064033c64ef6f (patch) | |
tree | a00fa3bc7810467bbfcdd215454d54745baa6e17 /engine/gfx/pic_animation.asm | |
parent | dc18e188b2948ede03328c0c0cf7ab423cacc861 (diff) |
Add some comments regarding 16-bit increment/decrement
Diffstat (limited to 'engine/gfx/pic_animation.asm')
-rw-r--r-- | engine/gfx/pic_animation.asm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engine/gfx/pic_animation.asm b/engine/gfx/pic_animation.asm index 62d9ad6d7..d3a176f29 100644 --- a/engine/gfx/pic_animation.asm +++ b/engine/gfx/pic_animation.asm @@ -628,14 +628,16 @@ PokeAnim_ConvertAndApplyBitmask: call AddNTimes ld a, [wBoxAlignment] and a - jr nz, .go + jr nz, .subtract + ; hl += [wPokeAnimBitmaskCurCol] ld a, [wPokeAnimBitmaskCurCol] ld e, a ld d, 0 add hl, de - jr .skip2 + jr .done -.go +.subtract + ; hl -= [wPokeAnimBitmaskCurCol] ld a, [wPokeAnimBitmaskCurCol] ld e, a ld a, l @@ -645,7 +647,7 @@ PokeAnim_ConvertAndApplyBitmask: sbc 0 ld h, a -.skip2 +.done ret .UnusedSizeData: ; unreferenced |