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

Function cpu_restore_next

core/cpu.c:882–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880}
881
882void cpu_restore_next(void) {
883 if (cpu.NMI || (cpu.IEF1 && (intrpt->status & intrpt->enabled)) || cpu_check_signals() != CPU_SIGNAL_NONE) {
884 cpu.next = 0; /* always applies, even after cycle rewind during port writes */
885 } else if (cpu.IEF_wait) {
886 cpu.next = cpu.eiDelay; /* execute one instruction */
887 } else {
888 cpu.next = sched_event_next_cycle();
889 }
890}
891
892void cpu_execute(void) {
893 /* variable declarations */

Callers 5

sched_update_nextFunction · 0.85
cpu_resetFunction · 0.85
cpu_nmiFunction · 0.85
cpu_haltFunction · 0.85
cpu_executeFunction · 0.85

Calls 2

cpu_check_signalsFunction · 0.85
sched_event_next_cycleFunction · 0.85

Tested by

no test coverage detected