MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / branchCondName

Function branchCondName

KittyMemoryEx/KittyAsm.hpp:245–251  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

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.

Callers 1

decodeInsnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected