hi,
I want to now if a given instruction uses a rep* prefix.
code sample:
mov exc, 440 rep movsd Hence, I tried to decode the opcode at a given address _addr with
decode_insn( (ea_t) _addr);
and analyze the global cmd structure.
The problem with this approach is that even though NN_rep is defined in allins.hpp I retrieve NN_movs. According to the definitions of the NN_* a instruction cannot be of type NN_movs and NN_rep.
I thus assumed that NN_rep might be the maintained as the previous insruction.
This assumption proved to be wrong as the decoding of the previous instruction results in cmd.itype = NN_mov; Seriously, I would have been surprised as NN_rep itself is not a instruction but a prefix.
Nevertheless, I currently don't know how to retrieve the information from the SDK.
Does someone of you know how to do it?
Regards,
detlef







