mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
more fixes
This commit is contained in:
parent
a216a0f2e7
commit
c1d2bc7678
11 changed files with 36 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue