View previous topic :: View next topic |
Author |
Message |
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
Posted: Thu Oct 05, 2017 7:27 am Post subject: allocate memory below 2G for 64bit process |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu Oct 05, 2017 8:05 am Post subject: |
|
|
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 |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
Posted: Thu Oct 05, 2017 10:18 am Post subject: |
|
|
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 |
|
|
|