Mail Archives: djgpp/1998/04/18/19:17:29
> > In fact, it will probably hang the machine when run!
>
> It probably will not hang the machine when run! Who knows about such
> details? We may never find out.
Oh yes it will. An EXE has a header, a COM does not. The "MZ" in the
header for the magic number will crash the computer.
>
> > DOS .com files are a special breed of executable that that must be
under
> > a certain size (I don't know what it is) and contains direct Intel
> > machine codes. COM files can be written with either NASM (the Netwide
> > Assembler, available free at www.cryogen.com/nasm) or the DEBUG program
> > that comes with DOS.
> or vi, with the help of the Alt-Numbers keys.
If you really need COM, it basically must be 16-bit. A COM file must be
under 64K bytes long, has a single segment, a small stack, etc. They are
fairly useless for 32 bit protected mode.
- Raw text -