Hi,
This may sound like a very simple question, but it has got me really confused.
I am trying to create a good old x86 mov from reg to reg. e.g. mov rax, rdx But I can't find the correct MOV opcode or INSTR_CREATE to use for it.
The opcodes I found and my understanding of them:
- OP_mov_ld. Source must be memory operand, for example opnd_create_base_disp
- OP_mov_st. Destination must be memory operand
- OP_mov_imm. Source must be immediate
- OP_mov_seg. Either source or destination should be a Segment register
- OP_mov_priv. I don't know what this is?!
There are also five corresponding INSTR_CREATE_ macros with the exact same prefixes. What is the correct OP/Macro I should use if I all I want to do is the following?
INSTR_CREATE_mov_????(drctx, opnd_create_reg(reg1), opnd_create_reg(reg2));
Thanks