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

Function cpu_read_in

core/cpu.c:158–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static uint8_t cpu_read_in(uint16_t pio) {
159 if (unprivileged_code()) {
160 return 0; /* in returns 0 in unprivileged code */
161 }
162 return port_read_byte(pio);
163}
164
165static void cpu_write_out(uint16_t pio, uint8_t value) {
166 if (unprivileged_code()) {

Callers 2

cpu_execute_bliFunction · 0.85
cpu_executeFunction · 0.85

Calls 2

unprivileged_codeFunction · 0.85
port_read_byteFunction · 0.85

Tested by

no test coverage detected