#include <ua.hpp> // For ua_ functions #include <lines.hpp> // Get the entry point address ea_t addr = inf.startIP; // Fill cmd with information about the instruction at the entry point ua_ana0(addr); // Loop through each operand (until one of o_void type is reached), displaying the operand text. for (int i = 0; cmd.Operands[i].type != o_void; i++) { char op[MAXSTR]; ua_outop(addr, op, sizeof(op) - 1, i); // Strip the colour tags off tag_remove(op, op, 0); msg("Operand %d: %s\n", i, op); }