-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmips_asm_header.h
More file actions
18 lines (17 loc) · 898 Bytes
/
mips_asm_header.h
File metadata and controls
18 lines (17 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*----------------------------------------------------------------------*
* mips_asm Binary header (.mb) file header format. This header *
* provides for future information on mips assembler files. *
* *
* write_header - writes mips_asm header, along with test data *
* *
* This shows how the mips_asm header is written, and provides *
* a test case (testcase1.mb) to be used for lab projects. *
*----------------------------------------------------------------------*/
typedef struct _mb_hdr
{
char signature[4]; /* Signature = 0x7F, 'M', 'B", 0x00 */
unsigned int size; /* Size of assembler program portion, bytes */
unsigned int entry; /* Entry point offset of program if not zero */
unsigned int filler1; /* Unused ... reserved for future use. */
unsigned char filler2[64-16]; /* Overall header is 64 bytes */
} MB_HDR, *MB_HDR_PTR;