ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
_init.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#if defined(__coco__) || defined(__coco3__) || defined(__d32__) || defined(__d64__) || defined(__mo5__) || defined(__pc128op__) || defined(__to8__) || \
38 defined(__cocob__) || defined(__coco3b__) || defined(__d32b__) || defined(__d64b__)
39
40/****************************************************************************
41 * CODE SECTION
42 ****************************************************************************/
43
44extern char DATATYPE_AS_STRING[][16];
45
47
48 _environment->embedded.cpu_fill_blocks = 1;
49 _environment->embedded.cpu_fill = 1;
50 _environment->embedded.cpu_math_div2_const_8bit = 1;
51 _environment->embedded.cpu_math_mul_8bit_to_16bit = 1;
52 _environment->embedded.cpu_math_div_8bit_to_8bit = 1;
53 _environment->embedded.cpu_math_div2_const_8bit = 1;
54 _environment->embedded.cpu_math_div2_const_16bit = 1;
55 _environment->embedded.cpu_math_mul_16bit_to_32bit = 1;
56 _environment->embedded.cpu_math_div_16bit_to_16bit = 1;
57 _environment->embedded.cpu_random = 1;
58 _environment->embedded.cpu_mem_move = 1;
59 _environment->embedded.cpu_hex_to_string = 1;
60 _environment->embedded.cpu_msc1_uncompress = 1;
61 _environment->embedded.cpu_string_sub = 1;
62 _environment->embedded.cpu_bit_inplace = 1;
63 _environment->embedded.cpu_bit_check_extended = 1;
64 _environment->embedded.cpu_flip = 1;
65 _environment->embedded.cpu_combine_nibbles = 1;
66 _environment->embedded.cpu_swap_8bit = 1; // useless, cpu_swap_8bit shares code
67 _environment->embedded.cpu_swap_16bit = 1; // useless, cpu_swap_8bit shares code
68 _environment->embedded.cpu_swap_32bit = 1; // useless, cpu_swap_8bit shares code
70
71}
72
73#endif
void environment_setup_embedded(Environment *_environment)
Definition _init.c:46
int cpu_swap_16bit
Definition ugbc.h:1609
int cpu_math_mul_16bit_to_32bit
Definition ugbc.h:1638
int cpu_swap_8bit
Definition ugbc.h:1604
int cpu_random
Definition ugbc.h:1659
int cpu_string_sub
Definition ugbc.h:1717
int cpu_swap_32bit
Definition ugbc.h:1614
int cpu_math_div2_const_8bit
Definition ugbc.h:1633
int cpu_fill_blocks
Definition ugbc.h:1584
int cpu_hex_to_string
Definition ugbc.h:1696
int cpu_bit_check_extended
Definition ugbc.h:1697
int cpu_convert_string_into_16bit
Definition ugbc.h:1680
int cpu_flip
Definition ugbc.h:1682
int cpu_msc1_uncompress
Definition ugbc.h:1716
int cpu_math_mul_8bit_to_16bit
Definition ugbc.h:1639
int cpu_combine_nibbles
Definition ugbc.h:1550
int cpu_math_div2_const_16bit
Definition ugbc.h:1631
int cpu_mem_move
Definition ugbc.h:1667
int cpu_math_div_8bit_to_8bit
Definition ugbc.h:1642
int cpu_fill
Definition ugbc.h:1583
int cpu_math_div_16bit_to_16bit
Definition ugbc.h:1641
int cpu_bit_inplace
Definition ugbc.h:1692
Embedded embedded
Definition ugbc.h:2390
struct _Environment Environment
Structure of compilation environment.
char DATATYPE_AS_STRING[][16]