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

Function cpu_write_rp

core/cpu.c:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 return cpu_mask_mode(value, cpu.L);
301}
302static void cpu_write_rp(int i, uint32_t value) {
303 value = cpu_mask_mode(value, cpu.L);
304 switch (i) {
305 case 0: cpu.registers.BC = value; break;
306 case 1: cpu.registers.DE = value; break;
307 case 2: cpu_write_index(value); break;
308 case 3: cpu_write_sp(value); break;
309 default: unreachable();
310 }
311}
312
313static uint32_t cpu_read_rp2(int i) {
314 if (i == 3) {

Callers 2

cpu_write_rp2Function · 0.85
cpu_executeFunction · 0.85

Calls 2

cpu_write_indexFunction · 0.85
cpu_write_spFunction · 0.85

Tested by

no test coverage detected