for trap instructions, this gets a string depending on the 'to' value
| 257 | } |
| 258 | // for trap instructions, this gets a string depending on the 'to' value |
| 259 | std::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 |
| 289 | std::string PowerPCDisassembler::ILL(const u32 binary) |
nothing calls this directly
no outgoing calls
no test coverage detected