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

Function unprivileged_code

core/control.c:264–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264bool unprivileged_code(void) {
265 /* rawPC the PC after the next prefetch (which we do late), before (after on revM) adding MBASE. */
266 uint32_t rawPC = cpu.registers.PC + 1;
267 bool mode = cpu.ADL;
268 rawPC = asic.serFlash ? cpu_address_mode(rawPC, mode) : cpu_mask_mode(rawPC, mode);
269 return rawPC > control.privileged && (rawPC < control.protectedStart ||
270 rawPC > control.protectedEnd);
271}

Callers 5

mem_read_cpuFunction · 0.85
mem_write_cpuFunction · 0.85
cpu_read_inFunction · 0.85
cpu_write_outFunction · 0.85

Calls 1

cpu_address_modeFunction · 0.85

Tested by

no test coverage detected