flat assembler
Message board for the users of flat assembler.
Index
> DOS > Dynamic memory allocation in Assembly |
Author |
|
vbVeryBeginner 12 Nov 2005, 12:24
Code:
rb 0xF
|
|||
12 Nov 2005, 12:24 |
|
Eoin 12 Nov 2005, 15:54
For Dynamic allocation, i.e when the size can only be determined at runtime and not compile time there are a number of functions available depending on OS.
If your linking with a C library you can use malloc. If not you can use HeapAlloc when in windows, I'm not sure about the Linux/*BSD functions. |
|||
12 Nov 2005, 15:54 |
|
ccrayne 12 Nov 2005, 20:25
In DOS, use INT 21h with AH = 48h and BX = number of paragraphs requested.
|
|||
12 Nov 2005, 20:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.