Both move vA, vB
and move-wide vA, vB
involve the same operations and same operands. Except opcodes everything is the same. I am in a situation where I need to print the operands used by instructions in an application.
So when I see the instruction move vA, vB
I should print move va(*contents of va*), vb(*contents of vb*)
.
This works fine in the case of 4-byte registers. But when I encounter move-wide
instructions, I should print the contents of vA and the contents of the next virtual register., contents of vB and the contents of the next virtual register.
What is the standard way of parsing these?
I feel kind of silly asking this question as it seems really simple, but how do I create a text box that I can type in instructions and stuff like that. I don t need the user to be able to change it, ...