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

Function cpu_write_reg_prefetched

core/cpu.c:277–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 return value;
276}
277static void cpu_write_reg_prefetched(int i, uint32_t address, uint8_t value) {
278 switch (i) {
279 case 0: cpu.registers.B = value; break;
280 case 1: cpu.registers.C = value; break;
281 case 2: cpu.registers.D = value; break;
282 case 3: cpu.registers.E = value; break;
283 case 4: cpu_write_index_high(value); break;
284 case 5: cpu_write_index_low(value); break;
285 case 6: cpu_write_byte(address, value); break;
286 case 7: cpu.registers.A = value; break;
287 default: unreachable();
288 }
289}
290
291static uint32_t cpu_read_rp(int i) {
292 uint32_t value;

Callers 2

cpu_execute_rotFunction · 0.85
cpu_executeFunction · 0.85

Calls 3

cpu_write_index_highFunction · 0.85
cpu_write_index_lowFunction · 0.85
cpu_write_byteFunction · 0.85

Tested by

no test coverage detected