8 char revision_date
[12];
10 uint32_type mod_tbl_offset
;
11 uint32_type sym_tbl_size
;
12 uint32_type sym_count
;
13 uint32_type sym_tbl_offset
;
14 uint32_type xref_count
;
15 uint32_type xref_lst_offset
;
16 } oasys_archive_header_type
;
21 char revision_date
[12];
23 char mod_tbl_offset
[4];
26 char sym_tbl_offset
[4];
28 char xref_lst_offset
[4];
29 } oasys_external_archive_header_type
;
32 int32_type mod_number
;
36 int32_type depee_count
;
37 int32_type sect_count
;
38 int32_type file_offset
;
39 int32_type mod_name_length
;
40 } oasys_module_table_type
;
51 char mod_name_length
[4];
52 } oasys_external_module_table_type
;
56 oasys_record_is_end_enum
= 0,
57 oasys_record_is_data_enum
= 1,
58 oasys_record_is_symbol_enum
= 2,
59 oasys_record_is_header_enum
= 3,
60 oasys_record_is_named_section_enum
= 4,
61 oasys_record_is_com_enum
= 5,
62 oasys_record_is_debug_enum
= 6,
63 oasys_record_is_section_enum
= 7,
64 oasys_record_is_debug_file_enum
= 8,
65 oasys_record_is_module_enum
= 9,
66 oasys_record_is_local_enum
= 10
67 } oasys_record_enum_type
;
76 } oasys_record_header_type
;
79 oasys_record_header_type header
;
82 uint8e_type data
[256];
83 } oasys_data_record_type
;
86 oasys_record_header_type header
;
87 int8_type version_number
;
89 char module_name
[26-6];
90 char description
[64-26];
91 } oasys_header_record_type
;
93 #define OASYS_VERSION_NUMBER 0
94 #define OASYS_REV_NUMBER 0
96 oasys_record_header_type header
;
101 } oasys_symbol_record_type
;
103 typedef int8e_type relocation_byte
;
105 #define RELOCATION_PCREL_BIT 0x80
106 #define RELOCATION_32BIT_BIT 0x40
107 #define RELOCATION_TYPE_BITS 0x30
108 #define RELOCATION_TYPE_ABS 0x00
109 #define RELOCATION_TYPE_REL 0x10
110 #define RELOCATION_TYPE_UND 0x20
111 #define RELOCATION_TYPE_COM 0x30
112 #define RELOCATION_SECT_BITS 0x0f
116 oasys_record_header_type header
;
121 } oasys_section_record_type
;
124 oasys_record_header_type header
;
129 } oasys_end_record_type
;
132 #define OASYS_MAX_SEC_COUNT 16
135 oasys_record_header_type header
;
136 oasys_data_record_type data
;
137 oasys_section_record_type section
;
138 oasys_symbol_record_type symbol
;
139 oasys_header_record_type first
;
140 oasys_end_record_type end
;
141 uint8e_type pad
[256];
142 } oasys_record_union_type
;