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

Function cpu_address_mode

core/cpu.c:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58uint32_t cpu_address_mode(uint32_t address, bool mode) {
59 if (mode) {
60 return address & 0xFFFFFF;
61 }
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);

Callers 12

mem_peek_wordFunction · 0.85
mem_poke_wordFunction · 0.85
unprivileged_codeFunction · 0.85
cpu_prefetchFunction · 0.85
cpu_prefetch_discardFunction · 0.85
cpu_read_byteFunction · 0.85
cpu_write_byteFunction · 0.85
cpu_pop_byte_modeFunction · 0.85
cpu_push_byte_modeFunction · 0.85
cpu_executeFunction · 0.85
debug_record_callFunction · 0.85
debug_record_retFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected