Skip to content

Commit

Permalink
Correcting offset value in sound driver
Browse files Browse the repository at this point in the history
The 'ldi' instructions mean de is at zTrack.TempoDivider when the
addition is done, and not zTrack.VoiceControl.
  • Loading branch information
Clownacy committed Dec 13, 2015
1 parent 1102d36 commit c43986f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2.sounddriver.asm
Expand Up @@ -1980,7 +1980,7 @@ zloc_9D9:
ld (ix+zTrack.DurationTimeout),1 ; current duration timeout to 1 (will expire immediately and thus update)
ld (ix+zTrack.StackPointer),zTrack.GoSubStack ; Reset track "gosub" stack
ld a,e
add a,(zTrack.DataPointerLow-zTrack.VoiceControl)-1
add a,zTrack.DataPointerLow-zTrack.TempoDivider
ld e,a
adc a,d
sub e
Expand Down

0 comments on commit c43986f

Please sign in to comment.