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

Function cpu_read_rp

core/cpu.c:291–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static uint32_t cpu_read_rp(int i) {
292 uint32_t value;
293 switch (i) {
294 case 0: value = cpu.registers.BC; break;
295 case 1: value = cpu.registers.DE; break;
296 case 2: value = cpu_read_index(); break;
297 case 3: value = cpu_read_sp(); break;
298 default: unreachable();
299 }
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) {

Callers 2

cpu_read_rp2Function · 0.85
cpu_executeFunction · 0.85

Calls 2

cpu_read_indexFunction · 0.85
cpu_read_spFunction · 0.85

Tested by

no test coverage detected