dashmond How do I cheat?
Reputation: 0
Joined: 14 Nov 2015 Posts: 3
|
Posted: Sun Nov 15, 2015 2:38 am Post subject: Need help about float +/- value and compare |
|
|
Hi every body, first I need tell you, I'm bad in eng but I very try to communicate, because I struck this point 3 days and very need to done.
so, overview...
1. player address stored in registersymbol(player_ptr) and already to use (float value)
2. player location x address = [player_ptr+120]
3. enemy address stored in rcx and already to use (float value)
4. enemy location x address = [rcx+90]
so, I need...
1. player location x minus with float 12500.0 (ex: current player locaton x = 100000.7 but i need value = 87500.7 for next process)
2. compare player location x (after minus) with enemy location x
3. if player > enemy jump to end
3. but else (player <= enemy) jump to next
this is my problem code.
| Code: |
push rdx
mov rdx,[player_ptr]
add rdx,120
sub ...
cmp rdx,[rcx+90]
jg end
jmp next
|
Thank you very much for any help
|
|