Hi,

>  I'd suggest using 0xC3 0x00 as a magic number for any non-8086 executable.
> Or, for preference, using a 4-byte magic number: 0xC3 0x00 0x00 followed by
> a byte giving the supported CPU architecture. Then the logic in the loader 
> would be:
> 

Here’s an easier solution. Follow the pattern Microsoft set with PE files. PE 
files BTW is the executable format for Windows EXE files.

Visit this link - 
http://en.wikibooks.org/wiki/X86_Disassembly/Windows_Executable_Files#MS-DOS_COM_Files
 
<http://en.wikibooks.org/wiki/X86_Disassembly/Windows_Executable_Files#MS-DOS_COM_Files>

i think it might be a little simpler this way.
> -- 
> John Elliott
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Freedos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freedos-devel

------------------------------------------------------------------------------
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to