Skip to content

Commit d7deb75

Browse files
committed
Stop SFX as well when playing a new song. Fix looping earthquake sound at beginning of the game.
1 parent 6c9f9b1 commit d7deb75

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

secret_of_mana_msu1.asm

+11
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,23 @@ scope MSU_Stop: {
303303
}
304304

305305
scope Stop_SPC: {
306+
// Stop SPC music
306307
lda #$F1
307308
sta SPC_COMM_0
308309
Handshake:
309310
cmp SPC_COMM_0
310311
bne Handshake
311312
313+
lda #$00
314+
sta SPC_COMM_0
315+
316+
// Stop looping SFX
317+
lda #$F2
318+
sta SPC_COMM_0
319+
Handshake2:
320+
cmp SPC_COMM_0
321+
bne Handshake2
322+
312323
lda #$00
313324
sta SPC_COMM_0
314325
rts

secret_of_mana_notes.txt

+3-8
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,12 @@ $1E00 = Command to do
5555
$00 = Do nothing
5656
$01 = Play Music
5757
$02 = Play SFX
58-
$80 = Fade out ?
59-
$F1 = Stop
60-
$F2 = ?????
58+
$80 = Fade out
59+
$F1 = Stop music
60+
$F2 = Stop FX
6161

6262
$1E01 = Requested song
6363
$1E05 = Previous song
64-
65-
$80 = Fade
66-
$01 == $8F = Fade in ?
67-
$01 == $80 = Fade out ?
68-
The game checks if the song was already playing
6964

7065
; Squaresoft SFX
7166
$C3/01D6 8D 41 21 STA $2141 [$00:2141] A:012D X:0B2D Y:02DE P:envMxdizC

0 commit comments

Comments
 (0)