Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!houxz!vax135!floyd!harpo!decvax!mcnc!ecsvax!dgary
From: dgary@ecsvax.UUCP
Newsgroups: net.micro.pc
Subject: Re: PC .COM and .EXE file formats?
Message-ID: <2728@ecsvax.UUCP>
Date: Wed, 13-Jun-84 16:29:20 EDT
Article-I.D.: ecsvax.2728
Posted: Wed Jun 13 16:29:20 1984
Date-Received: Thu, 14-Jun-84 23:42:04 EDT
References: sask.57
Lines: 19


>From: derek@sask.UUCP Tue Jun 12 04:19:58 1984
>I have the task of writing a loader for .EXE and .COM files.  Basically
>I have to simulate what DOS does to load these files.  Well, I cannot
>seem to locate a reference anywhere which tells me what these files
>look like.  Can anyone help?  Thanks.

You must have DOS 2.1 or later.  The format of the .EXE file is
explained in an appendix to the DOS manual in versions 2.0 and before.
You'll find the information you need in the DOS Technical Reference
Manual now.

Make sure you set up a DOS-like program segment prefix, by the way.
Some programs depend on it.

D Gary Grady
Duke University Computation Center, Durham, NC  27706
(919) 684-4146
USENET:  {decvax,ihnp4,akgua,etc.}!mcnc!ecsvax!dgary