Kona

Kalas

Cat'n America!
Fearless Donors
Mar 3, 2017
476
4
18
#1
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?
 

STN

Administrator
Staff member
Administrator
Moderator
Mar 2, 2017
2,974
28
48
#2
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.
 

Kalas

Cat'n America!
Fearless Donors
Mar 3, 2017
476
4
18
#3
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.
 

TheyCallMeTim13

I... am an enchanter.
Talents
Fearless Donors
Mar 3, 2017
340
18
18
#4
Code:
...
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.
 

Kalas

Cat'n America!
Fearless Donors
Mar 3, 2017
476
4
18
#5
Yea I always do look for XMM stack, there was no max health there :p

thank you though for your help!
 
Mar 17, 2017
31
0
6
#6
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
 

Kalas

Cat'n America!
Fearless Donors
Mar 3, 2017
476
4
18
#7
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 :)