Miscellaneous > 16 bit DOS Programming

Debugging .COM Vs .EXE

(1/1)

Shintaro:
Hi,
So it is recommended that .com's be debugged as .exe's.
But doesn't that change the way segments are setup?

hutch--:
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.

Shintaro:

--- 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.

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version