more fixes

This commit is contained in:
May Evans 2022-08-31 15:50:28 +01:00
parent a216a0f2e7
commit c1d2bc7678
11 changed files with 36 additions and 18 deletions

View file

@ -1190,13 +1190,13 @@ Audio1_InitPitchSlideVars:
; This means that the result will be 0x200 greater than it should be if the
; low byte of the current frequency is greater than the low byte of the
; target frequency.
ld a, d
sbc b
ld d, a
; kep fixes this - PvK
push af
ld hl, wChannelPitchSlideTargetFrequencyHighBytes
add hl, bc
pop af
ld a, [hl]
sbc b
sub d
ld d, a
ld b, 0

View file

@ -1253,13 +1253,13 @@ Audio2_InitPitchSlideVars:
; This means that the result will be 0x200 greater than it should be if the
; low byte of the current frequency is greater than the low byte of the
; target frequency.
ld a, d
sbc b
ld d, a
; kep fixes this - PvK
push af
ld hl, wChannelPitchSlideTargetFrequencyHighBytes
add hl, bc
pop af
ld a, [hl]
sbc b
sub d
ld d, a
ld b, 0

View file

@ -1190,13 +1190,13 @@ Audio3_InitPitchSlideVars:
; This means that the result will be 0x200 greater than it should be if the
; low byte of the current frequency is greater than the low byte of the
; target frequency.
ld a, d
sbc b
ld d, a
; kep fixes this - PvK
push af
ld hl, wChannelPitchSlideTargetFrequencyHighBytes
add hl, bc
pop af
ld a, [hl]
sbc b
sub d
ld d, a
ld b, 0