Fix SPC un/mute race condition

Should fix mothula hardlock, for real this time
This commit is contained in:
qwertymodo
2021-08-23 11:24:24 -07:00
parent af8a47e743
commit 48d9a7d4bc

View File

@@ -323,10 +323,8 @@ CheckMusicLoadRequest:
.load .load
REP #$10 REP #$10
STZ $4200 STZ $4200
STA !REG_SPC_CONTROL - : STA !REG_SPC_CONTROL : CMP !REG_SPC_CONTROL : BNE - ; Wait until mute/unmute command is ACK'ed
- : CMP !REG_SPC_CONTROL : BNE - ; Wait until mute/unmute command is ACK'ed - : STZ !REG_SPC_CONTROL : LDA !REG_SPC_CONTROL : BNE - ; Wait until mute/unmute command is completed
STZ !REG_SPC_CONTROL
- : LDA !REG_SPC_CONTROL : BNE - ; Wait until mute/unmute command is completed
LDA.b #$81 : STA $4200 LDA.b #$81 : STA $4200
LDA !REG_MUSIC_CONTROL_REQUEST : CMP.b #08 : BEQ .done+3 ; No SFX during warp track LDA !REG_MUSIC_CONTROL_REQUEST : CMP.b #08 : BEQ .done+3 ; No SFX during warp track