Add some comments regarding 16-bit increment/decrement

This commit is contained in:
Rangi
2021-03-24 18:34:33 -04:00
parent dc18e188b2
commit 2fe0cbbb19
2 changed files with 8 additions and 4 deletions

View File

@@ -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