Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Meaning of dollar sign in alloc

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Thu Aug 18, 2016 2:01 pm    Post subject: Meaning of dollar sign in alloc Reply with quote

Sorry if this looks too simple.

In auto assembler scripts, what does the dollar sign in :
Code:
alloc(mem, $2048)

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25777
Location: The netherlands

PostPosted: Thu Aug 18, 2016 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites