mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-04-17 08:40:57 +00:00
let nmi be triggered regardless of kbd mode
This commit is contained in:
12
emulator.c
12
emulator.c
@@ -372,6 +372,12 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
// pause pressed; trigger nmi (int level 7)
|
||||
if (c == 0x01 && c_type) {
|
||||
printf("[*] Sending NMI\n");
|
||||
m68k_set_irq(7);
|
||||
}
|
||||
|
||||
if (!kb_hook_enabled && c_type) {
|
||||
if (c && c == cfg->mouse_toggle_key) {
|
||||
mouse_hook_enabled ^= 1;
|
||||
@@ -415,12 +421,6 @@ int main(int argc, char *argv[]) {
|
||||
if (c == 'S' && realtime_disassembly) {
|
||||
do_disasm = 128;
|
||||
}
|
||||
|
||||
// pause pressed; trigger nmi (int level 7)
|
||||
if (c == 0x01) {
|
||||
printf("[*] Sending NMI\n");
|
||||
m68k_set_irq(7);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user