(Because nobody helped me in
this thread, I made a new thread.)
I need help in my own patch. It should fix the "music speed up" glitch but it makes only worser. What is on these code wrong

:
Codeheader
lorom
!freespace = $128000 ; Free space. Only freespace. Asar do... oh I made an Asar a Patch
!Rama = $58 ; Remember: it MUST be cleared by overworld but NOT by level load.
org $008E51
JSL Start ; Or !freespace+$08.
org $008E58
db $01
org !freespace
!CodeSize = End-Start ; <- RATS Tag define.
db "STAR"
dw !CodeSize-$01
dw !CodeSize-$01^$FFFF
Start: ;<- Beginning of RATS Tag, and bytes to protect.
LDA $0F32 ; \ Recover old code...
AND $0F33 ; / ... and check if time is 099.
CMP #$09
BNE Return
LDA !Rama
BEQ Incrase
CMP #$02
BCS Return
Incrase:
INC !Rama ; You need this.
Return:
LDA !Rama ; And this.
RTL ; Return
End: ; <- End of RATS Tag and number of bytes to protect.
Codeheader
lorom
!Rama = $58 ; Remember: it MUST be cleared by overworld but NOT by level load.
org $008E51
autoclean JSL Fixing
org $008E58
db $01
freecode
Fixing:
LDA $0F32 ; \ Recover old code...
AND $0F33 ; / ... and check if time is 099.
CMP #$09
BNE Return
LDA !Rama
BEQ Incrase
CMP #$02
BCS Return
Incrase:
INC !Rama ; You need this.
Return:
LDA !Rama ; And this.
RTL ; Return
Remember: the first patch is for xkas, the second for asar.
My problem: the music will speed up
even if the free ram is set and I don't know, where the problem is

. Please help me, than I can submit this patch here and to
SMWHacking.de. If this patch isn't accepted than please help me again.
--------------------
Okay, my layout looks ugly.
Follow Us On