Re:Exploring Object File Formats
by WalterBright on Tuesday January 16, 2024 @01:58PM
(#39017299)
What's interesting about that is every tool I've seen to generate .com files would set SS=DS=ES=CS to the same value.
But, it turns out, this is not necessary. The only thing about COM is that the file size has to be less than 64K. This enables another memory model, where the code seg and data seg are different, enabling substantially larger programs that were still COM programs. This was the Zortech "small" memory model.
But, it turns out, this is not necessary. The only thing about COM is that the file size has to be less than 64K. This enables another memory model, where the code seg and data seg are different, enabling substantially larger programs that were still COM programs. This was the Zortech "small" memory model.