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

@@ -982,6 +982,7 @@ ApplyPitchSlide:
add hl, bc
add [hl]
ld [hl], a
; could have done "jr nc, .no_rollover / inc de / .no_rollover"
ld a, 0
adc e
ld e, a
@@ -1022,6 +1023,7 @@ ApplyPitchSlide:
ld a, [hl]
add a
ld [hl], a
; could have done "jr nc, .no_rollover / dec de / .no_rollover"
ld a, e
sbc 0
ld e, a