| View previous topic :: View next topic |
| Author |
Message |
annunaki How do I cheat?
Reputation: 0
Joined: 31 Oct 2009 Posts: 2
|
Posted: Sat Oct 31, 2009 3:23 am Post subject: ASM help |
|
|
| Trying to write a script in CE so it inserts a floating point number into a register. For example, I'd like to insert .2 into eax, how could this be done? Thank you.
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sat Oct 31, 2009 5:10 am Post subject: |
|
|
| Look at FSTP, bear in mind that floating point uses another set of registers
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Sat Oct 31, 2009 5:31 am Post subject: |
|
|
| Code: | _asm
{mov eax, 0x01
} |
|
|
| Back to top |
|
 |
annunaki How do I cheat?
Reputation: 0
Joined: 31 Oct 2009 Posts: 2
|
Posted: Sat Oct 31, 2009 9:58 am Post subject: |
|
|
| NoMercy wrote: | | Code: | _asm
{mov eax, 0x01
} |
|
In Cheat Engine auto assemble, mov eax, 0x01 won't compile =/, and I'm not exactly sure how to use FSTP, farther assistance would be very appreciated please, thank you.
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
|
| Back to top |
|
 |
DoomsDay Grandmaster Cheater
Reputation: 0
Joined: 06 Jan 2007 Posts: 768 Location: %HomePath%
|
Posted: Sat Oct 31, 2009 12:26 pm Post subject: |
|
|
| Code: | sub esp,8 ;make room in the stack
fstp qword ptr [esp] ;fill with the curren value
push 1 ;push the number to be converted
fild dword ptr [esp] ;load 1.0
mov dword ptr [esp],5 ;
fidiv dword ptr [esp] ;1/5 = .2
fstp dword ptr [esp] ;unload to the stack
pop eax ;result goes to eax
fld qword ptr [esp] ;reload the original value
add esp,8 ;adjust the stack |
Last edited by DoomsDay on Sun Nov 01, 2009 2:05 am; edited 1 time in total |
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sat Oct 31, 2009 1:42 pm Post subject: |
|
|
| NoMercy wrote: | | Code: | _asm
{mov eax, 0x01
} |
|
| Code: |
__asm {
xor eax, eax
inc eax
} |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Oct 31, 2009 2:09 pm Post subject: |
|
|
| &Vage wrote: | | NoMercy wrote: | | Code: | _asm
{mov eax, 0x01
} |
|
| Code: |
__asm {
xor eax, eax
inc eax
} |
|
i doubt this is actually an improvement
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sat Oct 31, 2009 2:14 pm Post subject: |
|
|
| slovach wrote: | | &Vage wrote: | | NoMercy wrote: | | Code: | _asm
{mov eax, 0x01
} |
|
| Code: |
__asm {
xor eax, eax
inc eax
} |
|
i doubt this is actually an improvement | Never it said kthx.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Oct 31, 2009 4:28 pm Post subject: |
|
|
| so uh, what was the point other than to make it more complicated?
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sat Oct 31, 2009 5:04 pm Post subject: |
|
|
| slovach wrote: | | so uh, what was the point other than to make it more complicated? | No point, so whats the point of trying to point it out?
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Oct 31, 2009 5:57 pm Post subject: |
|
|
| &Vage wrote: | | slovach wrote: | | so uh, what was the point other than to make it more complicated? | No point, so whats the point of trying to point it out? |
Then why post in the first place?
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sat Oct 31, 2009 7:26 pm Post subject: |
|
|
| Athaem wrote: | | &Vage wrote: | | slovach wrote: | | so uh, what was the point other than to make it more complicated? | No point, so whats the point of trying to point it out? |
Then why post in the first place? | Oh, I'm sorry I didn't know there was a rule against posting it... Oh.. wait, there isn't
|
|
| Back to top |
|
 |
FullyAwesome I post too much
Reputation: 0
Joined: 05 Apr 2007 Posts: 4438 Location: Land Down Under
|
Posted: Sat Oct 31, 2009 8:46 pm Post subject: |
|
|
| &Vage wrote: | Oh, I'm sorry I didn't know there was a rule against posting it... Oh.. wait, there isn't  |
| Code: | | Do not make useless posts or unrelated topics. Before you post, think if you are actually contributing something to the discussion in one way or another. If you do not think you are, do not post. |
_________________
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sat Oct 31, 2009 8:52 pm Post subject: |
|
|
| FullyAwesome wrote: | | &Vage wrote: | Oh, I'm sorry I didn't know there was a rule against posting it... Oh.. wait, there isn't  |
| Code: | | Do not make useless posts or unrelated topics. Before you post, think if you are actually contributing something to the discussion in one way or another. If you do not think you are, do not post. |
| It's not useless, OP might not know another way. Un-efficient or not I contributed something weather you're going to be a big vage or not. You.. on the other hand should be warned since you post something that is not relevant to the thread
|
|
| Back to top |
|
 |
|