Page 1 of 1

Kona

Posted: Sat Mar 18, 2017 10:22 pm
by Kalas
Let's say I want to move 100 to xmm5

movss [rsi+000000D8],xmm5


I know how to do it, but there is a better way rather then just mov [rsi+D8],(float)100?

Re: Kona

Posted: Sat Mar 18, 2017 10:37 pm
by STN
movss xmm5, [hundred]

OR
push rcx
mov rcx, [hundred]
mov [rsi+D8], rcx
pop rcx

OR

push 42c80000
pop [rsi+D8]

push [hundred]
pop [rsi+D8]

hundred:
dd (float)100

Not sure what you're trying to do/the problem is but yeah.

Re: Kona

Posted: Sat Mar 18, 2017 10:51 pm
by Kalas
I'm trying to move 100 as it's the max HEALTH to xmm5, but I just went with the simple mov [esi+xx],(float)100.

Re: Kona

Posted: Sun Mar 19, 2017 1:13 am
by ShyTwig16

Code: Select all

...
label(fValue)
...
newmem:
  movss xmm5,[fValue]
...
jmp returnhere
fValue:
dd (float)100
...
EDIT:
Also look in other xmm registers often the max. and min. will be stored in one of them as well.

Re: Kona

Posted: Sun Mar 19, 2017 7:31 am
by Kalas
Yea I always do look for XMM stack, there was no max health there :P

thank you though for your help!

Re: Kona

Posted: Sun Mar 19, 2017 2:31 pm
by Matze500
Maybe in rsi is the player or health structure. Is maybe there the max health stored ?

memoryview->tools->dissect data/structure-> enter rsi here

Greets Matze

Re: Kona

Posted: Sun Mar 19, 2017 3:03 pm
by Kalas
Health is not shared which means there is no need to find the Cap Health or cmp it, I simply want to move 100 in xmm5, but I already made a Cheat Table thank you :)