ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
_var.c
Go to the documentation of this file.
1/*****************************************************************************
2 * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
3 *****************************************************************************
4 * Copyright 2021-2026 Marco Spedaletti (asimov@mclink.it)
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *----------------------------------------------------------------------------
18 * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0
19 * (la "Licenza"); è proibito usare questo file se non in conformità alla
20 * Licenza. Una copia della Licenza è disponibile all'indirizzo:
21 *
22 * http://www.apache.org/licenses/LICENSE-2.0
23 *
24 * Se non richiesto dalla legislazione vigente o concordato per iscritto,
25 * il software distribuito nei termini della Licenza è distribuito
26 * "COSÌ COM'È", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o
27 * implicite. Consultare la Licenza per il testo specifico che regola le
28 * autorizzazioni e le limitazioni previste dalla medesima.
29 ****************************************************************************/
30
31/****************************************************************************
32 * INCLUDE SECTION
33 ****************************************************************************/
34
35#include "../../ugbc.h"
36
37/****************************************************************************
38 * CODE SECTION
39 ****************************************************************************/
40
41extern char BANK_TYPE_AS_STRING[][16];
42extern char DATATYPE_AS_STRING[][16];
43
44static void variable_cleanup_entry( Environment * _environment, Variable * _first ) {
45
46 Variable * variable = _first;
47
48 while( variable ) {
49 if ( ( !variable->assigned || ( variable->assigned && !variable->temporary ) ) ) {
50 switch( variable->type ) {
51 case VT_CHAR:
52 case VT_BYTE:
53 case VT_SBYTE:
54 case VT_COLOR:
55 case VT_THREAD:
56 if ( variable->memoryArea ) {
57 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
58 } else {
59 vars_emit_byte( _environment, variable->realName, variable->initialValue);
60 }
61 break;
62 case VT_DOJOKA:
63 if ( variable->memoryArea ) {
64 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
65 } else {
66 outline1("%s: defs 4", variable->realName);
67 }
68 break;
69 case VT_WORD:
70 case VT_SWORD:
71 case VT_POSITION:
72 case VT_ADDRESS:
73 if ( variable->memoryArea ) {
74 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
75 } else {
76 vars_emit_word( _environment, variable->realName, variable->initialValue);
77 }
78 break;
79 case VT_DWORD:
80 case VT_SDWORD:
81 if ( variable->memoryArea ) {
82 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
83 } else {
84 vars_emit_dword( _environment, variable->realName, variable->initialValue);
85 }
86 break;
87 case VT_NUMBER:
88 if ( variable->memoryArea ) {
89 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
90 } else {
91 vars_emit_number( _environment, variable->realName, variable->initialValue);
92 }
93 break;
94 case VT_FLOAT:
95 if ( variable->memoryArea ) {
96 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
97 } else {
98 outhead0("section data_user");
99 outline2("%s: defs %d", variable->realName, 1 << VT_FLOAT_NORMALIZED_POW2_WIDTH( variable->arrayPrecision) );
100 outhead0("section code_user");
101 }
102 break;
103 case VT_STRING:
104 outline2("%s: EQU cstring%d", variable->realName, variable->valueString->id );
105 break;
106 case VT_DSTRING:
107 if ( variable->memoryArea ) {
108 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
109 } else {
110 outline1("%s: db 0", variable->realName);
111 }
112 break;
113 case VT_MSPRITE:
114 case VT_SPRITE:
115 if ( variable->memoryArea ) {
116 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
117 } else {
118 outline1("%s: db 0", variable->realName);
119 }
120 break;
121 case VT_TILE:
122 if ( variable->memoryArea ) {
123 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
124 } else {
125 outline1("%s: db 0", variable->realName);
126 }
127 break;
128 case VT_TILESET:
129 if ( variable->memoryArea ) {
130 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
131 } else {
132 outline1("%s: db 0", variable->realName);
133 }
134 break;
135 case VT_TILES:
136 if ( variable->memoryArea ) {
137 outline2("%s: EQU $%4.4x", variable->realName, variable->absoluteAddress);
138 } else {
139 outline1("%s: db 0,0,0,0", variable->realName);
140 }
141 break;
142 case VT_BLIT:
143 break;
144 case VT_IMAGE:
145 case VT_IMAGES:
146 case VT_SEQUENCE:
147 case VT_MUSIC:
148 case VT_BUFFER:
149 case VT_TYPE:
150 if ( ! variable->absoluteAddress ) {
151 if ( variable->valueBuffer ) {
152 if ( variable->printable ) {
153 char * string = malloc( variable->size + 1 );
154 memset( string, 0, variable->size + 1 );
155 memcpy( string, variable->valueBuffer, variable->size );
156 outline2("%s: db %s", variable->realName, escape_newlines( string ) );
157 } else {
158 out1("%s: db ", variable->realName);
159 int i=0;
160 for (i=0; i<(variable->size-1); ++i ) {
161 if ( ( ( i + 1 ) % 16 ) == 0 ) {
162 outline1("%d", variable->valueBuffer[i]);
163 out0(" db " );
164 } else {
165 out1("%d,", variable->valueBuffer[i]);
166 }
167 }
168 outline1("%d", variable->valueBuffer[(variable->size-1)]);
169 }
170 } else {
171 outline2("%s: defs %d", variable->realName, variable->size);
172 }
173 } else {
174 outline2("%s = $%4.4x", variable->realName, variable->absoluteAddress);
175 if ( variable->valueBuffer ) {
176 if ( variable->printable ) {
177 char * string = malloc( variable->size + 1 );
178 memset( string, 0, variable->size + 1 );
179 memcpy( string, variable->valueBuffer, variable->size );
180 outline2("%scopy: db %s", variable->realName, escape_newlines( string ) );
181 } else {
182 out1("%scopy: db ", variable->realName);
183 int i=0;
184 for (i=0; i<(variable->size-1); ++i ) {
185 out1("%d,", variable->valueBuffer[i]);
186 }
187 outline1("%d", variable->valueBuffer[(variable->size-1)]);
188 }
189 }
190 }
191 break;
192 case VT_TILEMAP:
193 case VT_TARRAY: {
194 if ( variable->bankAssigned != -1 ) {
195
196 outhead0("section data_user");
197 outhead4("; relocated on bank %d (at %4.4x) for %d bytes (uncompressed: %d)", variable->bankAssigned, variable->absoluteAddress, variable->size, variable->uncompressedSize );
198 if ( variable->type == VT_TARRAY ) {
199 if (VT_BITWIDTH( variable->arrayType ) == 0 ) {
201 }
202 // force +1 byte if size is odd
203 outhead2("%s: defs %d, $00", variable->realName, (VT_BITWIDTH( variable->arrayType )>>3) );
204 } else {
205 if (VT_BITWIDTH( variable->type ) == 0 ) {
206 CRITICAL_DATATYPE_UNSUPPORTED( "BANKED", DATATYPE_AS_STRING[ variable->type ] );
207 }
208 // force +1 byte if size is odd
209 outhead2("%s: defs %d, $00", variable->realName, (VT_BITWIDTH( variable->type )>>3) );
210 }
211 outhead0("section code_user");
212
213 } else {
214
215 if ( variable->valueBuffer ) {
216 out1("%s: db ", variable->realName);
217 int i=0;
218 for (i=0; i<(variable->size-1); ++i ) {
219 out1("%d,", variable->valueBuffer[i]);
220 }
221 outline1("%d", variable->valueBuffer[(variable->size-1)]);
222 } else if ( variable->value ) {
223
224 switch( VT_BITWIDTH( variable->arrayType ) ) {
225 case 32: {
226 out1("%s: db ", variable->realName );
227 for( int i=0; i<(variable->size/4)-1; ++i ) {
228 out4("$%2.2x, $%2.2x, $%2.2x, $%2.2x, ", (unsigned int)( variable->value & 0xff ), (unsigned int)( ( variable->value >> 8 ) & 0xff ), (unsigned int)( ( variable->value >> 16 ) & 0xff ), (unsigned int)( ( variable->value >> 24 ) & 0xff ) );
229 }
230 out4("$%2.2x, $%2.2x, $%2.2x, $%2.2x", (unsigned int)( variable->value & 0xff ), (unsigned int)( ( variable->value >> 8 ) & 0xff ), (unsigned int)( ( variable->value >> 16 ) & 0xff ), (unsigned int)( ( variable->value >> 24 ) & 0xff ) );
231 outline0("");
232 break;
233 }
234 case 16: {
235 out1("%s: db ", variable->realName );
236 for( int i=0; i<(variable->size/2)-1; ++i ) {
237 out2("$%2.2x, $%2.2x,", (unsigned int)( variable->value & 0xff ), (unsigned int)( ( variable->value >> 8 ) & 0xff ) );
238 }
239 out2("$%2.2x, $%2.2x", (unsigned int)( variable->value & 0xff ), (unsigned int)( ( variable->value >> 8 ) & 0xff ) );
240 outline0("");
241 break;
242 }
243 case 8:
244 outline3("%s: defs %d, $%2.2x", variable->realName, variable->size, (unsigned char)(variable->value&0xff) );
245 break;
246 case 1:
247 outline3("%s: defs %d, $%2.2x", variable->realName, variable->size, (unsigned char)(variable->value?0xff:0x00));
248 break;
249 }
250
251 } else {
252 outline2("%s: defs %d", variable->realName, variable->size);
253 }
254 }
255
256 break;
257 }
258 }
259
260 if( variable->type == VT_IMAGES ) {
261 if ( variable->strips ) {
262 vars_emit_strips( _environment, variable->realName, variable->strips );
263 }
264 }
265
266 }
267 variable = variable->next;
268 }
269
270}
271
272static void variable_cleanup_entry_bit( Environment * _environment, Variable * _first ) {
273
274 Variable * variable = _first;
275
276 int bitCount = 0;
277
278 outhead0("section data_user");
279 while( variable ) {
280
281 if ( ( !variable->assigned || ( variable->assigned && !variable->temporary ) ) && !variable->imported && !variable->memoryArea ) {
282
283 if ( variable->memoryArea && _environment->debuggerLabelsFile ) {
284 fprintf( _environment->debuggerLabelsFile, "%4.4x %s\r\n", variable->absoluteAddress, variable->realName );
285 }
286
287 switch( variable->type ) {
288 case VT_BIT:
289 if ( variable->memoryArea ) {
290 // outline2("%s = $%4.4x", variable->realName, variable->absoluteAddress);
291 } else {
292 outline1("%s:", variable->realName);
293 }
294 ++bitCount;
295 if ( bitCount == 8 ) {
296 outline0(" defs 1");
297 }
298 break;
299 }
300
301 }
302
303 variable = variable->next;
304
305 }
306
307 if ( bitCount > 0 ) {
308 outline0(" defs 1");
309 }
310 outhead0("section code_user");
311
312}
322void variable_cleanup( Environment * _environment ) {
323
324 int i=0;
325
326 vars_emit_constants( _environment );
327
328 if ( _environment->dataSegment ) {
329 outhead1("DATAFIRSTSEGMENT EQU %s", _environment->dataSegment->realName );
330 if ( _environment->readDataUsed && _environment->restoreDynamic ) {
331 outhead0("DATASEGMENTNUMERIC:" );
332 DataSegment * actual = _environment->dataSegment;
333 while( actual ) {
334 if ( actual->isNumeric ) {
335 outline2( "dw $%4.4x, %s", actual->lineNumber, actual->realName );
336 }
337 actual = actual->next;
338 }
339 outline0( "dw $ffff, DATAPTRE" );
340 }
341 }
342
343 if ( _environment->offsetting ) {
344 Offsetting * actual = _environment->offsetting;
345 while( actual ) {
346 out1("OFFSETS%4.4x: dw ", actual->size );
347 for( i=0; i<actual->count; ++i ) {
348 out1("$%4.4x", i * actual->size );
349 if ( i < ( actual->count - 1 ) ) {
350 out0(",");
351 } else {
352 outline0("");
353 }
354 }
355 actual = actual->next;
356 }
357 }
358
359 Constant * c = _environment->constants;
360 while( c ) {
361 if ( c->valueString ) {
362 int len = strlen( c->valueString->value );
363 out2("%s: db %d,", c->realName, len);
364 int i=0;
365 for (i=0; i<(len-1); ++i ) {
366 out1("$%2.2x,", (unsigned char)c->valueString->value[i]);
367 }
368 outline1("$%2.2x", (unsigned char)c->valueString->value[(len-1)]);
369 }
370 c = c->next;
371 }
372
373 for(i=0; i<BANK_TYPE_COUNT; ++i) {
374 Bank * actual = _environment->banks[i];
375 while( actual ) {
376 if ( actual->type == BT_VARIABLES ) {
377 Variable * variable = _environment->variables;
378 variable_cleanup_entry( _environment, variable );
379 variable_cleanup_entry_bit( _environment, variable );
380 } else if ( actual->type == BT_TEMPORARY ) {
381 if ( _environment->bitmaskNeeded ) {
382 outhead0("BITMASK: defm $01,$02,$04,$08,$10,$20,$40,$80");
383 outhead0("BITMASKN: defm $fe,$fd,$fb,$f7,$ef,$df,$bf,$7f");
384 }
385 if ( _environment->deployed.dstring ) {
386 outhead1("max_free_string = $%4.4x", _environment->dstring.space == 0 ? DSTRING_DEFAULT_SPACE : _environment->dstring.space );
387 }
388
389 for( int j=0; j< (_environment->currentProcedure+1); ++j ) {
390 Variable * variable = _environment->tempVariables[j];
391 variable_cleanup_entry( _environment, variable );
392 variable_cleanup_entry_bit( _environment, variable );
393 }
394
395 Variable * variable = _environment->tempResidentVariables;
396
397 variable_cleanup_entry( _environment, variable );
398 variable_cleanup_entry_bit( _environment, variable );
399
400 } else {
401
402 }
403 actual = actual->next;
404 }
405 }
406
407 variable_on_memory_init( _environment, 1 );
408
409 DataSegment * dataSegment = _environment->dataSegment;
410 while( dataSegment ) {
411 int i=0;
412 if ( dataSegment->data ) {
413 out1("%s: db ", dataSegment->realName );
414 } else {
415 outhead1("%s: ", dataSegment->realName );
416 }
417 DataDataSegment * dataDataSegment = dataSegment->data;
418 while( dataDataSegment ) {
419 if ( dataSegment->type ) {
420 if ( dataDataSegment->type == VT_STRING || dataDataSegment->type == VT_DSTRING ) {
421 out1("$%2.2x,", (unsigned char)(dataDataSegment->size) );
422 out1("\"%s\"", dataDataSegment->data );
423 } else {
424 for( i=0; i<(dataDataSegment->size-1); ++i ) {
425 out1("$%2.2x,", (unsigned char)(dataDataSegment->data[i]&0xff) );
426 }
427 out1("$%2.2x", (unsigned char)(dataDataSegment->data[i]&0xff) );
428 }
429 } else {
430 if ( dataDataSegment->type == VT_STRING || dataDataSegment->type == VT_DSTRING ) {
431 out1("$%2.2x,", (unsigned char)(dataDataSegment->type) );
432 out1("$%2.2x,", (unsigned char)(dataDataSegment->size) );
433 out1("\"%s\"", dataDataSegment->data );
434 } else {
435 out1("$%2.2x,", (unsigned char)(dataDataSegment->type) );
436 for( i=0; i<(dataDataSegment->size-1); ++i ) {
437 out1("$%2.2x,", (unsigned char)(dataDataSegment->data[i]&0xff) );
438 }
439 out1("$%2.2x", (unsigned char)(dataDataSegment->data[i]&0xff) );
440 }
441 }
442 dataDataSegment = dataDataSegment->next;
443 if ( dataDataSegment ) {
444 out0(",");
445 }
446 }
447 outline0("");
448 dataSegment = dataSegment->next;
449 }
450
451 if ( _environment->dataNeeded || _environment->dataSegment || _environment->deployed.read_data_unsafe ) {
452 outhead0("DATAPTRE:");
453 }
454
455 StaticString * staticStrings = _environment->strings;
456 while( staticStrings ) {
457 outline3("cstring%d: db %d, %s", staticStrings->id, (int)strlen(staticStrings->value), escape_newlines( staticStrings->value ) );
458 staticStrings = staticStrings->next;
459 }
460
461 generate_cgoto_address_table( _environment );
462
463 banks_generate( _environment );
464
465 if ( _environment->descriptors ) {
466 outhead0("UDCCHAR:" );
467 int i=0,j=0;
468 for(i=_environment->descriptors->first;i<(_environment->descriptors->first+_environment->descriptors->count);++i) {
469 outline1("; $%2.2x ", i);
470 out0("DEFB " );
471 for(j=0;j<7;++j) {
472 out1("$%2.2x,", ((unsigned char)_environment->descriptors->data[i].data[j]) );
473 }
474 outline1("$%2.2x", ((unsigned char)_environment->descriptors->data[i].data[j]) );
475 }
476 } else {
477 outhead0("UDCCHAR: EQU $E000");
478 }
479
480}
void vars_emit_constants(Environment *_environment)
Definition _vars.c:58
void vars_emit_strips(Environment *_environment, char *_name, Strip *_strips)
Definition _vars.c:118
#define VT_FLOAT_NORMALIZED_POW2_WIDTH(p)
Definition 6309.h:50
void vars_emit_word(Environment *_environment, char *_name, int _value)
Definition _vars.c:92
void vars_emit_dword(Environment *_environment, char *_name, int _value)
Definition _vars.c:100
void vars_emit_number(Environment *_environment, char *_name, int _value)
Definition _vars.c:108
void vars_emit_byte(Environment *_environment, char *_name, int _value)
Definition _vars.c:84
char * escape_newlines(char *_string)
void variable_cleanup(Environment *_environment)
Emit source and configuration lines for variables.
Definition _var.c:559
char BANK_TYPE_AS_STRING[][16]
Description of BANK TYPE, in readable format.
#define DSTRING_DEFAULT_SPACE
Definition atari.h:152
void banks_generate(Environment *_environment)
Definition _banks.c:45
void generate_cgoto_address_table(Environment *_environment)
Definition _var.c:122
void variable_on_memory_init(Environment *_environment, int _imported_too)
Definition _var.c:41
struct _Bank * next
Definition ugbc.h:185
BankType type
Definition ugbc.h:162
StaticString * valueString
Definition ugbc.h:820
struct _Constant * next
Definition ugbc.h:832
char * realName
Definition ugbc.h:803
int space
Definition ugbc.h:1970
struct _DataDataSegment * next
Definition ugbc.h:2181
char * data
Definition ugbc.h:2178
VariableType type
Definition ugbc.h:2175
struct _DataSegment * next
Definition ugbc.h:2198
DataDataSegment * data
Definition ugbc.h:2196
int lineNumber
Definition ugbc.h:2193
VariableType type
Definition ugbc.h:2187
int isNumeric
Definition ugbc.h:2189
char * realName
Definition ugbc.h:2192
int read_data_unsafe
Definition ugbc.h:1923
int dstring
Definition ugbc.h:1789
Variable * tempResidentVariables
Definition ugbc.h:2595
Offsetting * offsetting
Definition ugbc.h:2937
Bank * banks[BANK_TYPE_COUNT]
Definition ugbc.h:2514
Variable * tempVariables[MAX_PROCEDURES]
Definition ugbc.h:2606
DataSegment * dataSegment
Definition ugbc.h:2568
FILE * debuggerLabelsFile
Definition ugbc.h:3319
StaticString * strings
Definition ugbc.h:2641
int restoreDynamic
Definition ugbc.h:2573
int bitmaskNeeded
Definition ugbc.h:2659
int currentProcedure
Definition ugbc.h:2601
DString dstring
Definition ugbc.h:2405
Variable * variables
Definition ugbc.h:2616
int dataNeeded
Definition ugbc.h:2557
Constant * constants
Definition ugbc.h:2611
TileDescriptors * descriptors
Definition ugbc.h:2939
int readDataUsed
Definition ugbc.h:2578
Deployed deployed
Definition ugbc.h:2921
int size
Definition ugbc.h:892
struct _Offsetting * next
Definition ugbc.h:905
int count
Definition ugbc.h:897
char * value
Definition ugbc.h:337
struct _StaticString * next
Definition ugbc.h:342
char data[8]
Definition ugbc.h:2141
TileData data[512]
Definition ugbc.h:2153
int bankAssigned
Definition ugbc.h:1172
unsigned char * valueBuffer
Definition ugbc.h:1061
int printable
Definition ugbc.h:1097
Strip * strips
Definition ugbc.h:1215
StaticString * valueString
Definition ugbc.h:1041
int assigned
Definition ugbc.h:1020
struct _Variable * next
Definition ugbc.h:1225
int initialValue
Definition ugbc.h:1030
int size
Definition ugbc.h:1077
int absoluteAddress
Definition ugbc.h:1092
FloatTypePrecision arrayPrecision
Definition ugbc.h:1128
VariableType type
Definition ugbc.h:988
MemoryArea * memoryArea
Definition ugbc.h:1107
int uncompressedSize
Definition ugbc.h:1082
int value
Definition ugbc.h:1025
int imported
Definition ugbc.h:1014
VariableType arrayType
Definition ugbc.h:1125
int temporary
Definition ugbc.h:996
char * realName
Definition ugbc.h:982
void * malloc(YYSIZE_T)
#define out4(s, a, b, c, d)
Definition ugbc.h:4263
#define BANK_TYPE_COUNT
Maximum number of bank types.
Definition ugbc.h:145
struct _Offsetting Offsetting
#define outline3(s, a, b, c)
Definition ugbc.h:4255
struct _Variable Variable
Structure of a single variable.
#define outline2(s, a, b)
Definition ugbc.h:4254
struct _Environment Environment
Structure of compilation environment.
@ VT_THREAD
Definition ugbc.h:492
@ VT_DOJOKA
Definition ugbc.h:534
@ VT_TILE
Definition ugbc.h:504
@ VT_FLOAT
Definition ugbc.h:522
@ VT_BLIT
Definition ugbc.h:519
@ VT_TARRAY
Definition ugbc.h:480
@ VT_WORD
Definition ugbc.h:455
@ VT_POSITION
Definition ugbc.h:468
@ VT_NUMBER
Definition ugbc.h:549
@ VT_SDWORD
Definition ugbc.h:462
@ VT_MSPRITE
Definition ugbc.h:531
@ VT_STRING
Definition ugbc.h:474
@ VT_TILEMAP
Definition ugbc.h:525
@ VT_TILES
Definition ugbc.h:507
@ VT_SWORD
Definition ugbc.h:457
@ VT_BYTE
Definition ugbc.h:450
@ VT_DWORD
Definition ugbc.h:460
@ VT_BIT
Definition ugbc.h:528
@ VT_CHAR
Definition ugbc.h:498
@ VT_BUFFER
Definition ugbc.h:477
@ VT_SPRITE
Definition ugbc.h:501
@ VT_SBYTE
Definition ugbc.h:452
@ VT_IMAGES
Definition ugbc.h:495
@ VT_MUSIC
Definition ugbc.h:516
@ VT_TYPE
Definition ugbc.h:546
@ VT_ADDRESS
Definition ugbc.h:465
@ VT_COLOR
Definition ugbc.h:471
@ VT_TILESET
Definition ugbc.h:510
@ VT_DSTRING
Definition ugbc.h:483
@ VT_IMAGE
Definition ugbc.h:489
@ VT_SEQUENCE
Definition ugbc.h:513
#define outhead0(s)
Definition ugbc.h:4246
#define outhead4(s, a, b, c, d)
Definition ugbc.h:4250
#define out0(s)
Definition ugbc.h:4259
struct _Constant Constant
Structure of a single constant.
@ BT_VARIABLES
Definition ugbc.h:126
@ BT_TEMPORARY
Definition ugbc.h:129
#define out2(s, a, b)
Definition ugbc.h:4261
#define outline0(s)
Definition ugbc.h:4252
struct _StaticString StaticString
Structure of a single (static) string.
#define outhead2(s, a, b)
Definition ugbc.h:4248
#define CRITICAL_DATATYPE_UNSUPPORTED(k, v)
Definition ugbc.h:3447
struct _DataDataSegment DataDataSegment
#define out1(s, a)
Definition ugbc.h:4260
#define outline1(s, a)
Definition ugbc.h:4253
struct _DataSegment DataSegment
#define VT_BITWIDTH(t)
Definition ugbc.h:595
struct _Bank Bank
Structure of a single bank.
#define outhead1(s, a)
Definition ugbc.h:4247
char DATATYPE_AS_STRING[][16]