This file defines structures and cosntants for executable files of PwnOS.
| EXE.inc | This file defines structures and cosntants for executable files of PwnOS. |
| DOSEXEHEADER | This structure defines the DOS executable header. |
This structure defines the DOS executable header. It is completely ignored by PwnOS.
| Signature | always “MZ” |
| LenMod512 | length of file mod 512 |
| LenDiv512 | number of 512-byte pages |
| NumReloc | number of relocation items following header |
| SizeHeader | size in 16-byte paragraphs, to find beginning of load module |
| MinPara | min # of paragraphs needed |
| MaxPara | max # of paragraphs program would like |
| SSOffset | offset in paras of load module of stack segment |
| InitSP | initial SP value |
| Checksum | negative checksum of program used while loading program |
| InitIP | initial IP value |
| CSOffset | offset in paras of load module of code segment |
| RelocOffset | offset in file of first relocation item |
| OverlayNum | 0 for root program |