The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: Shintaro on November 16, 2022, 04:58:37 PM

Title: Debugging .COM Vs .EXE
Post by: Shintaro on November 16, 2022, 04:58:37 PM
Hi,
So it is recommended that .com's be debugged as .exe's.
But doesn't that change the way segments are setup?
Title: Re: Debugging .COM Vs .EXE
Post by: hutch-- on November 16, 2022, 05:16:45 PM
A MS-DOS COM file is purely a memory image in one 64k segment, you may get a DOS Codeview to run it but its so long ago, I don't remember.
Title: Re: Debugging .COM Vs .EXE
Post by: Shintaro on November 16, 2022, 05:30:52 PM
Quote from: hutch-- on November 16, 2022, 05:16:45 PM
A MS-DOS COM file is purely a memory image in one 64k segment, you may get a DOS Codeview to run it but its so long ago, I don't remember.
Yea, CodeView loads the .com. But I was loading the .exe and the segments did not look like they were set.
Even MSDOS debug is the same.
Does DOS look in to the file to workout the segments or something like that?

EDIT: Ah, I just decided to look at Ray Duncans book and found a heap of info. Seriously I don't know why I don't start there.