home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / asm / 80x0393 / exehdr.txt < prev    next >
Encoding:
Text File  |  1993-08-19  |  1.6 KB  |  37 lines

  1. (9035)  Sat 14 Aug 93  7:14p
  2. By: Olivier Reubens
  3. To: Adam Nikic
  4. Re: Exe header
  5. St:                                                                       9044>
  6. ---------------------------------------------------------------------------
  7. @EID:2123 70820127
  8. @MSGID: 2:291/1800.20 71944152
  9. -> Does anyone can send here detailed description of EXE file header
  10. -> (for DOS)?
  11.  
  12. Sure thing, it's in a PASCAL record format though, but should be easy to work
  13. out.
  14.  
  15.  EXEHEADER  = RECORD
  16.                 SIGNATURE  : WORD;  { 'MZ'                          }
  17.                 MODLENGTH  : WORD;  { Length of file MOD 512        }
  18.                 DIVLENGTH  : WORD;  { Length of file DIV 512 +    1 }
  19.                 Relocat    : WORD;  { Number of relocation Items    }
  20.                 HeaderSiz  : WORD;  { Size of header                }
  21.                 MinPARAM   : WORD;  { Min. paragraphs required      }
  22.                 MAXPARAM   : WORD;  { Max. paragraphs required      }
  23.                 StackDisp  : WORD;  { Displacement of Stack         }
  24.                 Init_SP    : WORD;  { Value for SP after Load       }
  25.                 CheckSUM   : WORD;  { Word checksum                 }
  26.                 Init_IP    : WORD;  { Initial value of IP           }
  27.                 Init_CS    : WORD;  { Initial value of CS           }
  28.                 DispReloc  : WORD;  { Displacement of 1st reloc.    }
  29.                 OverLayNr  : WORD;  { Should be 0 for program       }
  30.              END;
  31.  
  32.  
  33. --- TosScan 1.00
  34.  * Origin: <FUN-derbird> 3Gig, USR 16.8K DS, +32-50-620112 (2:291/1800.20)
  35.  
  36. @PATH: 500/1 105/42 334 138/1 13/13 260/1
  37.