I have the following code:
I am using IDA PRO. I am trying to patch this code and change the line mov eax, [rax+10h] to mov eax, 3. mov eax, 3 is B8 03 00.
I do this in the hex editor and when I change the code from
8B 40 10 8D 48 01 41 89 4B 10 EB 05 B8 01 00 00
to
B8 03 00 8D 48 01 41 89 4B 10 EB 05 B8 01 00 00
I get B8 03 00 8D 48 in the same line which is a different command than what i intended.
what am i doing wrong? how can i make this change?