panraven Grandmaster Cheater Reputation: 61 Joined: 01 Oct 2008 Posts: 958
|
Posted: Mon Jan 31, 2022 6:28 am Post subject: |
|
|
If there is a near memory that can store a float value -1,
Code: |
...
movss xmm0,[MinusOne] /// MinusOne stored (float)-1
mulss xmm0,[speed_lmodifier]
addss xmm0,[rdi+70]
movss [rdi+70],xmm0
...
|
else may need an extra register
Code: |
...
mov eax,(float)-1
movd xmm0,eax /// use rax & movq for double
mulss xmm0,[speed_lmodifier]
addss xmm0,[rdi+70]
movss [rdi+70],xmm0
...
|
there should be other ways. _________________ - Retarded.
|
|