MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / cpu_write_out

Function cpu_write_out

core/cpu.c:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static 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
174static uint32_t cpu_read_sp(void) {
175 return cpu.registers.stack[cpu.L].hl;

Callers 2

cpu_execute_bliFunction · 0.85
cpu_executeFunction · 0.85

Calls 4

unprivileged_codeFunction · 0.85
cpu_nmiFunction · 0.85
port_write_byteFunction · 0.85
gui_console_err_printfFunction · 0.50

Tested by

no test coverage detected