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 


Auto Assembler Memory Allocation

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sun Feb 12, 2012 1:09 pm    Post subject: Auto Assembler Memory Allocation Reply with quote

If i write:

alloc(memoryone,2)

the auto assembler should alloc just 2bytes (hex example FF FF)
and the address at memoryone should be:

//(start memoryone)
000ABC00 FF
000ABC01 FF
//(end memoryone)
000ABC02 ??
000ABC03 ?? ...etc

And if i write:

dealloc(memoryone)

the addresses should return to:

000ABC00 ??
000ABC01 ??
000ABC02 ??
000ABC03 ?? ...etc

I was just wondering why this is not happening, i mean the dealloc function works but the alloc one allocates more than asked.

example:

//(start memoryone)
000ABC00 00
000ABC01 00
000ABC02 00
000ABC03 00 ...etc
000ABEFF 00
//(end memoryone)
000ABF00 ??

Can you please tell me how to alloc fewer memory ?
for example just 8 bytes because alloc(memoryone,8) gives me way to much memory

i'm using the latest version of ce 6.1

_________________
... Fresco
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Feb 13, 2012 9:20 am    Post subject: Reply with quote

That is normal. the smallest allocatable block of memory in windows is 4096

If you do multiple alloc calls in a script ce will group them in the same 4096 byte block if possible

_________________
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
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Wed Feb 15, 2012 8:46 am    Post subject: Thank You Reply with quote

I didn't knew.
_________________
... Fresco
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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