| 163 | } |
| 164 | |
| 165 | static void cpu_write_out(uint16_t pio, uint8_t value) { |
| 166 | if (unprivileged_code()) { |
| 167 | control.protectionStatus |= 2; |
| 168 | gui_console_err_printf("[CEmu] NMI reset cause by an out instruction in unprivileged code.\n"); |
| 169 | cpu_nmi(); |
| 170 | } |
| 171 | port_write_byte(pio, value); |
| 172 | } |
| 173 | |
| 174 | static uint32_t cpu_read_sp(void) { |
| 175 | return cpu.registers.stack[cpu.L].hl; |
no test coverage detected