From 7cd0c50ac9075803bc7e1de41f60a0ddcae6aacc Mon Sep 17 00:00:00 2001 From: scawful Date: Tue, 1 Aug 2023 10:25:28 -0400 Subject: [PATCH] Add dungeon room exit music fix script (WIP) --- Music/entrance_music_fix.asm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Music/entrance_music_fix.asm diff --git a/Music/entrance_music_fix.asm b/Music/entrance_music_fix.asm new file mode 100644 index 0000000..92491ff --- /dev/null +++ b/Music/entrance_music_fix.asm @@ -0,0 +1,34 @@ +pushpc + +org $28424 +JML MyNewMusic +NOP #02 +MyReturn: + +pullpc + +MyNewMusic: +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 #$1F : 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 #$59 : 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 \ No newline at end of file