MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / TrapTOStr

Method TrapTOStr

Source/Common/PPC/PowerPCDisassembler.cpp:259–286  ·  view source on GitHub ↗

for trap instructions, this gets a string depending on the 'to' value

Source from the content-addressed store, hash-verified

257}
258// for trap instructions, this gets a string depending on the 'to' value
259std::string PowerPCDisassembler::TrapTOStr(const u32 to)
260{
261 switch (to)
262 {
263 case 1:
264 return "lgt";
265 case 2:
266 return "llt";
267 case 4:
268 return "eq";
269 case 5:
270 return "lge";
271 case 6:
272 return "lle";
273 case 8:
274 return "gt";
275 case 12:
276 return "ge";
277 case 16:
278 return "lt";
279 case 20:
280 return "le";
281 case 24:
282 return "ne";
283 default:
284 return "";
285 }
286}
287
288// returns illegal instruction
289std::string PowerPCDisassembler::ILL(const u32 binary)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected