flat assembler
Message board for the users of flat assembler.
Index
> DOS > Question about using segments for dynamic memory allocation |
Author |
|
AsmGuru62 13 Oct 2013, 16:48
When COM program is loaded - the default values for all segments decided by DOS or whatever is emulating DOS (DOSBOX, NTVDM, etc).
If you take the DS register and add 1000h to it - segments starting at that adress are free to use for COM program. However, you have to plan the allocation in your code and you cannot use DOS services to allocate memory. |
|||
13 Oct 2013, 16:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.