Don't allow SPC mute/unmute commands to be executed during NMI

This commit is contained in:
qwertymodo
2019-09-27 20:34:21 -07:00
parent df4d663de3
commit 4aef32bcca

View File

@@ -530,7 +530,10 @@ command_f1:
command_f0:
CPX !VAL_COMMAND_STOP_PLAYBACK : !BLT load_track
JML spc_continue
CPX !VAL_COMMAND_MUTE_SPC : BEQ + ; Don't allow executing the mute/umute
CPX !VAL_COMMAND_UNMUTE_SPC : BNE ++ ; commands during NMI like this
+ : LDA.b #$00 : STA !REG_MUSIC_CONTROL
++ : JML spc_continue
load_track:
CPX !REG_CURRENT_MSU_TRACK : BNE +