| View previous topic :: View next topic |
| Author |
Message |
mordax Expert Cheater
Reputation: 1
Joined: 16 Apr 2010 Posts: 138
|
Posted: Wed Dec 28, 2011 2:57 am Post subject: simple question on how to write float |
|
|
hi. im having quite stupid question, but since CE's assembler works COMPLETELY different from Olly and Tsearch (which im used to), i don't know how to write a simple float value at end of instruction.
my instruction is this:
| Code: | | fld dword ptr [newmem+100] |
i want some float value to be @ location of newmem+100
how would i do that ?
in olly and tsearch i would just do this
| Code: | | fld dword ptr [newmem+100],00008040 |
which should be float value 4.0
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Wed Dec 28, 2011 8:45 am Post subject: |
|
|
| Code: |
mov [newmem+100],00008040
|
or
| Code: |
mov [newmem+100],(float)4
|
Or if you mean at the time that the script is executed and not done by executing of the injected code:
| Code: |
newmem+100:
dd 8040
|
or
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
mordax Expert Cheater
Reputation: 1
Joined: 16 Apr 2010 Posts: 138
|
Posted: Mon Jan 02, 2012 1:29 pm Post subject: |
|
|
thanks, i got it working.
however its not reversed float like this:
| Code: | | mov [newmem+100],00008040 |
value 4 would be:
| Code: | | mov [newmem+100],40800000 |
i like | Code: | | mov [newmem+100],(float)4 | more, have to try it, didnt know this kind of way is possible.
i guess you have tutorials about it somewhere, but its extremely hard to find something if i don't know what to search for exactly.
|
|
| Back to top |
|
 |
|