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

Function cpu_trap_rewind

core/cpu.c:449–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449static void cpu_trap_rewind(uint_fast8_t rewind) {
450 eZ80registers_t *r = &cpu.registers;
451 cpu_prefetch_discard();
452 cpu.cycles++;
453 r->PC = cpu_mask_mode(r->PC - rewind, cpu.ADL);
454 cpu_clear_context();
455 cpu_interrupt(0x00);
456}
457
458static void cpu_trap(void) {
459 cpu_trap_rewind(1);

Callers 2

cpu_trapFunction · 0.85
cpu_executeFunction · 0.85

Calls 3

cpu_prefetch_discardFunction · 0.85
cpu_clear_contextFunction · 0.85
cpu_interruptFunction · 0.85

Tested by

no test coverage detected