News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Debugging .COM Vs .EXE

Started by Shintaro, November 16, 2022, 04:58:37 PM

Previous topic - Next topic

Shintaro

Hi,
So it is recommended that .com's be debugged as .exe's.
But doesn't that change the way segments are setup?
"Wyrd bið ful āræd. Fate is inexorable."

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.
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.
"Wyrd bið ful āræd. Fate is inexorable."