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

Function cpu_read_write_reg

core/cpu.c:253–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 }
252}
253static void cpu_read_write_reg(int read, int write) {
254 uint8_t value;
255 int old_prefix = cpu.PREFIX;
256 cpu.PREFIX = write != 6 ? old_prefix : 0;
257 value = cpu_read_reg(read);
258 cpu.PREFIX = read != 6 ? old_prefix : 0;
259 cpu_write_reg(write, value);
260}
261
262static uint8_t cpu_read_reg_prefetched(int i, uint32_t address) {
263 uint8_t value;

Callers 1

cpu_executeFunction · 0.85

Calls 2

cpu_read_regFunction · 0.85
cpu_write_regFunction · 0.85

Tested by

no test coverage detected