View previous topic :: View next topic |
Author |
Message |
ali_ali_ali_ali_ali Newbie cheater
Reputation: 0
Joined: 13 May 2017 Posts: 10
|
Posted: Tue Mar 30, 2021 5:23 am Post subject: Help !!! code with xmm register |
|
|
hi
want to add "2000" in [esi] (value is double) plz help me out
code:
subsd xmm1,xmm0
movsd [esi],xmm1
jmp return
tried this but not working
label(val)
code:
subsd xmm1,xmm0
movsd xmm1,[val]
movsd [esi],xmm1
jmp return
val:
dq (double)2000
Last edited by ali_ali_ali_ali_ali on Tue Mar 30, 2021 6:14 am; edited 1 time in total |
|
Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Tue Mar 30, 2021 6:05 am Post subject: |
|
|
Change that last part where you declare val.
Code: | val:
dq (double)2000 |
_________________
|
|
Back to top |
|
 |
ali_ali_ali_ali_ali Newbie cheater
Reputation: 0
Joined: 13 May 2017 Posts: 10
|
Posted: Tue Mar 30, 2021 6:13 am Post subject: thanks |
|
|
thanks for the reply i write it wrong here let me correct it ( in the game i write correctly as u mentioned dq (double)2000 b ut didnt work .. )
|
|
Back to top |
|
 |
sbryzl Master Cheater
Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Tue Mar 30, 2021 6:52 am Post subject: |
|
|
Code: | label(val)
code:
subsd xmm1,xmm0
addsd xmm1,[val]
movsd [esi],xmm1
jmp return
val:
dq (double)2000 |
|
|
Back to top |
|
 |
ali_ali_ali_ali_ali Newbie cheater
Reputation: 0
Joined: 13 May 2017 Posts: 10
|
Posted: Tue Mar 30, 2021 9:58 am Post subject: thanks |
|
|
thanks man i will try it
|
|
Back to top |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Tue Mar 30, 2021 11:45 pm Post subject: |
|
|
using x87FPU:
Code: |
fld qword ptr [val]
fadd qword ptr [esi]
fstp qword ptr [esi]
val:
dq (double)2000
|
using SSE:
Code: |
movsd xmm1,[esi]
addsd xmm1,[val]
movsd [esi],xmm1
val:
dq (double)2000
|
|
|
Back to top |
|
 |
ali_ali_ali_ali_ali Newbie cheater
Reputation: 0
Joined: 13 May 2017 Posts: 10
|
Posted: Wed Mar 31, 2021 3:57 am Post subject: |
|
|
thanks man really appreciate
|
|
Back to top |
|
 |
|