koji0285
koji0285

Reputation: 63

IDA: Invalid Operand when use 64bit instead of 32bit

I use IDA to modify the .exe of a game. I found the section where a limitation of 999.999.999 is given, but I'd like to change to higher limit at best to a 64bit value. My issue is that IDA returns Invalid Operand when I try to Patch Programm -> Assemble from eax to rax and 3B9AC9FFh to 1111222233334444h. What would be a good approach to solve this problem?

Assembler code:

mov     eax, 3B9AC9FFh // eax=999.999.999
cmp     r12, rax       // r12-999.999.999, then set flags
cmovg   r12, rax       // limit r12 by 999.999.999 and handle negative + overflow, according to flags

Upvotes: 1

Views: 87

Answers (0)

Related Questions