summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-03-24 18:34:31 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-03-24 18:34:31 -0400
commit74bffc2c8dd0b5b1873e51bc53e83177f35f7020 (patch)
tree09bc1606c0a8dbb3b0294c07fabf3dff37a622b7
parent9d5121ba9adc44df98e4a7396385d68386a265d7 (diff)
Add some comments regarding 16-bit increment/decrement
-rw-r--r--audio/engine.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/engine.asm b/audio/engine.asm
index fa3a0829..ca6fd4ab 100644
--- a/audio/engine.asm
+++ b/audio/engine.asm
@@ -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