MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / HandleException

Function HandleException

Source/DynaRec/Fragment.cpp:208–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206namespace
207{
208 void HandleException()
209 {
210 switch (gCPUState.Delay)
211 {
212 case DO_DELAY:
213 gCPUState.CurrentPC += 4;
214 gCPUState.Delay = EXEC_DELAY;
215 break;
216 case EXEC_DELAY:
217 gCPUState.CurrentPC = gCPUState.TargetPC;
218 gCPUState.Delay = NO_DELAY;
219 break;
220 case NO_DELAY:
221 gCPUState.CurrentPC += 4;
222 break;
223 default:
224 NODEFAULT;
225 }
226 }
227#ifdef FRAGMENT_SIMULATE_EXECUTION
228 void UpdateCountAndHandleException( u32 instructions_executed )
229 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected