View previous topic :: View next topic |
Author |
Message |
glenc70 How do I cheat?
Reputation: 0
Joined: 14 Jan 2012 Posts: 5
|
Posted: Sun Dec 18, 2016 4:34 pm Post subject: CMOVGE |
|
|
hi does anyone know if I should be able to use the cmovge instruction like this
cmovge [rax+0C], [rax+4]
as for some reason it keeps failing, the only other thing I can think f it only works n registers without offsets is that right
thanks in advance
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25793 Location: The netherlands
|
Posted: Sun Dec 18, 2016 6:18 pm Post subject: |
|
|
if only works with two registers, or an register and address, not address and address (no assembler instruction supports address,address )
for your situation I recommend:
Code: |
jnge skipthis
pushfd //you can ignore this and the popfd if the code after skipthis doesn't check the compare state
push rbx
mov rbx,[rax+4]
mov [rax+c],rbx
pop rbx
popfd
skipthis:
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
glenc70 How do I cheat?
Reputation: 0
Joined: 14 Jan 2012 Posts: 5
|
Posted: Wed Dec 21, 2016 12:12 pm Post subject: |
|
|
ok many thanks that's all I wanted to know
|
|
Back to top |
|
 |
|