Debian Codegraph @

src/asm.h

raw symbols SCIP
1 /*
2 the DASM macro assembler (aka small systems cross assembler)
3
4 Copyright (c) 1988-2002 by Matthew Dillon.
5 Copyright (c) 1995 by Olaf "Rhialto" Seibert.
6 Copyright (c) 2003-2008 by Andrew Davie.
7 Copyright (c) 2008 by Peter H. Froehlich.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 */
23
24 /*
25 * ASM65.H
26 *
27 * Structures and definitions
28 */
29
30 #include <stdio.h>
31 #include <string.h>
32 #include <stdlib.h>
33 #include <stdbool.h>
34 #include <stdint.h>
35
36 /* for -T option [phf] */
37 typedef enumcxx . . $ $anonymous_type_b757ca93565ae46a_0#
38 {
39 SORTMODE_DEFAULTcxx . . $ SORTMODE_DEFAULT.,
40 SORTMODE_ALPHAcxx . . $ SORTMODE_ALPHA. = SORTMODE_DEFAULTcxx . . $ SORTMODE_DEFAULT.,
41 SORTMODE_ADDRESScxx . . $ SORTMODE_ADDRESS.,
42 SORTMODE_MAXcxx . . $ SORTMODE_MAX.
43 } sortmode_tcxx . . $ sortmode_t#;
44
45 /* for -E option [phf] */
46 typedef enumcxx . . $ $anonymous_type_b757ca93565ae46a_1#
47 {
48 ERRORFORMAT_DEFAULTcxx . . $ ERRORFORMAT_DEFAULT.,
49 ERRORFORMAT_WOEcxx . . $ ERRORFORMAT_WOE. = ERRORFORMAT_DEFAULTcxx . . $ ERRORFORMAT_DEFAULT.,
50 ERRORFORMAT_DILLONcxx . . $ ERRORFORMAT_DILLON.,
51 ERRORFORMAT_GNUcxx . . $ ERRORFORMAT_GNU.,
52 ERRORFORMAT_MAXcxx . . $ ERRORFORMAT_MAX.
53 } errorformat_tcxx . . $ errorformat_t#;
54
55 #define DADcxx . . $ `src/asm.h:55:9`!
56
57 #ifdef DADcxx . . $ `src/asm.h:55:9`!
58
59 enum FORMATcxx . . $ FORMAT#
60 {
61 FORMAT_DEFAULTcxx . . $ FORMAT_DEFAULT. = 1,
62 FORMAT_RAScxx . . $ FORMAT_RAS.,
63 FORMAT_RAWcxx . . $ FORMAT_RAW.,
64 FORMAT_MAXcxx . . $ FORMAT_MAX.
65 };
66
67 #define MAXLINEcxx . . $ `src/asm.h:67:9`! 1024
68 #define MAX_SYM_LENcxx . . $ `src/asm.h:68:9`! 1024
69
70 enum ASM_ERROR_EQUATEScxx . . $ ASM_ERROR_EQUATES#
71 {
72 ERROR_NONEcxx . . $ ERROR_NONE. = 0,
73 ERROR_COMMAND_LINEcxx . . $ ERROR_COMMAND_LINE., /* Check format of command-line */
74 ERROR_FILE_ERRORcxx . . $ ERROR_FILE_ERROR., /* Unable to open file */
75 ERROR_NOT_RESOLVABLEcxx . . $ ERROR_NOT_RESOLVABLE., /* Source is not resolvable */
76 ERROR_TOO_MANY_PASSEScxx . . $ ERROR_TOO_MANY_PASSES., /* Too many passes - something wrong */
77 ERROR_NON_ABORTcxx . . $ ERROR_NON_ABORT., /* one or more non-abort errors occured */
78
79 ERROR_SYNTAX_ERRORcxx . . $ ERROR_SYNTAX_ERROR., /* 0 */
80 ERROR_EXPRESSION_TABLE_OVERFLOWcxx . . $ ERROR_EXPRESSION_TABLE_OVERFLOW., /* 1 */
81 ERROR_UNBALANCED_BRACEScxx . . $ ERROR_UNBALANCED_BRACES., /* 2 */
82 ERROR_DIVISION_BY_0cxx . . $ ERROR_DIVISION_BY_0., /* 3 */
83 ERROR_UNKNOWN_MNEMONICcxx . . $ ERROR_UNKNOWN_MNEMONIC., /* 4 */
84 ERROR_ILLEGAL_ADDRESSING_MODEcxx . . $ ERROR_ILLEGAL_ADDRESSING_MODE., /* 5 */
85 ERROR_ILLEGAL_FORCED_ADDRESSING_MODEcxx . . $ ERROR_ILLEGAL_FORCED_ADDRESSING_MODE., /* 6 */
86 ERROR_NOT_ENOUGH_ARGUMENTS_PASSED_TO_MACROcxx . . $ ERROR_NOT_ENOUGH_ARGUMENTS_PASSED_TO_MACRO., /* 7 */
87 ERROR_PREMATURE_EOFcxx . . $ ERROR_PREMATURE_EOF., /* 8 */
88 ERROR_ILLEGAL_CHARACTERcxx . . $ ERROR_ILLEGAL_CHARACTER., /* 9 */
89 ERROR_BRANCH_OUT_OF_RANGEcxx . . $ ERROR_BRANCH_OUT_OF_RANGE., /* 10 */
90 ERROR_ERR_PSEUDO_OP_ENCOUNTEREDcxx . . $ ERROR_ERR_PSEUDO_OP_ENCOUNTERED., /* 11 */
91 ERROR_ORIGIN_REVERSE_INDEXEDcxx . . $ ERROR_ORIGIN_REVERSE_INDEXED., /* 12 */
92 ERROR_EQU_VALUE_MISMATCHcxx . . $ ERROR_EQU_VALUE_MISMATCH., /* 13 */
93 ERROR_ADDRESS_MUST_BE_LT_100cxx . . $ ERROR_ADDRESS_MUST_BE_LT_100., /* 14 */
94 ERROR_ADDRESS_MUST_BE_LT_10000cxx . . $ ERROR_ADDRESS_MUST_BE_LT_10000., /* 15 */
95 ERROR_ILLEGAL_BIT_SPECIFICATIONcxx . . $ ERROR_ILLEGAL_BIT_SPECIFICATION., /* 16 */
96 ERROR_NOT_ENOUGH_ARGScxx . . $ ERROR_NOT_ENOUGH_ARGS., /* 17 */
97 ERROR_LABEL_MISMATCHcxx . . $ ERROR_LABEL_MISMATCH., /* 18 */
98 ERROR_MACRO_REPEATEDcxx . . $ ERROR_MACRO_REPEATED., /* 19 */
99 ERROR_VALUE_UNDEFINEDcxx . . $ ERROR_VALUE_UNDEFINED., /* 20 */
100 ERROR_PROCESSOR_NOT_SUPPORTEDcxx . . $ ERROR_PROCESSOR_NOT_SUPPORTED., /* 21 */
101 ERROR_REPEAT_NEGATIVEcxx . . $ ERROR_REPEAT_NEGATIVE., /* 22 */
102 ERROR_BADERRORcxx . . $ ERROR_BADERROR., /* 23 */
103 ERROR_ONLY_ONE_PROCESSOR_SUPPORTEDcxx . . $ ERROR_ONLY_ONE_PROCESSOR_SUPPORTED., /* Only allow one type of processor */
104 ERROR_BAD_FORMATcxx . . $ ERROR_BAD_FORMAT., /* Bad format specifier */
105
106 /* F8 support... */
107
108 ERROR_VALUE_MUST_BE_1_OR_4cxx . . $ ERROR_VALUE_MUST_BE_1_OR_4., /* 26 */
109 ERROR_VALUE_MUST_BE_LT_10cxx . . $ ERROR_VALUE_MUST_BE_LT_10., /* 27 */
110 ERROR_VALUE_MUST_BE_LT_8cxx . . $ ERROR_VALUE_MUST_BE_LT_8., /* 28 */
111 ERROR_VALUE_MUST_BE_LT_Fcxx . . $ ERROR_VALUE_MUST_BE_LT_F., /* 29 */
112 ERROR_VALUE_MUST_BE_LT_10000cxx . . $ ERROR_VALUE_MUST_BE_LT_10000., /* 30 */
113 ERROR_ILLEGAL_OPERAND_COMBINATIONcxx . . $ ERROR_ILLEGAL_OPERAND_COMBINATION., /* 31 */
114
115 ERROR_RECURSION_TOO_DEEPcxx . . $ ERROR_RECURSION_TOO_DEEP., /* 32 */
116 ERROR_AVOID_SEGFAULTcxx . . $ ERROR_AVOID_SEGFAULT., /* 33 */
117 ERROR_MISSING_ENDMcxx . . $ ERROR_MISSING_ENDM., /* 34 */
118 ERROR_MISSING_COMMENT_ENDcxx . . $ ERROR_MISSING_COMMENT_END., /* 35 */
119 ERROR_SPURIOUS_COMMENT_CLOSEcxx . . $ ERROR_SPURIOUS_COMMENT_CLOSE. /* 36 */
120 };
121
122 typedef struct ERRORSTRUCTcxx . . $ ERRORSTRUCT#
123 {
124 int nErrorTypecxx . . $ ERRORSTRUCT#nErrorType.; /* ASM_ERROR_EQUATES value */
125 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! bFatalcxx . . $ ERRORSTRUCT#bFatal.; /* 0 = OK, non-zero = cannot continue compilation */
126 const char *sDescriptioncxx . . $ ERRORSTRUCT#sDescription.; /* Error message */
127
128 } ERROR_DEFINITIONcxx . . $ ERROR_DEFINITION#;
129
130
131 enum REASON_CODEScxx . . $ REASON_CODES#
132 {
133 REASON_MNEMONIC_NOT_RESOLVEDcxx . . $ REASON_MNEMONIC_NOT_RESOLVED. = 1 << 0,
134 REASON_OBSCUREcxx . . $ REASON_OBSCURE. = 1 << 1, /* fix this! */
135 REASON_DC_NOT_RESOVEDcxx . . $ REASON_DC_NOT_RESOVED. = 1 << 2,
136 REASON_DV_NOT_RESOLVED_PROBABLYcxx . . $ REASON_DV_NOT_RESOLVED_PROBABLY. = 1 << 3,
137 REASON_DV_NOT_RESOLVED_COULDcxx . . $ REASON_DV_NOT_RESOLVED_COULD. = 1 << 4,
138 REASON_DS_NOT_RESOLVEDcxx . . $ REASON_DS_NOT_RESOLVED. = 1 << 5,
139 REASON_ALIGN_NOT_RESOLVEDcxx . . $ REASON_ALIGN_NOT_RESOLVED. = 1 << 6,
140 REASON_ALIGN_RELOCATABLE_ORIGIN_NOT_KNOWNcxx . . $ REASON_ALIGN_RELOCATABLE_ORIGIN_NOT_KNOWN. = 1 << 7,
141 REASON_ALIGN_NORMAL_ORIGIN_NOT_KNOWNcxx . . $ REASON_ALIGN_NORMAL_ORIGIN_NOT_KNOWN. = 1 << 8,
142 REASON_EQU_NOT_RESOLVEDcxx . . $ REASON_EQU_NOT_RESOLVED. = 1 << 9,
143 REASON_EQU_VALUE_MISMATCHcxx . . $ REASON_EQU_VALUE_MISMATCH. = 1 << 10,
144 REASON_IF_NOT_RESOLVEDcxx . . $ REASON_IF_NOT_RESOLVED. = 1 << 11,
145 REASON_REPEAT_NOT_RESOLVEDcxx . . $ REASON_REPEAT_NOT_RESOLVED. = 1 << 12,
146 REASON_FORWARD_REFERENCEcxx . . $ REASON_FORWARD_REFERENCE. = 1 << 13,
147 REASON_PHASE_ERRORcxx . . $ REASON_PHASE_ERROR. = 1 << 14,
148 REASON_BRANCH_OUT_OF_RANGEcxx . . $ REASON_BRANCH_OUT_OF_RANGE. = 1 << 15
149 };
150
151
152 #endif
153
154 #define MNEMONICcxx . . $ `src/asm.h:154:9`! struct _MNE
155 #define MACROcxx . . $ `src/asm.h:155:9`! struct _MACRO
156 #define INCFILEcxx . . $ `src/asm.h:156:9`! struct _INCFILE
157 #define REPLOOPcxx . . $ `src/asm.h:157:9`! struct _REPLOOP
158 #define IFSTACKcxx . . $ `src/asm.h:158:9`! struct _IFSTACK
159 #define SEGMENTcxx . . $ `src/asm.h:159:9`! struct _SEGMENT
160 #define SYMBOLcxx . . $ `src/asm.h:160:9`! struct _SYMBOL
161 #define STRLISTcxx . . $ `src/asm.h:161:9`! struct _STRLIST
162
163 #define DEFORGFILLcxx . . $ `src/asm.h:163:9`! 255
164 #define N_HASH_BITScxx . . $ `src/asm.h:164:9`! 12 // 10 was in original implementation
165 #define SHASHSIZEcxx . . $ `src/asm.h:165:9`! (1 << N_HASH_BITScxx . . $ `src/asm.h:164:9`!)
166 #define MHASHSIZEcxx . . $ `src/asm.h:166:9`! (1 << N_HASH_BITScxx . . $ `src/asm.h:164:9`!)
167 #define SHASHANDcxx . . $ `src/asm.h:167:9`! (SHASHSIZE -1)
168 #define MHASHANDcxx . . $ `src/asm.h:168:9`! (MHASHSIZEcxx . . $ `src/asm.h:166:9`! -1)
169 #define ALLOCSIZEcxx . . $ `src/asm.h:169:9`! 16384
170 #define MAXMACLEVELcxx . . $ `src/asm.h:170:9`! 32
171 #define TABcxx . . $ `src/asm.h:171:9`! 9
172
173
174 enum ADDRESS_MODEScxx . . $ ADDRESS_MODES# {
175 AM_IMPcxx . . $ AM_IMP., /* implied */
176 AM_IMM8cxx . . $ AM_IMM8., /* immediate 8 bits */
177 AM_IMM16cxx . . $ AM_IMM16., /* immediate 16 bits */
178 AM_BYTEADRcxx . . $ AM_BYTEADR., /* address 8 bits */
179 AM_BYTEADRXcxx . . $ AM_BYTEADRX., /* index x + 8 bit offset */
180 AM_BYTEADRYcxx . . $ AM_BYTEADRY., /* index y + 8 bit offset */
181 AM_WORDADRcxx . . $ AM_WORDADR., /* extended addr */
182 AM_WORDADRXcxx . . $ AM_WORDADRX., /* index x + 16 bit offset */
183 AM_WORDADRYcxx . . $ AM_WORDADRY., /* index y + 16 bit offset */
184 AM_RELcxx . . $ AM_REL., /* relative 8 bits */
185 AM_INDBYTEXcxx . . $ AM_INDBYTEX., /* indirect x */
186 AM_INDBYTEYcxx . . $ AM_INDBYTEY., /* indirect y */
187 AM_INDWORDcxx . . $ AM_INDWORD., /* indirect immediate */
188 AM_0Xcxx . . $ AM_0X., /* index x 0 bits */
189 AM_0Ycxx . . $ AM_0Y., /* index y 0 bits */
190 AM_BITMODcxx . . $ AM_BITMOD., /* spec. bit modifcation */
191 AM_BITBRAMODcxx . . $ AM_BITBRAMOD., /* spec. bit-test rel. branch */
192 AM_BYTEADR_SPcxx . . $ AM_BYTEADR_SP., /* index SP +8 bits */
193 AM_WORDADR_SPcxx . . $ AM_WORDADR_SP., /* index SP +16 bits */
194
195
196 AM_SYMBOLcxx . . $ AM_SYMBOL.,
197 AM_EXPLISTcxx . . $ AM_EXPLIST.,
198 AM_LONGcxx . . $ AM_LONG.,
199 AM_BSScxx . . $ AM_BSS.,
200
201 AM_OTHER_ENDIANcxx . . $ AM_OTHER_ENDIAN., /* force little endian to DC on big endian machines and the other way round */
202
203 NUMOCcxx . . $ NUMOC.
204 };
205
206 #define AF_IMPcxx . . $ `src/asm.h:206:9`! ( 1L << AM_IMP )
207 #define AF_IMM8cxx . . $ `src/asm.h:207:9`! ( 1L << AM_IMM8 )
208 #define AF_IMM16cxx . . $ `src/asm.h:208:9`! ( 1L << AM_IMM16 )
209 #define AF_BYTEADRcxx . . $ `src/asm.h:209:9`! ( 1L << AM_BYTEADR )
210 #define AF_BYTEADRXcxx . . $ `src/asm.h:210:9`! ( 1L << AM_BYTEADRX )
211 #define AF_BYTEADRYcxx . . $ `src/asm.h:211:9`! ( 1L << AM_BYTEADRY )
212 #define AF_WORDADRcxx . . $ `src/asm.h:212:9`! ( 1L << AM_WORDADR )
213 #define AF_WORDADRXcxx . . $ `src/asm.h:213:9`! ( 1L << AM_WORDADRX )
214 #define AF_WORDADRYcxx . . $ `src/asm.h:214:9`! ( 1L << AM_WORDADRY )
215 #define AF_RELcxx . . $ `src/asm.h:215:9`! ( 1L << AM_REL )
216 #define AF_INDBYTEXcxx . . $ `src/asm.h:216:9`! ( 1L << AM_INDBYTEX )
217 #define AF_INDBYTEYcxx . . $ `src/asm.h:217:9`! ( 1L << AM_INDBYTEY )
218 #define AF_INDWORDcxx . . $ `src/asm.h:218:9`! ( 1L << AM_INDWORD )
219 #define AF_0Xcxx . . $ `src/asm.h:219:9`! ( 1L << AM_0X )
220 #define AF_0Ycxx . . $ `src/asm.h:220:9`! ( 1L << AM_0Y )
221 #define AF_BITMODcxx . . $ `src/asm.h:221:9`! ( 1L << AM_BITMOD )
222 #define AF_BITBRAMODcxx . . $ `src/asm.h:222:9`! ( 1L << AM_BITBRAMOD )
223 #define AF_BYTEADR_SPcxx . . $ `src/asm.h:223:9`! ( 1L << AM_BYTEADR_SP)
224 #define AF_WORDADR_SPcxx . . $ `src/asm.h:224:9`! ( 1L << AM_WORDADR_SP)
225
226 #define AM_BYTEcxx . . $ `src/asm.h:226:9`! AM_BYTEADR
227 #define AM_WORDcxx . . $ `src/asm.h:227:9`! AM_WORDADR
228
229
230
231 STRLISTcxx . . $ _STRLIST# {
232 STRLISTcxx . . $ `src/asm.h:161:9`! *nextcxx . . $ _STRLIST#next.;
233 char bufcxx . . $ _STRLIST#buf.[4];
234 };
235
236 #define STRLISTSIZEcxx . . $ `src/asm.h:236:9`! sizeof(STRLISTcxx . . $ `src/asm.h:161:9`! *)
237
238 #define MF_BEGMcxx . . $ `src/asm.h:238:9`! 0x02
239 #define MF_IFcxx . . $ `src/asm.h:239:9`! 0x04
240 #define MF_MACROcxx . . $ `src/asm.h:240:9`! 0x08
241 #define MF_MASKcxx . . $ `src/asm.h:241:9`! 0x10 /* has mask argument (byte) */
242 #define MF_RELcxx . . $ `src/asm.h:242:9`! 0x20 /* has rel. address (byte) */
243 #define MF_IMODcxx . . $ `src/asm.h:243:9`! 0x40 /* instruction byte mod. */
244 #define MF_ENDMcxx . . $ `src/asm.h:244:9`! 0x80 /* is v_endm */
245
246 MNEMONICcxx . . $ `src/asm.h:154:9`! {
247 MNEMONICcxx . . $ `src/asm.h:154:9`! *nextcxx . . $ _MNE#next.; /* hash */
248 void (*vectcxx . . $ _MNE#vect.)(char *, MNEMONICcxx . . $ _MNE# *); /* dispatch */
249 const char *namecxx . . $ _MNE#name.; /* actual name */
250 unsigned char flagscxx . . $ _MNE#flags.; /* special flags */
251 unsigned long okmaskcxx . . $ _MNE#okmask.;
252 unsigned int opcodecxx . . $ _MNE#opcode.[NUMOCcxx . . $ NUMOC.]; /* hex codes, byte or word (>xFF) opcodes */
253 };
254
255 /* MNEMONIC with all fields 0, used as end-of-table marker. */
256 #define MNEMONIC_NULLcxx . . $ `src/asm.h:256:9`! {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 0, 0, {0,}}
257
258 MACROcxx . . $ _MACRO# {
259 MACROcxx . . $ `src/asm.h:155:9`! *nextcxx . . $ _MACRO#next.;
260 void (*vectcxx . . $ _MACRO#vect.)(char *, MACROcxx . . $ `src/asm.h:155:9`! *);
261 char *namecxx . . $ _MACRO#name.;
262 unsigned char flagscxx . . $ _MACRO#flags.;
263 STRLISTcxx . . $ _STRLIST# *strlistcxx . . $ _MACRO#strlist.;
264 int defpasscxx . . $ _MACRO#defpass.;
265 };
266
267 #define INF_MACROcxx . . $ `src/asm.h:267:9`! 0x01
268 #define INF_NOLISTcxx . . $ `src/asm.h:268:9`! 0x02
269
270 INCFILEcxx . . $ _INCFILE# {
271 INCFILEcxx . . $ _INCFILE# *nextcxx . . $ _INCFILE#next.; /* previously pushed context */
272 char *namecxx . . $ _INCFILE#name.; /* file name */
273 FILEcxx . . $ FILE# *ficxx . . $ _INCFILE#fi.; /* file handle */
274 unsigned long linenocxx . . $ _INCFILE#lineno.; /* line number in file */
275 unsigned char flagscxx . . $ _INCFILE#flags.; /* flags (macro) */
276
277 /* Only if Macro */
278
279 STRLISTcxx . . $ _STRLIST# *argscxx . . $ _INCFILE#args.; /* arguments to macro */
280 STRLISTcxx . . $ `src/asm.h:161:9`! *strlistcxx . . $ _INCFILE#strlist.; /* current string list */
281 unsigned long saveidxcxx . . $ _INCFILE#saveidx.; /* save localindex */
282 unsigned long savedolidxcxx . . $ _INCFILE#savedolidx.; /* save localdollarindex */
283
284 };
285
286 #define RPF_UNKNOWNcxx . . $ `src/asm.h:286:9`! 0x01 /* value unknown */
287
288 REPLOOPcxx . . $ _REPLOOP# {
289 REPLOOPcxx . . $ `src/asm.h:157:9`! *nextcxx . . $ _REPLOOP#next.; /* previously pushed context */
290 unsigned long countcxx . . $ _REPLOOP#count.; /* repeat count */
291 unsigned long seekcxx . . $ _REPLOOP#seek.; /* seek to top of repeat */
292 unsigned long linenocxx . . $ _REPLOOP#lineno.; /* line number of line before */
293 INCFILEcxx . . $ _INCFILE# *filecxx . . $ _REPLOOP#file.; /* which include file are we in*/
294 unsigned char flagscxx . . $ _REPLOOP#flags.;
295 };
296
297 #define IFF_UNKNOWNcxx . . $ `src/asm.h:297:9`! 0x01 /* value unknown */
298 #define IFF_BASEcxx . . $ `src/asm.h:298:9`! 0x04
299
300 IFSTACKcxx . . $ _IFSTACK# {
301 IFSTACKcxx . . $ `src/asm.h:158:9`! *nextcxx . . $ _IFSTACK#next.; /* previous IF */
302 INCFILEcxx . . $ _INCFILE# *filecxx . . $ _IFSTACK#file.; /* which include file are we in*/
303 unsigned char flagscxx . . $ _IFSTACK#flags.;
304 unsigned char xtruecxx . . $ _IFSTACK#xtrue.; /* 1 if true, 0 if false */
305 unsigned char acctruecxx . . $ _IFSTACK#acctrue.;/* accumulatively true (not incl this one) */
306 };
307
308 #define SF_UNKNOWNcxx . . $ `src/asm.h:308:9`! 0x01 /* ORG unknown */
309 #define SF_REFcxx . . $ `src/asm.h:309:9`! 0x04 /* ORG referenced */
310 #define SF_BSScxx . . $ `src/asm.h:310:9`! 0x10 /* uninitialized area (U flag) */
311 #define SF_RORGcxx . . $ `src/asm.h:311:9`! 0x20 /* relocatable origin active */
312
313 SEGMENTcxx . . $ _SEGMENT# {
314 SEGMENTcxx . . $ `src/asm.h:159:9`! *nextcxx . . $ _SEGMENT#next.; /* next segment in segment list */
315 char *namecxx . . $ _SEGMENT#name.; /* name of segment */
316 unsigned char flagscxx . . $ _SEGMENT#flags.; /* for ORG */
317 unsigned char rflagscxx . . $ _SEGMENT#rflags.; /* for RORG */
318 unsigned long orgcxx . . $ _SEGMENT#org.; /* current org */
319 unsigned long rorgcxx . . $ _SEGMENT#rorg.; /* current rorg */
320 unsigned long initorgcxx . . $ _SEGMENT#initorg.;
321 unsigned long initrorgcxx . . $ _SEGMENT#initrorg.;
322 unsigned char initflagscxx . . $ _SEGMENT#initflags.;
323 unsigned char initrflagscxx . . $ _SEGMENT#initrflags.;
324 };
325
326 #define SYM_UNKNOWNcxx . . $ `src/asm.h:326:9`! 0x01 /* value unknown */
327 #define SYM_REFcxx . . $ `src/asm.h:327:9`! 0x04 /* referenced */
328 #define SYM_STRINGcxx . . $ `src/asm.h:328:9`! 0x08 /* result is a string */
329 #define SYM_SETcxx . . $ `src/asm.h:329:9`! 0x10 /* SET instruction used */
330 #define SYM_MACROcxx . . $ `src/asm.h:330:9`! 0x20 /* symbol is a macro */
331 #define SYM_MASREFcxx . . $ `src/asm.h:331:9`! 0x40 /* master reference */
332
333 SYMBOLcxx . . $ `src/asm.h:160:9`! {
334 SYMBOLcxx . . $ _SYMBOL# *nextcxx . . $ _SYMBOL#next.; /* next symbol in hash list */
335 char *namecxx . . $ _SYMBOL#name.; /* symbol name or string if expr. */
336 char *stringcxx . . $ _SYMBOL#string.; /* if symbol is actually a string */
337 unsigned char flagscxx . . $ _SYMBOL#flags.; /* flags */
338 unsigned char addrmodecxx . . $ _SYMBOL#addrmode.; /* addressing mode (expressions) */
339 long valuecxx . . $ _SYMBOL#value.; /* current value, never EVER change this to unsigned! */
340 unsigned int namelencxx . . $ _SYMBOL#namelen.; /* name length */
341 };
342
343 extern SYMBOLcxx . . $ `src/asm.h:160:9`! *SHashcxx . . $ SHash.[];
344 extern MNEMONICcxx . . $ `src/asm.h:154:9`! *MHashcxx . . $ MHash.[];
345 extern INCFILEcxx . . $ _INCFILE# *pIncfilecxx . . $ pIncfile.;
346 extern REPLOOPcxx . . $ _REPLOOP# *Reploopcxx . . $ Reploop.;
347 extern SEGMENTcxx . . $ _SEGMENT# *Seglistcxx . . $ Seglist.;
348 extern IFSTACKcxx . . $ `src/asm.h:158:9`! *Ifstackcxx . . $ Ifstack.;
349
350 extern SEGMENTcxx . . $ `src/asm.h:159:9`! *Csegmentcxx . . $ Csegment.; /* current segment */
351 extern char *Avcxx . . $ Av.[];
352 extern char Avbufcxx . . $ Avbuf.[];
353 /*extern unsigned int Adrbytes[];*/
354 extern unsigned int Cvtcxx . . $ Cvt.[];
355 extern MNEMONICcxx . . $ _MNE# Opscxx . . $ Ops.[];
356 extern unsigned int Opsizecxx . . $ Opsize.[];
357 extern int Mnextcxx . . $ Mnext.; /* mnemonic extension */
358 extern unsigned int Mlevelcxx . . $ Mlevel.;
359
360 extern boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! bTracecxx . . $ bTrace.;
361 extern boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! Xdebugcxx . . $ Xdebug.;
362 extern boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! bStrictModecxx . . $ bStrictMode.;
363 extern unsigned char MsbOrdercxx . . $ MsbOrder.;
364 extern unsigned char Outputformatcxx . . $ Outputformat.;
365 extern unsigned long Redo_whycxx . . $ Redo_why.;
366
367 extern unsigned long maxFileSizecxx . . $ maxFileSize.;
368
369 extern int Redocxx . . $ Redo.;
370 extern int Redo_evalcxx . . $ Redo_eval.;
371
372 extern unsigned long Redo_ifcxx . . $ Redo_if.;
373 extern unsigned long Localindexcxx . . $ Localindex., Lastlocalindexcxx . . $ Lastlocalindex.;
374 extern unsigned long Localdollarindexcxx . . $ Localdollarindex., Lastlocaldollarindexcxx . . $ Lastlocaldollarindex.;
375 extern int F_formatcxx . . $ F_format.;
376 extern sortmode_tcxx . . $ sortmode_t# F_sortmodecxx . . $ F_sortmode.; /* -T option [phf] */
377 extern errorformat_tcxx . . $ errorformat_t# F_errorformatcxx . . $ F_errorformat.; /* -E option [phf] */
378 extern unsigned char F_verbosecxx . . $ F_verbose.;
379 extern const char *F_outfilecxx . . $ F_outfile.;
380 extern char *F_listfilecxx . . $ F_listfile.;
381 extern char *F_symfilecxx . . $ F_symfile.;
382 extern FILEcxx . . $ FILE# *FI_listfilecxx . . $ FI_listfile.;
383 extern FILEcxx . . $ FILE# *FI_tempcxx . . $ FI_temp.;
384 extern unsigned char Fisclearcxx . . $ Fisclear.;
385 extern unsigned long Plabcxx . . $ Plab., Pflagscxx . . $ Pflags.;
386 extern char Inclevelcxx . . $ Inclevel.;
387 extern char ListModecxx . . $ ListMode.;
388 extern unsigned long Processorcxx . . $ Processor.;
389
390 /*extern unsigned int _fmode;*/
391 extern unsigned long CheckSumcxx . . $ CheckSum.;
392
393 extern int nMacroDeclarationscxx . . $ nMacroDeclarations.;
394 extern int nMacroClosingscxx . . $ nMacroClosings.;
395
396 /* main.c */
397 /*extern unsigned char Listing;*/
398 void findextcxx . . $ findext(fda57c8427c60377).(char *str);
399 int asmerrcxx . . $ asmerr(1daa6892c969c96d).(int err, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! bAbort, const char *sText);
400 char *sftoscxx . . $ sftos(ef4cfbd1f56d9042).(long val, int flags);
401 void rmnodecxx . . $ rmnode(c5057b5a64f892f7).(void **base, int bytes);
402 void addhashtablecxx . . $ addhashtable(c2a72e93142ff88d).(MNEMONICcxx . . $ `src/asm.h:154:9`! *mne);
403 void pushincludecxx . . $ pushinclude(fda57c8427c60377).(char *str);
404 char *permalloccxx . . $ permalloc(ff224f080444ee45).(int bytes);
405 char *zmalloccxx . . $ zmalloc(ff224f080444ee45).(int bytes);
406 char *ckmalloccxx . . $ ckmalloc(ff224f080444ee45).(int bytes);
407 char *strlowercxx . . $ strlower(7a9722d75b371431).(char *str);
408 void addmsgcxx . . $ addmsg(fda57c8427c60377).(char *message);
409
410 /* symbols.c */
411 void setspecialcxx . . $ setspecial(3e454b8ccf442868).(int value, int flags);
412 SYMBOLcxx . . $ _SYMBOL# *allocsymbolcxx . . $ allocsymbol(cdf7111cce0c7830).(void);
413 SYMBOLcxx . . $ `src/asm.h:160:9`! *findsymbolcxx . . $ findsymbol(83a8820e5b78665b).(const char *str, int len);
414 SYMBOLcxx . . $ _SYMBOL# *CreateSymbolcxx . . $ CreateSymbol(83a8820e5b78665b).( const char *str, int len );
415 void FreeSymbolListcxx . . $ FreeSymbolList(54782e8e250fbf33).(SYMBOLcxx . . $ _SYMBOL# *sym);
416 void programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(void);
417
418 /* ops.c */
419 extern unsigned char Gencxx . . $ Gen.[];
420 extern int Glencxx . . $ Glen.;
421 void v_setcxx . . $ v_set(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
422 void v_setstrcxx . . $ v_setstr(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
423 void v_mexitcxx . . $ v_mexit(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
424 void closegeneratecxx . . $ closegenerate(49f6e7a06ebc5aa8).(void);
425 void generatecxx . . $ generate(49f6e7a06ebc5aa8).(void);
426
427 void v_listcxx . . $ v_list(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
428 void v_includecxx . . $ v_include(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
429 void v_segcxx . . $ v_seg(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
430 void v_dccxx . . $ v_dc(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
431 void v_dscxx . . $ v_ds(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
432 void v_orgcxx . . $ v_org(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
433 void v_rorgcxx . . $ v_rorg(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
434 void v_rendcxx . . $ v_rend(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
435 void v_aligncxx . . $ v_align(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
436 void v_subroutinecxx . . $ v_subroutine(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
437 void v_equcxx . . $ v_equ(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
438 void v_eqmcxx . . $ v_eqm(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
439 void v_setcxx . . $ v_set(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
440 void v_macrocxx . . $ v_macro(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
441 void v_endmcxx . . $ v_endm(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
442 void v_mexitcxx . . $ v_mexit(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
443 void v_ifconstcxx . . $ v_ifconst(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
444 void v_ifnconstcxx . . $ v_ifnconst(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
445 void v_ifcxx . . $ v_if(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
446 void v_elsecxx . . $ v_else(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
447 void v_endifcxx . . $ v_endif(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
448 void v_repeatcxx . . $ v_repeat(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
449 void v_rependcxx . . $ v_repend(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
450 void v_errcxx . . $ v_err(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
451 void v_hexcxx . . $ v_hex(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
452 void v_tracecxx . . $ v_trace(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
453 void v_endcxx . . $ v_end(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
454 void v_echocxx . . $ v_echo(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
455 void v_processorcxx . . $ v_processor(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
456 void v_incbincxx . . $ v_incbin(b7f07ba78920e729).(char *, MNEMONICcxx . . $ _MNE# *);
457 void v_incdircxx . . $ v_incdir(b7f07ba78920e729).(char *, MNEMONICcxx . . $ `src/asm.h:154:9`! *);
458 void v_execmaccxx . . $ v_execmac(f68f5bbf1ad34a70).(char *str, MACROcxx . . $ _MACRO# *mac);
459 void v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne);
460
461 FILEcxx . . $ FILE# *pfopencxx . . $ pfopen(82ec0787cd37e0a3).(const char *, const char *);
462
463
464 /* exp.c */
465 SYMBOLcxx . . $ _SYMBOL# *evalcxx . . $ eval(83a8820e5b78665b).(const char *str, int wantmode);
466
467
468
469
470
471 /* end of asm.h */