EXE.inc

This file defines structures and cosntants for executable files of PwnOS.

See Also

Authors

  • Neil G.  Dickson
Summary
EXE.incThis file defines structures and cosntants for executable files of PwnOS.
DOSEXEHEADERThis structure defines the DOS executable header.

DOSEXEHEADER

This structure defines the DOS executable header.  It is completely ignored by PwnOS.

Members

Signaturealways “MZ”
LenMod512length of file mod 512
LenDiv512number of 512-byte pages
NumRelocnumber of relocation items following header
SizeHeadersize in 16-byte paragraphs, to find beginning of load module
MinParamin # of paragraphs needed
MaxParamax # of paragraphs program would like
SSOffsetoffset in paras of load module of stack segment
InitSPinitial SP value
Checksumnegative checksum of program used while loading program
InitIPinitial IP value
CSOffsetoffset in paras of load module of code segment
RelocOffsetoffset in file of first relocation item
OverlayNum0 for root program
This file defines process management functions of PwnOS.
This file defines structures and cosntants for process management functions of PwnOS.
The Threads section of Core provides thread and process management functions, including common scheduling operations.