MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / trap

Function trap

pcsx2/R5900OpcodeImpl.cpp:1237–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235}
1236
1237static void trap(u16 code=0)
1238{
1239 cpuRegs.pc -= 4;
1240 Console.Warning("Trap exception at 0x%08x", cpuRegs.pc);
1241 cpuException(0x34, cpuRegs.branch);
1242}
1243
1244/*********************************************************
1245* Register trap *

Callers 12

TGEFunction · 0.85
TGEUFunction · 0.85
TLTFunction · 0.85
TLTUFunction · 0.85
TEQFunction · 0.85
TNEFunction · 0.85
TGEIFunction · 0.85
TLTIFunction · 0.85
TEQIFunction · 0.85
TNEIFunction · 0.85
TGEIUFunction · 0.85
TLTIUFunction · 0.85

Calls 2

cpuExceptionFunction · 0.85
WarningMethod · 0.45

Tested by

no test coverage detected