 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Thu Aug 18, 2016 2:01 pm Post subject: Meaning of dollar sign in alloc |
|
|
Sorry if this looks too simple.
In auto assembler scripts, what does the dollar sign in :
mean?
Also, if you don't put a dollar sign, does it take the value as decimal? numbers in the auto assembler are handled as hexadecimal unless they are preceded by #, (int), (float), (double).
( I know that the dollar sign can be used to do interpolation of Lua variables, for example : in mov eax, $x, $x will be remplaced by the value of the global Lua variable x ).
Thanks.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25777 Location: The netherlands
|
Posted: Thu Aug 18, 2016 3:24 pm Post subject: |
|
|
unlike most functions in the AA, alloc takes the size decimal instead of hexadecimal.
but some people prefer to enter the number of bytes to allocate in hexadecimal, which is done by adding a $ sign at the start (the pascal strtoint function then interprets it as hext)
so, in case of alloc(mem, $2048) , the author wanted to allocate 8264 bytes for his script
_________________
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 |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|