| 832 | } |
| 833 | |
| 834 | void cpu_nmi(void) { |
| 835 | cpu.NMI = 1; |
| 836 | cpu_restore_next(); |
| 837 | #ifdef DEBUG_SUPPORT |
| 838 | if (debug_get_flags() & DBG_OPEN_ON_RESET) { |
| 839 | debug_open(DBG_NMI_TRIGGERED, cpu.registers.PC); |
| 840 | } |
| 841 | #endif |
| 842 | } |
| 843 | |
| 844 | void cpu_set_signal(uint8_t signal) { |
| 845 | atomic8_fetch_or_explicit(&cpu_atomics.signals, signal, memory_order_release); |
no test coverage detected