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

Function cpu_prefetch

core/cpu.c:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 return (cpu.registers.MBASE << 16) | (address & 0xFFFF);
63}
64static void cpu_prefetch(uint32_t address, bool mode) {
65 cpu.ADL = mode;
66 cpu.registers.PC = cpu_address_mode(address, mode);
67 cpu.prefetch = mem_read_cpu(cpu.registers.PC, true);
68}
69static uint8_t cpu_fetch_byte(void) {
70 uint8_t value;
71#ifdef DEBUG_SUPPORT

Callers 6

cpu_fetch_byteFunction · 0.85
cpu_rstFunction · 0.85
cpu_callFunction · 0.85
cpu_jumpFunction · 0.85
cpu_flushFunction · 0.85
cpu_executeFunction · 0.85

Calls 2

cpu_address_modeFunction · 0.85
mem_read_cpuFunction · 0.85

Tested by

no test coverage detected