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 


alloc memory problem?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
yazigegeda
Expert Cheater
Reputation: 0

Joined: 22 Jan 2019
Posts: 183

PostPosted: Sat Jun 13, 2020 11:09 am    Post subject: alloc memory problem? Reply with quote

Code:


Globalalloc(hello,1)
Globalalloc(hello2,1)



For example, after I registered: 00000000 hello
00000001 hello2

I want this effect? How to achieve it? Why the difference between the pictures is 16 bytes



a.png
 Description:
 Filesize:  15.24 KB
 Viewed:  1370 Time(s)

a.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 153

Joined: 06 Jul 2014
Posts: 4730

PostPosted: Sat Jun 13, 2020 12:42 pm    Post subject: Reply with quote

Intended, I guess. globalallocs allocate memory on a 16-byte granularity. Maybe people were too dumb to handle memory size/alignment themselves.
Code:
globalalloc(hello,2)
label(hello2)
registersymbol(hello2)
hello+1:
hello2:

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Sat Jun 13, 2020 2:06 pm    Post subject: Reply with quote

use alloc and then use registersymbol on them

also check out https://wiki.cheatengine.org/index.php?title=Auto_Assembler:struct

_________________
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