Files
oracle-of-secrets/Music/entrance_music_fix.asm

35 lines
693 B
NASM

pushpc
org $28424
JML EntranceMusicFix
NOP #02
MyReturn:
pullpc
org $328000
EntranceMusicFix:
LDA $A0 : CMP #$C9 : BNE +
JML $028467 ; room was C9 Play village song
+
CMP #$11 : BNE +
JML $028467 ; room was 11 Play village song
+
CMP #$22 : BNE +
JML $028467 ; room was 22 Play village song
+
CMP #$39 : BNE +
JML $028467 ; room was 1F Play village song
+
LDX #$05 ; Load Song 05 (Forest)
CMP #$67 : BNE +
JML $028467 ; room was 67 Play forest song
+
CMP #$F3 : BNE +
JML $028467 ; room was 63 Play forest song
+
; Room was not any of the rooms above
JML MyReturn ; return to normal code!
; LDX #$05 for any time that you want to change what song loads