View previous topic :: View next topic |
Author |
Message |
alanze Advanced Cheater Reputation: 3
Joined: 03 Oct 2012 Posts: 50
|
Posted: Fri Oct 17, 2014 10:19 am Post subject: Allocate Memory to Fixed Address |
|
|
I want to allocate memory in auto assemble to a fixed address.
I now the regular formula: alloc(memoryname,1024).
How can i allocate to a fixed address for example to address 41000000?
It is possible in auto assemble?
But in lua?
(allocateSharedMemory(name, size))
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Fri Oct 17, 2014 10:23 am Post subject: |
|
|
In auto assembler it'd be
Code: |
alloc(memoryname,1024,41000000)
|
it will then allocate as near as possible as that address
in lua:
Code: |
autoAssemble([[
alloc(memoryname,1024,41000000)
registersymbol(memoryname)
]])
getAddress("memoryname")
|
_________________
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 |
|
|
alanze Advanced Cheater Reputation: 3
Joined: 03 Oct 2012 Posts: 50
|
Posted: Fri Oct 17, 2014 3:23 pm Post subject: |
|
|
So it's possible (if the address is not allocated already), excellent, thanks.
|
|
Back to top |
|
|
|