Closed namishere closed 1 month ago
I didn't realize this what was you wanted to do at first. On x86 memory-to-memory moves are not possible. If you want to do *eax = *ebx
, you need to do ecx = *ebx; *eax = ecx;
.
Update: register-to-register copy is requested, not memory-to-memory
CopyToRegister
does what this issue is requesting. Marking resolved.
I am writing a generic patch to be used multiple times with various different registers that requires me to
mov [destReg], [srcReg]
. The currentMove[x]
functions that have a register as the destination are in the form ofmov dword ptr ds:[destReg], srcReg
, which does not work for this patch and crashes. I would like aASMPatch.Move(ASMPatch::Registers srcReg, ASMPatch::Registers destReg)
that equates tomov [destReg], [srcReg]
. Thank you!