CB> So the code for that is run after the .EXE is
CB> started, rather than DOS doing it during loading based on
CB> values from the header ?
DG> Exactly; DOS merely assigns all available memory in one block to any
DG> program it loads, and it is then up to the application to manage what
DG> it has been given.
DG> In this case, we wish to give up some of that memeory so we can
DG> request memory for a different purpose. In a .exe, you can achieve
DG> that with linker directives, in a .com you must write the code
DG> yourself.
Odd... with .exe's and .com's being treated the same by dos, with
regards to memory allocation, I'd have thought that a linker directive
would exist for both or none.
Chris.
... Sorry, the dog ate my Blue Wave packet.
--- FMail/386 1.20+
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)
|