cmp is used for integers, not floating point numbers. Use (u)comiss (float) / (u)comisd (double). Search "site:forum.cheatengine.org comiss" for examples. _________________
I don't know where I'm going, but I'll figure it out when I get there.
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
Posted: Fri Nov 06, 2020 7:34 am Post subject:
Code:
label(code)
label(return)
newmem:
cmp [rsp+00000088],(float)400
jg code
cmp [rsp+00000088],(float)60
jl code
mov [rsp+00000088],(float)2000000000 //writes this value when its between 60 and 400
code:
movss xmm0,[rsp+00000088]
jmp return
will write float 2000000000 only when its between float 60 and float 400, if that you want
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum