Difference between revisions of "Auto Assembler:globalAlloc"
Jump to navigation
Jump to search
(→Related Commands) |
|||
Line 1: | Line 1: | ||
+ | [[Category:Assembler]] | ||
'''Auto Assembler''' globalAlloc(''Symbol'', ''Size'') | '''Auto Assembler''' globalAlloc(''Symbol'', ''Size'') | ||
Revision as of 11:35, 19 March 2017
Auto Assembler globalAlloc(Symbol, Size)
Allocates a certain amount of memory and registers the specified name. Using GlobalAlloc in other scripts will then not allocate the memory again, but reuse the already existing memory. (Or allocate it anyhow if found it wasn't allocated yet)
Command Parameters
Parameter | Type | Description |
---|---|---|
Symbol | string | The symbol to allocate globally |
Size | integer | The byte size of the memory block to allocate globally |
Examples
globalAlloc(SomeSymbol, 0x4)