Q: Reserving Memory in DOS

Started by
-1 comments, last by Michalson 24 years, 5 months ago
It might sound silly but I'm still doing some of my stuff in old DOS and even worse am using Pascal to do so. Anyhow, using the Pascal GetMem command I can reserve conventional memory for use in my program. However, Pascal only allows blocks of up to 65528, which is 8 bytes short of a full segment (likely due to a header). My question ishow to reserve a full segment of memory without going to protected mode or using any flat model tricks. (I am willing to use assembler and to give up space elsewhere in memory to store information needed to reserve and then free the segment).

This topic is closed to new replies.

Advertisement