BinaryImage.h 1000 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <stdint.h>
  3. struct PROG /* Loaded program image parameters */
  4. {
  5. int16_t initCS;
  6. int16_t initIP; /* These are initial load values */
  7. int16_t initSS; /* Probably not of great interest */
  8. uint16_t initSP;
  9. bool fCOM; /* Flag set if COM program (else EXE)*/
  10. int cReloc; /* No. of relocation table entries */
  11. uint32_t * relocTable; /* Ptr. to relocation table */
  12. uint8_t * map; /* Memory bitmap ptr */
  13. int cProcs; /* Number of procedures so far */
  14. int offMain; /* The offset of the main() proc */
  15. uint16_t segMain; /* The segment of the main() proc */
  16. bool bSigs; /* True if signatures loaded */
  17. int cbImage; /* Length of image in bytes */
  18. const uint8_t *image() const {return Imagez;}
  19. uint8_t * Imagez; /* Allocated by loader to hold entire program image */
  20. };