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 


allocate memory below 2G for 64bit process

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Thu Oct 05, 2017 7:27 am    Post subject: allocate memory below 2G for 64bit process Reply with quote

Is there way that guarantee allocate a piece of memory below 2G address for a 64bit process?

It seems it is not necessarily possible, for example the notepad.exe on 64bit windows is 64bit process,
I can't use Lua allocateMemory, AA alloc or globalalloc (with 0 base address hint ) to allocate it below 2G.

I want to allocate memory below 2G because it could make the assembler instruction for 64bit AA script simpler.

Thank you~

_________________
- Retarded.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Oct 05, 2017 8:05 am    Post subject: Reply with quote

tried prefered address 40000000 ?

also, it won't make your scripts that much easier because then you have to use 14 byte megajumps to get there

_________________
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
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Thu Oct 05, 2017 10:18 am    Post subject: Reply with quote

It does work, thank you very much!

If the address is below 2G, it seems CE AA always allow following code in 64 bit process:
allow constant instruction line, otherwise need push/pop a register
Code:

cmp   dword ptr[fFireRate],0
jne   @f
  mov   dword ptr[fFireRate],(float)4
@@:

6 bytes jump from anywhere(?)
Code:

push  <taget-address-below-2G>
ret

_________________
- Retarded.
Back to top
View user's profile Send private message
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