Debian Codegraph @

src/globals.c

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 * GLOBALS.C
26 */
27
28 #include "asm.h"cxx . . $ `<file>/src/asm.h`/
29
30 SYMBOLcxx . . $ `src/asm.h:160:9`! *SHashcxx . . $ SHash.[SHASHSIZEcxx . . $ `src/asm.h:165:9`!]; /* symbol hash table */
31
32
33 MNEMONICcxx . . $ `src/asm.h:154:9`! *MHashcxx . . $ MHash.[MHASHSIZEcxx . . $ `src/asm.h:166:9`!]; /* mnemonic hash table */
34 INCFILEcxx . . $ `src/asm.h:156:9`! *pIncfilecxx . . $ pIncfile.; /* include file stack */
35 REPLOOPcxx . . $ `src/asm.h:157:9`! *Reploopcxx . . $ Reploop.; /* repeat loop stack */
36 SEGMENTcxx . . $ `src/asm.h:159:9`! *Seglistcxx . . $ Seglist.; /* segment list */
37 SEGMENTcxx . . $ `src/asm.h:159:9`! *Csegmentcxx . . $ Csegment.; /* current segment */
38 IFSTACKcxx . . $ `src/asm.h:158:9`! *Ifstackcxx . . $ Ifstack.; /* IF/ELSE/ENDIF stack */
39 char *Avcxx . . $ Av.[256]; /* up to 256 arguments */
40 char Avbufcxx . . $ Avbuf.[512];
41 unsigned char MsbOrdercxx . . $ MsbOrder. = 1;
42 int Mnextcxx . . $ Mnext.;
43 char Inclevelcxx . . $ Inclevel.;
44 unsigned int Mlevelcxx . . $ Mlevel.;
45 unsigned long Localindexcxx . . $ Localindex.; /* to generate local variables */
46 unsigned long Lastlocalindexcxx . . $ Lastlocalindex.;
47
48 unsigned long Localdollarindexcxx . . $ Localdollarindex.;
49 unsigned long Lastlocaldollarindexcxx . . $ Lastlocaldollarindex.;
50
51 unsigned long Processorcxx . . $ Processor. = 0;
52 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! bTracecxx . . $ bTrace. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
53 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! Xdebugcxx . . $ Xdebug.;
54 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! bStrictModecxx . . $ bStrictMode. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
55
56 unsigned char Outputformatcxx . . $ Outputformat.;
57
58 unsigned long Redo_whycxx . . $ Redo_why. = 0;
59 int Redo_evalcxx . . $ Redo_eval. = 0; /* infinite loop detection only */
60 int Redocxx . . $ Redo. = 0;
61
62 int nMacroDeclarationscxx . . $ nMacroDeclarations. = 0;
63 int nMacroClosingscxx . . $ nMacroClosings. = 0;
64
65 unsigned long maxFileSizecxx . . $ maxFileSize. = 640 * 1024; // avoid recursive growing via set,eqm
66 // 640k are enough for everybody ... said Bill G. How many 64k pages have you ?
67
68 unsigned long Redo_ifcxx . . $ Redo_if. = 0;
69
70 char ListModecxx . . $ ListMode. = 1;
71 unsigned long CheckSumcxx . . $ CheckSum.; /* output data checksum */
72
73 int F_formatcxx . . $ F_format. = FORMAT_DEFAULTcxx . . $ FORMAT_DEFAULT.;
74
75 /* -T option [phf] */
76 sortmode_tcxx . . $ sortmode_t# F_sortmodecxx . . $ F_sortmode. = SORTMODE_DEFAULTcxx . . $ SORTMODE_DEFAULT.;
77 /* -E option [phf] */
78 errorformat_tcxx . . $ errorformat_t# F_errorformatcxx . . $ F_errorformat. = ERRORFORMAT_DEFAULTcxx . . $ ERRORFORMAT_DEFAULT.;
79
80 unsigned char F_verbosecxx . . $ F_verbose.;
81 const char *F_outfilecxx . . $ F_outfile. = "a.out";
82 char *F_listfilecxx . . $ F_listfile.;
83 char *F_symfilecxx . . $ F_symfile.;
84 FILEcxx . . $ FILE# *FI_listfilecxx . . $ FI_listfile.;
85 FILEcxx . . $ FILE# *FI_tempcxx . . $ FI_temp.;
86 unsigned char Fisclearcxx . . $ Fisclear.;
87 unsigned long Plabcxx . . $ Plab., Pflagscxx . . $ Pflags.;
88
89 /*unsigned int Adrbytes[] = { 1, 2, 3, 2, 2, 2, 3, 3, 3, 2, 2, 2, 3, 1, 1, 2, 3 };*/
90 unsigned int Cvtcxx . . $ Cvt.[] = { 0, 2, 0, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0, 4, 5, 0, 0, 0, 0 };
91 unsigned int Opsizecxx . . $ Opsize.[] = { 0, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 0, 0, 1, 1, 1, 2 };
92
93 MNEMONICcxx . . $ `src/asm.h:154:9`! Opscxx . . $ Ops.[] = {
94 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_listcxx . . $ v_list(b7f07ba78920e729). , "list", 0, 0, {0,} },
95 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_includecxx . . $ v_include(b7f07ba78920e729). , "include", 0, 0, {0,} },
96 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_segcxx . . $ v_seg(b7f07ba78920e729). , "seg", 0, 0, {0,} },
97 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_hexcxx . . $ v_hex(b7f07ba78920e729). , "hex", 0, 0, {0,} },
98 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_errcxx . . $ v_err(b7f07ba78920e729). , "err", 0, 0, {0,} },
99 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729). , "dc", 0, 0, {0,} },
100 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729). , "byte", 0, 0, {0,} },
101 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729). , "word", 0, 0, {0,} },
102 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729). , "long", 0, 0, {0,} },
103 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dscxx . . $ v_ds(b7f07ba78920e729). , "ds", 0, 0, {0,} },
104 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729). , "dv", 0, 0, {0,} },
105 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_endcxx . . $ v_end(b7f07ba78920e729). , "end", 0, 0, {0,} },
106 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_tracecxx . . $ v_trace(b7f07ba78920e729). , "trace", 0, 0, {0,} },
107 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_orgcxx . . $ v_org(b7f07ba78920e729). , "org", 0, 0, {0,} },
108 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_rorgcxx . . $ v_rorg(b7f07ba78920e729). , "rorg", 0, 0, {0,} },
109 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_rendcxx . . $ v_rend(b7f07ba78920e729). , "rend", 0, 0, {0,} },
110 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_aligncxx . . $ v_align(b7f07ba78920e729). , "align", 0, 0, {0,} },
111 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_subroutinecxx . . $ v_subroutine(b7f07ba78920e729)., "subroutine", 0, 0, {0,} },
112 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_equcxx . . $ v_equ(b7f07ba78920e729). , "equ", 0, 0, {0,} },
113 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_equcxx . . $ v_equ(b7f07ba78920e729). , "=", 0, 0, {0,} },
114 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_eqmcxx . . $ v_eqm(b7f07ba78920e729). , "eqm", 0, 0, {0,} },
115 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_setcxx . . $ v_set(b7f07ba78920e729). , "set", 0, 0, {0,} },
116 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_setstrcxx . . $ v_setstr(b7f07ba78920e729). , "setstr", 0, 0, {0,} },
117 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_macrocxx . . $ v_macro(b7f07ba78920e729). , "mac", MF_IFcxx . . $ `src/asm.h:239:9`!|MF_BEGMcxx . . $ `src/asm.h:238:9`!, 0, {0,} },
118 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_macrocxx . . $ v_macro(b7f07ba78920e729). , "macro", MF_IFcxx . . $ `src/asm.h:239:9`!|MF_BEGMcxx . . $ `src/asm.h:238:9`!, 0, {0,} },
119 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_endmcxx . . $ v_endm(b7f07ba78920e729). , "endm", MF_ENDMcxx . . $ `src/asm.h:244:9`!,0, {0,} },
120 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mexitcxx . . $ v_mexit(b7f07ba78920e729). , "mexit", 0, 0, {0,} },
121 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_ifconstcxx . . $ v_ifconst(b7f07ba78920e729). , "ifconst", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
122 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_ifnconstcxx . . $ v_ifnconst(b7f07ba78920e729)., "ifnconst", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
123 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_ifnconstcxx . . $ v_ifnconst(b7f07ba78920e729)., "ifndef", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
124 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_ifcxx . . $ v_if(b7f07ba78920e729). , "if", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
125 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_elsecxx . . $ v_else(b7f07ba78920e729). , "else", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
126 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_endifcxx . . $ v_endif(b7f07ba78920e729). , "endif", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
127 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_endifcxx . . $ v_endif(b7f07ba78920e729). , "eif", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
128 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_repeatcxx . . $ v_repeat(b7f07ba78920e729). , "repeat", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
129 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_rependcxx . . $ v_repend(b7f07ba78920e729). , "repend", MF_IFcxx . . $ `src/asm.h:239:9`!, 0, {0,} },
130 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_echocxx . . $ v_echo(b7f07ba78920e729). , "echo", 0, 0, {0,} },
131 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_processorcxx . . $ v_processor(b7f07ba78920e729).,"processor", 0, 0, {0,} },
132 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_incbincxx . . $ v_incbin(b7f07ba78920e729). , "incbin", 0, 0, {0,} },
133 { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_incdircxx . . $ v_incdir(b7f07ba78920e729). , "incdir", 0, 0, {0,} },
134 MNEMONIC_NULLcxx . . $ `src/asm.h:256:9`!
135 };
136