1 #define OASYS_MAX_SEC_COUNT 16
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 file_offset;
38 int32_type sect_count;
41 } oasys_module_table_type;
53 } oasys_external_module_table_type;
58 oasys_record_is_end_enum = 0,
59 oasys_record_is_data_enum = 1,
60 oasys_record_is_symbol_enum = 2,
61 oasys_record_is_header_enum = 3,
62 oasys_record_is_named_section_enum = 4,
63 oasys_record_is_com_enum = 5,
64 oasys_record_is_debug_enum = 6,
65 oasys_record_is_section_enum = 7,
66 oasys_record_is_debug_file_enum = 8,
67 oasys_record_is_module_enum = 9,
68 oasys_record_is_local_enum = 10
69 } oasys_record_enum_type;
78 } oasys_record_header_type;
81 oasys_record_header_type header;
84 uint8e_type data[256];
85 } oasys_data_record_type;
88 oasys_record_header_type header;
89 int8_type version_number;
91 char module_name[26-6];
92 char description[64-26];
93 } oasys_header_record_type;
95 #define OASYS_VERSION_NUMBER 0
96 #define OASYS_REV_NUMBER 0
98 oasys_record_header_type header;
103 } oasys_symbol_record_type;
105 typedef int8e_type relocation_byte;
107 #define RELOCATION_PCREL_BIT 0x80
108 #define RELOCATION_32BIT_BIT 0x40
109 #define RELOCATION_TYPE_BITS 0x30
110 #define RELOCATION_TYPE_ABS 0x00
111 #define RELOCATION_TYPE_REL 0x10
112 #define RELOCATION_TYPE_UND 0x20
113 #define RELOCATION_TYPE_COM 0x30
114 #define RELOCATION_SECT_BITS 0x0f
118 oasys_record_header_type header;
123 } oasys_section_record_type;
126 oasys_record_header_type header;
131 } oasys_end_record_type;
137 oasys_record_header_type header;
138 oasys_data_record_type data;
139 oasys_section_record_type section;
140 oasys_symbol_record_type symbol;
141 oasys_header_record_type first;
142 oasys_end_record_type end;
143 uint8e_type pad[256];
144 } oasys_record_union_type;