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

Description

On-disk format of DOS file header.

Definition at line 28313 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.
 
uint16_t e_total_pages
 0x04 number of pages (inc.
 
uint16_t e_nrelocs
 0x06 number of relocation entries stored after this header.
 
uint16_t e_header_paragraphs
 0x08 header size in paragraphs (16-byte blocks) inc.
 
uint16_t e_minalloc
 0x0a number of extra paragraphs needed, similar to BSS in Unix.
 
uint16_t e_maxalloc
 0x0c max paragraphs to allocate for BSS.
 
uint16_t e_ss
 0x0e initial value of SS register relative to program load segment.
 
uint16_t e_sp
 0x10 initial value for SP register.
 
uint16_t e_cksum
 0x12 checksum; 16-bit sum of all words in file should be zero (usually not filled in).
 
uint16_t e_ip
 0x14 initial value for IP register.
 
uint16_t e_cs
 0x16 initial value for CS register relative to program load segment.
 
uint16_t e_relocs_offset
 0x18 file address of relocation table.
 
uint16_t e_overlay
 0x1a overlay number (zero indicates main program).
 
uint32_t e_res1
 0x1c unknown purpose.
 

Member Data Documentation

◆ e_magic

unsigned char SgAsmDOSFileHeader::DOSFileHeader_disk::e_magic[2]

0x00 "MZ"

Definition at line 28314 of file binaryInstruction.C.

◆ e_last_page_size

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 28315 of file binaryInstruction.C.

◆ e_total_pages

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_total_pages

0x04 number of pages (inc.

last possibly partial page) in file.

Definition at line 28317 of file binaryInstruction.C.

◆ e_nrelocs

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_nrelocs

0x06 number of relocation entries stored after this header.

Definition at line 28318 of file binaryInstruction.C.

◆ e_header_paragraphs

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_header_paragraphs

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

relocations.

Definition at line 28319 of file binaryInstruction.C.

◆ e_minalloc

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_minalloc

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

Definition at line 28320 of file binaryInstruction.C.

◆ e_maxalloc

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_maxalloc

0x0c max paragraphs to allocate for BSS.

Definition at line 28321 of file binaryInstruction.C.

◆ e_ss

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_ss

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

Definition at line 28322 of file binaryInstruction.C.

◆ e_sp

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_sp

0x10 initial value for SP register.

Definition at line 28323 of file binaryInstruction.C.

◆ e_cksum

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 28324 of file binaryInstruction.C.

◆ e_ip

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_ip

0x14 initial value for IP register.

Definition at line 28326 of file binaryInstruction.C.

◆ e_cs

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_cs

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

Definition at line 28327 of file binaryInstruction.C.

◆ e_relocs_offset

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_relocs_offset

0x18 file address of relocation table.

Definition at line 28328 of file binaryInstruction.C.

◆ e_overlay

uint16_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_overlay

0x1a overlay number (zero indicates main program).

Definition at line 28329 of file binaryInstruction.C.

◆ e_res1

uint32_t SgAsmDOSFileHeader::DOSFileHeader_disk::e_res1

0x1c unknown purpose.

Definition at line 28330 of file binaryInstruction.C.


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