-
Notifications
You must be signed in to change notification settings - Fork 2
/
msdos.h
26 lines (22 loc) · 1.36 KB
/
msdos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/******************************************************************************
* @file msdos.h
*****************************************************************************/
#ifndef _MSDOS_H
#define _MSDOS_H
struct msdos_header {
unsigned char e_magic[2]; /* Magic number */
unsigned char e_cblp[2]; /* Bytes on last page of file */
unsigned char e_cp[2]; /* Pages in file */
unsigned char e_crlc[2]; /* Relocations */
unsigned char e_cparhdr[2]; /* Size of header in paragraphs */
unsigned char e_minalloc[2]; /* Minimum extra paragraphs needed */
unsigned char e_maxalloc[2]; /* Maximum extra paragraphs needed */
unsigned char e_ss[2]; /* Initial (relative) SS value */
unsigned char e_sp[2]; /* Initial SP value */
unsigned char e_csum[2]; /* Checksum */
unsigned char e_ip[2]; /* Initial IP value */
unsigned char e_cs[2]; /* Initial (relative) CS value */
unsigned char e_lfarlc[2]; /* File address of relocation table */
unsigned char e_ovno[2]; /* Overlay number */
};
#endif /* _MSDOS_H */