ROSE  0.9.10.75
Public Attributes | List of all members
SgAsmDOSFileHeader::DOSFileHeader_disk Struct Reference

Description

On-disk format of DOS file header.

Definition at line 9180 of file binaryInstruction.C.

Public Attributes

unsigned char e_magic [2]
 0x00 "MZ"
 
uint16_t e_last_page_size
 0x02 bytes used on last page of file (1 page == 512 bytes); zero implies if last page is full. More...
 
uint16_t e_total_pages
 0x04 number of pages (inc. More...
 
uint16_t e_nrelocs
 0x06 number of relocation entries stored after this header. More...
 
uint16_t e_header_paragraphs
 0x08 header size in paragraphs (16-byte blocks) inc. More...
 
uint16_t e_minalloc
 0x0a number of extra paragraphs needed, similar to BSS in Unix. More...
 
uint16_t e_maxalloc
 0x0c max paragraphs to allocate for BSS. More...
 
uint16_t e_ss
 0x0e initial value of SS register relative to program load segment. More...
 
uint16_t e_sp
 0x10 initial value for SP register. More...
 
uint16_t e_cksum
 0x12 checksum; 16-bit sum of all words in file should be zero (usually not filled in). More...
 
uint16_t e_ip
 0x14 initial value for IP register. More...
 
uint16_t e_cs
 0x16 initial value for CS register relative to program load segment. More...
 
uint16_t e_relocs_offset
 0x18 file address of relocation table. More...
 
uint16_t e_overlay
 0x1a overlay number (zero indicates main program). More...
 
uint32_t e_res1
 0x1c unknown purpose. More...
 

Member Data Documentation

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_last_page_size

0x02 bytes used on last page of file (1 page == 512 bytes); zero implies if last page is full.

Definition at line 9182 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_total_pages

0x04 number of pages (inc.

last possibly partial page) in file.

Definition at line 9184 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_nrelocs

0x06 number of relocation entries stored after this header.

Definition at line 9185 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_header_paragraphs

0x08 header size in paragraphs (16-byte blocks) inc.

relocations.

Definition at line 9186 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_minalloc

0x0a number of extra paragraphs needed, similar to BSS in Unix.

Definition at line 9187 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_maxalloc

0x0c max paragraphs to allocate for BSS.

Definition at line 9188 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_ss

0x0e initial value of SS register relative to program load segment.

Definition at line 9189 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_sp

0x10 initial value for SP register.

Definition at line 9190 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_cksum

0x12 checksum; 16-bit sum of all words in file should be zero (usually not filled in).

Definition at line 9191 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_ip

0x14 initial value for IP register.

Definition at line 9193 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_cs

0x16 initial value for CS register relative to program load segment.

Definition at line 9194 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_relocs_offset

0x18 file address of relocation table.

Definition at line 9195 of file binaryInstruction.C.

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_overlay

0x1a overlay number (zero indicates main program).

Definition at line 9196 of file binaryInstruction.C.

uint32_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_res1

0x1c unknown purpose.

Definition at line 9197 of file binaryInstruction.C.


The documentation for this struct was generated from the following file: