Fix SPC un/mute race condition
Should fix mothula hardlock, for real this time
This commit is contained in:
6
msu.asm
6
msu.asm
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user