* @brief Returns the name of a conditional execution flag. * * @param cond The conditional execution flag value (0-15). * @return The name of the conditional execution flag as a string. */
| 243 | * @return The name of the conditional execution flag as a string. |
| 244 | */ |
| 245 | inline std::string branchCondName(uint32_t cond) |
| 246 | { |
| 247 | static const char *names[16] = |
| 248 | {"EQ", "NE", "CS/HS", "CC/LO", "MI", "PL", "VS", "VC", "HI", "LS", "GE", "LT", "GT", "LE", "AL", "NV"}; |
| 249 | uint32_t index = cond & 0xF; |
| 250 | return index < 16 ? names[index] : ""; |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * @brief Decodes type of an ARM32 instruction. |