1 |
2 |
mrdmkg |
#define ojeto_64
|
2 |
|
|
|
3 |
|
|
#include "sospesifada.h"
|
4 |
|
|
|
5 |
|
|
#include "tipodef.h"
|
6 |
|
|
#include "lista.h"
|
7 |
|
|
|
8 |
|
|
#define cpu_1664__dest_bitio 2
|
9 |
|
|
//5.o 3.c 2.rd 6.r
|
10 |
|
|
#define cpu_1664_bitio_rd 2
|
11 |
|
|
#define cpu_1664_bitio_r 6
|
12 |
|
|
#define cpu_1664_bitio_ao 7
|
13 |
|
|
#define cpu_1664_bitio_co 4
|
14 |
|
|
#define cpu_1664_bitio_opera 5
|
15 |
|
|
#define cpu_1664_bitio_c 3
|
16 |
|
|
|
17 |
|
|
typedef n2 cpu_1664_opera_t;
|
18 |
|
|
|
19 |
|
|
#ifdef ojeto_64
|
20 |
|
|
typedef n8 cpu_1664_sinia_t;
|
21 |
|
|
#define cpu_1664_sinia_t_bitio 3
|
22 |
|
|
#define lista_ajunta__cpu_1664_sinia_t lista_ajunta__n8
|
23 |
|
|
#define lista_ajunta__SPR_t lista_ajunta__n8
|
24 |
|
|
#endif
|
25 |
|
|
|
26 |
|
|
#ifdef ojeto_32
|
27 |
|
|
typedef n4 cpu_1664_sinia_t;
|
28 |
|
|
#define cpu_1664_sinia_t_bitio 2
|
29 |
|
|
#define lista_ajunta__cpu_1664_sinia_t lista_ajunta__n4
|
30 |
|
|
#define lista_ajunta__SPR_t lista_ajunta__n4
|
31 |
|
|
#endif
|
32 |
|
|
|
33 |
|
|
#ifdef ojeto_16
|
34 |
|
|
typedef n2 cpu_1664_sinia_t;
|
35 |
|
|
#define cpu_1664_sinia_t_bitio 1
|
36 |
|
|
#define lista_ajunta__cpu_1664_sinia_t lista_ajunta__n2
|
37 |
|
|
#define lista_ajunta__SPR_t lista_ajunta__n2
|
38 |
|
|
#endif
|
39 |
|
|
|
40 |
|
|
typedef cpu_1664_sinia_t SPR_t;
|
41 |
|
|
|
42 |
|
|
#define lista_ajunta__cpu_1664_parola_t lista_ajunta__n2
|
43 |
|
|
#define cpu_1664_sinia_t_di ((((cpu_1664_sinia_t)(-1))>>1)+1)
|
44 |
|
|
#define cpu_1664_sinia_t_masima ((((cpu_1664_sinia_t)(-1))>>0)+0)
|
45 |
|
|
|
46 |
|
|
typedef n4 cpu_1664_asm_sinia_t;
|
47 |
|
|
#define cpu_1664_asm_sinia_t_sinia__ccadena n4_sinia__ccadena
|
48 |
|
|
#define cpu_1664_asm_sinia_t_sinia__cadena n4_sinia__cadena
|
49 |
|
|
#define lista_ajunta__cpu_1664_asm_sinia_t lista_ajunta__n4
|
50 |
|
|
#define lista_ajunta__cpu_1664_asm_parola_t lista_ajunta__n2
|
51 |
|
|
|
52 |
|
|
#define cpu_1664_opera_ajusta 0x00
|
53 |
|
|
#define cpu_1664_opera_ldi 0x01
|
54 |
|
|
#define cpu_1664_opera_ldis 0x02
|
55 |
|
|
#define cpu_1664_opera_ldm 0x03
|
56 |
|
|
#define cpu_1664_opera_stm 0x04
|
57 |
|
|
#define cpu_1664_opera_ldr 0x05
|
58 |
|
|
#define cpu_1664_opera_str 0x06
|
59 |
|
|
#define cpu_1664_opera_cam 0x07 //intercambia
|
60 |
|
|
|
61 |
|
|
#define cpu_1664_opera_yli 0x08
|
62 |
|
|
#define cpu_1664_opera_ylr 0x09
|
63 |
|
|
|
64 |
|
|
#define cpu_1664_opera_ldb 0x0a
|
65 |
|
|
#define cpu_1664_opera_stb 0x0b
|
66 |
|
|
#define cpu_1664_opera_cmp 0x0c
|
67 |
|
|
#define cpu_1664_opera_dep 0x0d
|
68 |
|
|
#define cpu_1664_opera_bit 0x0e
|
69 |
|
|
#define cpu_1664_opera_rev 0x0f
|
70 |
|
|
|
71 |
|
|
#define cpu_1664_opera_and 0x10
|
72 |
|
|
#define cpu_1664_opera_or 0x11
|
73 |
|
|
#define cpu_1664_opera_eor 0x12
|
74 |
|
|
#define cpu_1664_opera_shl 0x13
|
75 |
|
|
#define cpu_1664_opera_shr 0x14
|
76 |
|
|
#define cpu_1664_opera_sar 0x15
|
77 |
|
|
#define cpu_1664_opera_plu 0x16
|
78 |
|
|
#define cpu_1664_opera_sut 0x17
|
79 |
|
|
#define cpu_1664_opera_sutr 0x18
|
80 |
|
|
#define cpu_1664_opera_mul 0x19
|
81 |
|
|
#define cpu_1664_opera_div 0x1a
|
82 |
|
|
|
83 |
|
|
#define cpu_1664_opera_final cpu_1664_opera_div
|
84 |
|
|
|
85 |
|
|
#define cpu_1664_sicle_opera_ajusta 0x01
|
86 |
|
|
#define cpu_1664_sicle_opera_ldi 0x01
|
87 |
|
|
#define cpu_1664_sicle_opera_ldis 0x01
|
88 |
|
|
#define cpu_1664_sicle_opera_ldm 0x03
|
89 |
|
|
#define cpu_1664_sicle_opera_stm 0x03
|
90 |
|
|
#define cpu_1664_sicle_opera_ldr 0x01
|
91 |
|
|
#define cpu_1664_sicle_opera_str 0x01
|
92 |
|
|
#define cpu_1664_sicle_opera_cam 0x01
|
93 |
|
|
|
94 |
|
|
#define cpu_1664_sicle_opera_yli 0x02
|
95 |
|
|
#define cpu_1664_sicle_opera_ylr 0x03
|
96 |
|
|
|
97 |
|
|
#define cpu_1664_sicle_opera_ldb 0x01
|
98 |
|
|
#define cpu_1664_sicle_opera_stb 0x01
|
99 |
|
|
#define cpu_1664_sicle_opera_cmp 0x01
|
100 |
|
|
#define cpu_1664_sicle_opera_dep 0x01
|
101 |
|
|
#define cpu_1664_sicle_opera_bit 0x01
|
102 |
|
|
#define cpu_1664_sicle_opera_rev 0x0a //*
|
103 |
|
|
|
104 |
|
|
#define cpu_1664_sicle_opera_and 0x01
|
105 |
|
|
#define cpu_1664_sicle_opera_or 0x01
|
106 |
|
|
#define cpu_1664_sicle_opera_eor 0x01
|
107 |
|
|
#define cpu_1664_sicle_opera_shl 0x01
|
108 |
|
|
#define cpu_1664_sicle_opera_shr 0x01
|
109 |
|
|
#define cpu_1664_sicle_opera_sar 0x01
|
110 |
|
|
#define cpu_1664_sicle_opera_plu 0x01
|
111 |
|
|
#define cpu_1664_sicle_opera_sut 0x01
|
112 |
|
|
#define cpu_1664_sicle_opera_sutr 0x01
|
113 |
|
|
#define cpu_1664_sicle_opera_mul 0x05
|
114 |
|
|
#define cpu_1664_sicle_opera_div 0x08
|
115 |
|
|
|
116 |
|
|
#define cpu_1664_sinia_eseta 0
|
117 |
|
|
#define cpu_1664_sinia_pila 6
|
118 |
|
|
#define cpu_1664_sinia_IP 7
|
119 |
|
|
#define cpu_1664_sinia_reveni 63
|
120 |
|
|
#define cpu_1664_sinia_reveni_eseta 62
|
121 |
|
|
#define cpu_1664_sinia_desloca 59
|
122 |
|
|
#define cpu_1664_sinia_minima 60
|
123 |
|
|
#define cpu_1664_sinia_masima 61
|
124 |
|
|
#define cpu_1664_sinia_RETENI_0 8
|
125 |
|
|
#define cpu_1664_sinia_RETENI_cuantia 32
|
126 |
|
|
#define cpu_1664_sinia_TEMPORA_0 (cpu_1664_sinia_RETENI0 + cpu_1664_sinia_RETENI_cuantia)
|
127 |
|
|
#define cpu_1664_sinia_TEMPORA_cuantia 16
|
128 |
|
|
|
129 |
|
|
#define cpu_1664_depende_z 0
|
130 |
|
|
#define cpu_1664_depende_n 1
|
131 |
|
|
#define cpu_1664_depende_c 2
|
132 |
|
|
#define cpu_1664_depende_o 3
|
133 |
|
|
#define cpu_1664_depende_1 7
|
134 |
|
|
#define cpu_1664_depende_bitio_depende_influe 8
|
135 |
|
|
//#define cpu_1664_depende_bitio_opera_ajusta_protejeda 9
|
136 |
|
|
|
137 |
|
|
#define cpu_1664_opera_bit_masima 0
|
138 |
|
|
#define cpu_1664_opera_bit_minima 1
|
139 |
|
|
#define cpu_1664_opera_bit_set 2
|
140 |
|
|
#define cpu_1664_opera_bit_vacua 3
|
141 |
|
|
|
142 |
|
|
#define cpu_1664_desloca_reinisia 0x00
|
143 |
|
|
#define cpu_1664_desloca_eseta cpu_1664_desloca_reinisia //0x0a
|
144 |
|
|
|
145 |
|
|
//ldm,stm
|
146 |
|
|
#define cpu_1664_opera_ldm_bitio_orienta 7
|
147 |
|
|
#define cpu_1664_opera_ldm_bitio_ordina 6
|
148 |
|
|
#define cpu_1664_opera_ldm_bitio_ajusta 5
|
149 |
|
|
#define cpu_1664_opera_ldm_bitio_estende1 4
|
150 |
|
|
#define cpu_1664_opera_ldm_bitio_estende0 3
|
151 |
|
|
#define cpu_1664_opera_ldm_sinia 3
|
152 |
|
|
|
153 |
|
|
//"rev"
|
154 |
|
|
#define cpu_1664_opera_rev_reveni 0x00
|
155 |
|
|
#define cpu_1664_opera_rev_eseta 0x01
|
156 |
|
|
#define cpu_1664_opera_rev_ajusta_protejeda 0x03
|
157 |
|
|
#define cpu_1664_opera_rev_ajusta_permete 0x04
|
158 |
|
|
#define cpu_1664_opera_rev_depende_influe 0x05
|
159 |
|
|
#define cpu_1664_opera_rev_depende_inoria 0x06
|
160 |
|
|
#define cpu_1664_opera_rev_state_usor_reteni 0x07
|
161 |
|
|
#define cpu_1664_opera_rev_state_usor_restora 0x08
|
162 |
|
|
#define cpu_1664_opera_rev_entra 0x09
|
163 |
|
|
#define cpu_1664_opera_rev_departi 0x0a
|
164 |
|
|
#define cpu_1664_opera_rev_sicle_intercambia 0x10
|
165 |
|
|
#define cpu_1664_opera_rev_sicle_usor_intercambia 0x11
|
166 |
|
|
#define cpu_1664_opera_rev_sicle_usor_limite_intercambia 0x12
|
167 |
|
|
#define cpu_1664_opera_rev_bp 0xf0
|
168 |
|
|
#define cpu_1664_opera_rev_ajusta_reinisia 0xff
|
169 |
|
|
|
170 |
|
|
#define cpu_1664_umm_desloca (((-0xff)-1))
|
171 |
|
|
#define cpu_1664_umm_desloca_masca ((-cpu_1664_umm_desloca)-1)
|
172 |
|
|
#define cpu_1664_umm_desloca_usor_mapa 0x00
|
173 |
|
|
#define cpu_1664_umm_usor_mapa_cuantia (0x00)
|
174 |
|
|
#define cpu_1664_umm_usor_mapa_desloca_usor (0x01)
|
175 |
|
|
#define cpu_1664_umm_usor_mapa_desloca_real (0x02)
|
176 |
|
|
#define cpu_1664_umm_usor_mapa_permete_leje 0
|
177 |
|
|
#define cpu_1664_umm_usor_mapa_permete_scrive 1
|
178 |
|
|
#define cpu_1664_umm_usor_mapa_permete_esecuta 2
|
179 |
|
|
#define cpu_1664_umm_desloca_interompe_capasi 0x01
|
180 |
|
|
#define cpu_1664_umm_desloca_interompe_masca 0x02
|
181 |
|
|
#define cpu_1664_umm_desloca_interompe_ativa 0x03
|
182 |
|
|
#define cpu_1664_umm_contador_instrui 0xfe
|
183 |
|
|
|
184 |
|
|
#define cpu_1664_eseta_reinisia 0x00
|
185 |
|
|
#define cpu_1664_eseta_opera_nonlegal 0x01
|
186 |
|
|
#define cpu_1664_eseta_usor 0x02
|
187 |
|
|
//
|
188 |
|
|
#define cpu_1664_eseta_sicle_usor_limite 0x04
|
189 |
|
|
#define cpu_1664_eseta_div_zero 0x05
|
190 |
|
|
#define cpu_1664_eseta_bp_usor 0x06
|
191 |
|
|
#define cpu_1664_eseta_bp_vantaje 0x07
|
192 |
|
|
//
|
193 |
|
|
#define cpu_1664_eseta_umm_leje 0x09
|
194 |
|
|
#define cpu_1664_eseta_umm_scrive 0x09
|
195 |
|
|
#define cpu_1664_eseta_umm_esecuta 0x09
|
196 |
|
|
#define cpu_1664_eseta_umm_limite 0x09
|
197 |
|
|
#define cpu_1664_eseta_umm_interompe 0x0a
|
198 |
|
|
|
199 |
|
|
//
|
200 |
|
|
#define cpu_1664_dev_opera_parametre_funsiona struct lista * (*dev_opera_parametre_funsiona)(struct cpu_1664 *, n1)
|
201 |
|
|
#define cpu_1664_asm_opera_parametre_funsiona n1 (*asm_opera_parametre_funsiona)(struct cpu_1664 *, struct lista *)
|
202 |
|
|
#define cpu_1664_asm_asm_comanda_funsiona void (*asm_comanda_funsiona)(struct cpu_1664 *, n1 *)
|
203 |
|
|
|
204 |
|
|
#define cpu_1664_asm_sinia_fini 0x0a
|
205 |
|
|
#define cpu_1664_asm_sinia_opera ('~')
|
206 |
|
|
#define cpu_1664_asm_sinia_model_abri ('{')
|
207 |
|
|
#define cpu_1664_asm_sinia_model_opera ('%')
|
208 |
|
|
#define cpu_1664_asm_sinia_comenta (';')
|
209 |
|
|
#define cpu_1664_asm_sinia_comanda ('.')
|
210 |
|
|
#define cpu_1664_asm_sinia_eticeta (':')
|
211 |
|
|
#define cpu_1664_asm_sinia_eticeta_su ('@')
|
212 |
|
|
|
213 |
|
|
#define cpu_1664_asm_m_indise 1
|
214 |
|
|
#define cpu_1664_asm_m_indise_c ('0'|cpu_1664_asm_m_indise)
|
215 |
|
|
|
216 |
|
|
struct cpu_1664
|
217 |
|
|
{
|
218 |
|
|
void (*opera_lista[1<<cpu_1664_bitio_ao])(struct cpu_1664 *,n1);
|
219 |
|
|
|
220 |
|
|
cpu_1664_sinia_t *sinia;
|
221 |
|
|
cpu_1664_sinia_t sinia_vantaje[(1<<cpu_1664_bitio_r)+1];
|
222 |
|
|
cpu_1664_sinia_t sinia_usor[(1<<cpu_1664_bitio_r)+1];
|
223 |
|
|
|
224 |
|
|
n1 *opera_ajusta;
|
225 |
|
|
n1 opera_ajusta_vantaje[1<<cpu_1664_bitio_opera];
|
226 |
|
|
n1 opera_ajusta_usor[1<<cpu_1664_bitio_opera];
|
227 |
|
|
|
228 |
|
|
n1 *depende;
|
229 |
|
|
n1 depende_vantaje[32];
|
230 |
|
|
n1 depende_usor[32];
|
231 |
|
|
|
232 |
|
|
|
233 |
|
|
n1 vantaje;
|
234 |
|
|
n1 opera_ajusta_protejeda;
|
235 |
|
|
|
236 |
|
|
struct lista *lista_imaje;
|
237 |
|
|
|
238 |
|
|
// nN umm; //desloca unia mapa memoria
|
239 |
|
|
cpu_1664_sinia_t umm_memoria[(1<<8)];
|
240 |
|
|
|
241 |
|
|
cpu_1664_sinia_t opera_sicle;
|
242 |
|
|
cpu_1664_sinia_t contador_sicle;
|
243 |
|
|
cpu_1664_sinia_t contador_sicle_usor;
|
244 |
|
|
cpu_1664_sinia_t contador_sicle_usor_limite;
|
245 |
|
|
|
246 |
|
|
//asm
|
247 |
|
|
n1 asm_eror;
|
248 |
|
|
n1 opera_ajusta_asm[1<<cpu_1664_bitio_ao];
|
249 |
|
|
struct lista *lista_imaje_asm;
|
250 |
|
|
struct lista *lista_defina_sinia;
|
251 |
|
|
struct lista *lista_defina_valua;
|
252 |
|
|
struct lista *lista_opera_sinia; //a ordina
|
253 |
|
|
struct lista *lista_asm_opera_parametre_funsiona;
|
254 |
|
|
struct lista *lista_opera_parametre_sinia; // 8.i
|
255 |
|
|
struct lista *lista_asm_opera_parametre_referi; //->funsiona
|
256 |
|
|
struct lista *lista_asm_comanda_sinia;
|
257 |
|
|
struct lista *lista_asm_comanda_funsiona;
|
258 |
|
|
struct lista *lista_taxe;
|
259 |
|
|
struct lista *lista_taxe_d;
|
260 |
|
|
|
261 |
|
|
struct lista *lista_eticeta_cadena;
|
262 |
|
|
|
263 |
|
|
n1 avisa__no_definida;
|
264 |
|
|
|
265 |
|
|
struct lista *lista_model;
|
266 |
|
|
struct lista *lista_model_sinia;
|
267 |
|
|
|
268 |
|
|
struct lista *lista_inclui_curso;
|
269 |
|
|
|
270 |
|
|
//aida developa "dev"
|
271 |
|
|
struct lista *lista_dev_asm_desloca;
|
272 |
|
|
struct lista *lista_dev_asm_cadena;
|
273 |
|
|
struct lista *lista_dev_opera_cadena;
|
274 |
|
|
struct lista *lista_dev_opera_parametre_funsiona;
|
275 |
|
|
struct lista *lista_dev_opera_parametre_referi; //->funsiona
|
276 |
|
|
|
277 |
|
|
#ifdef imita
|
278 |
|
|
//aida imita
|
279 |
|
|
int imita_argc;
|
280 |
|
|
char **imita_argv;
|
281 |
|
|
#endif
|
282 |
|
|
};
|
283 |
|
|
|
284 |
|
|
struct cpu_1664_asm_taxe
|
285 |
|
|
{
|
286 |
|
|
cpu_1664_opera_t parola;
|
287 |
|
|
cpu_1664_asm_opera_parametre_funsiona;
|
288 |
|
|
cpu_1664_sinia_t desloca;
|
289 |
|
|
struct lista *lista;
|
290 |
|
|
};
|
291 |
|
|
|
292 |
|
|
struct cpu_1664_asm_taxe_d
|
293 |
|
|
{
|
294 |
|
|
cpu_1664_sinia_t desloca;
|
295 |
|
|
struct lista *lista;
|
296 |
|
|
nN cuantia;
|
297 |
|
|
};
|
298 |
|
|
|
299 |
|
|
struct cpu_1664 * cpu_1664_nova(nN); //memoria
|
300 |
|
|
cpu_1664_sinia_t cpu_1664_umm_tradui_desloca(struct cpu_1664 *, cpu_1664_sinia_t);
|
301 |
|
|
cpu_1664_sinia_t cpu_1664_umm(struct cpu_1664 *, cpu_1664_sinia_t, n1, n1, cpu_1664_sinia_t);
|
302 |
|
|
void cpu_1664_vantaje(struct cpu_1664 *, n1);
|
303 |
|
|
void cpu_1664_eseta(struct cpu_1664 *, cpu_1664_sinia_t);
|
304 |
|
|
void cpu_1664_libri(struct cpu_1664 *);
|
305 |
|
|
void cpu_1664__pasi(struct cpu_1664 *, n8);
|
306 |
|
|
void cpu_1664__desifri(struct cpu_1664 *, cpu_1664_opera_t); //sifri
|
307 |
|
|
void cpu_1664_reinisia(struct cpu_1664 *);
|
308 |
|
|
void cpu_1664_imaje_ajunta__lista(struct cpu_1664 *, struct lista *);
|
309 |
|
|
void cpu_1664_imaje_ajunta__datos(struct cpu_1664 *, n1 *, nN);
|
310 |
|
|
|
311 |
|
|
void cpu_1664_opera___(struct cpu_1664 *, n1);
|
312 |
|
|
|
313 |
|
|
void cpu_1664_opera__ajusta(struct cpu_1664 *, cpu_1664_opera_t);
|
314 |
|
|
|
315 |
|
|
void cpu_1664_opera__ldi(struct cpu_1664 *, n1);
|
316 |
|
|
void cpu_1664_opera__ldis(struct cpu_1664 *, n1);
|
317 |
|
|
void cpu_1664_opera__ldm(struct cpu_1664 *, n1);
|
318 |
|
|
void cpu_1664_opera__stm(struct cpu_1664 *, n1);
|
319 |
|
|
void cpu_1664_opera__ldr(struct cpu_1664 *, n1);
|
320 |
|
|
void cpu_1664_opera__str(struct cpu_1664 *, n1);
|
321 |
|
|
void cpu_1664_opera__ldb(struct cpu_1664 *, n1);
|
322 |
|
|
void cpu_1664_opera__stb(struct cpu_1664 *, n1);
|
323 |
|
|
void cpu_1664_opera__cam(struct cpu_1664 *, n1);
|
324 |
|
|
void cpu_1664_opera__dep(struct cpu_1664 *, n1);
|
325 |
|
|
void cpu_1664_opera__cmp(struct cpu_1664 *, n1);
|
326 |
|
|
void cpu_1664_opera__yli(struct cpu_1664 *, n1);
|
327 |
|
|
void cpu_1664_opera__ylr(struct cpu_1664 *, n1);
|
328 |
|
|
|
329 |
|
|
void cpu_1664_opera__rev(struct cpu_1664 *, n1);
|
330 |
|
|
|
331 |
|
|
void cpu_1664_opera__bit(struct cpu_1664 *, n1);
|
332 |
|
|
void cpu_1664_opera__and(struct cpu_1664 *, n1);
|
333 |
|
|
void cpu_1664_opera__or(struct cpu_1664 *, n1);
|
334 |
|
|
void cpu_1664_opera__plu(struct cpu_1664 *, n1);
|
335 |
|
|
void cpu_1664_opera__sut(struct cpu_1664 *, n1);
|
336 |
|
|
void cpu_1664_opera__sutr(struct cpu_1664 *, n1);
|
337 |
|
|
void cpu_1664_opera__shl(struct cpu_1664 *, n1);
|
338 |
|
|
void cpu_1664_opera__shr(struct cpu_1664 *, n1);
|
339 |
|
|
void cpu_1664_opera__sar(struct cpu_1664 *, n1);
|
340 |
|
|
void cpu_1664_opera__div(struct cpu_1664 *, n1);
|
341 |
|
|
void cpu_1664_opera__mul(struct cpu_1664 *, n1);
|
342 |
|
|
void cpu_1664_opera__eor(struct cpu_1664 *, n1);
|
343 |
|
|
|
344 |
|
|
#ifdef imita
|
345 |
|
|
void cpu_1664_opera__imita(struct cpu_1664 *, n1);
|
346 |
|
|
#define cpu_1664_imita_argc 0
|
347 |
|
|
#define cpu_1664_imita_argv 1
|
348 |
|
|
#define cpu_1664_imita_open 2
|
349 |
|
|
#define cpu_1664_imita_close 3
|
350 |
|
|
#define cpu_1664_imita_read 4
|
351 |
|
|
#define cpu_1664_imita_write 5
|
352 |
|
|
#define cpu_1664_imita_lseek 6
|
353 |
|
|
#define cpu_1664_imita_ftruncate 7
|
354 |
|
|
#define cpu_1664_imita_time 8
|
355 |
|
|
#define cpu_1664_imita_nanosleep 254
|
356 |
|
|
#define cpu_1664_imita_exit 255
|
357 |
|
|
#define cpu_1664_opera_imita (cpu_1664_opera_final+1)
|
358 |
|
|
#endif
|
359 |
|
|
//asm
|
360 |
|
|
|
361 |
|
|
struct lista * cpu_1664_asm_lista_parametre__cadena(n1 *);
|
362 |
|
|
|
363 |
|
|
struct cpu_1664 * cpu_1664_asm_nova();
|
364 |
|
|
void cpu_1664_asm_libri(struct cpu_1664 *);
|
365 |
|
|
void cpu_1664_asm_asm_opera__lista_2(struct cpu_1664 *, struct lista *);
|
366 |
|
|
void cpu_1664_asm_asm_opera__cadena(struct cpu_1664 *, n1 *);
|
367 |
|
|
n1 cpu_1664_asm_n1_opera_valua__lista(struct cpu_1664 *, struct lista *);
|
368 |
|
|
void cpu_1664_asm_defina_valua(struct cpu_1664 *, cpu_1664_asm_sinia_t, cpu_1664_sinia_t);
|
369 |
|
|
void cpu_1664_asm_taxe_d_ajunta(struct cpu_1664 *, struct lista *, nN);
|
370 |
|
|
|
371 |
|
|
void cpu_1664_asm_asm_model__lista(struct cpu_1664 *, struct lista *, struct lista *, nN);
|
372 |
|
|
|
373 |
|
|
void cpu_1664_asm_asm_comanda_ajunta(struct cpu_1664 *, char *, cpu_1664_asm_asm_comanda_funsiona);
|
374 |
|
|
void cpu_1664_asm_asm_comanda(struct cpu_1664 *, n1 *);
|
375 |
|
|
void cpu_1664_asm_asm_comanda__model(struct cpu_1664 *, n1 *);
|
376 |
|
|
void cpu_1664_asm_asm_comanda__m(struct cpu_1664 *, n1 *);
|
377 |
|
|
void cpu_1664_asm_asm_comanda__opera(struct cpu_1664 *, n1 *);
|
378 |
|
|
void cpu_1664_asm_asm_comanda__ajusta(struct cpu_1664 *, n1 *);
|
379 |
|
|
void cpu_1664_asm_asm_comanda__implicada(struct cpu_1664 *, n1 *);
|
380 |
|
|
void cpu_1664_asm_asm_comanda__defina(struct cpu_1664 *, n1 *);
|
381 |
|
|
void cpu_1664_asm_asm_comanda__nodefina(struct cpu_1664 *, n1 *);
|
382 |
|
|
void cpu_1664_asm_asm_comanda__inclui(struct cpu_1664 *, n1 *);
|
383 |
|
|
void cpu_1664_asm_asm_comanda__ds(struct cpu_1664 *, n1 *);
|
384 |
|
|
void cpu_1664_asm_asm_comanda__d4(struct cpu_1664 *, n1 *);
|
385 |
|
|
void cpu_1664_asm_asm_comanda__d2(struct cpu_1664 *, n1 *);
|
386 |
|
|
void cpu_1664_asm_asm_comanda__do(struct cpu_1664 *, n1 *);
|
387 |
|
|
void cpu_1664_asm_asm_comanda__d1(struct cpu_1664 *, n1 *);
|
388 |
|
|
|
389 |
|
|
void cpu_1664_asm_ajunta__ccadena(struct cpu_1664 *, char *);
|
390 |
|
|
void cpu_1664_asm_ajunta__cadena(struct cpu_1664 *, n1 *, nN cuantia);
|
391 |
|
|
nN cpu_1664_asm_depende__lista(struct cpu_1664 *, struct lista *);
|
392 |
|
|
cpu_1664_sinia_t cpu_1664_asm_n8_valua__lista(struct cpu_1664 *, struct lista *);
|
393 |
|
|
cpu_1664_sinia_t cpu_1664_asm_n8_valua__cadena(struct cpu_1664 *, n1 *, nN);
|
394 |
|
|
|
395 |
|
|
void cpu_1664_asm_opera_parametre_funsiona_ajunta(struct cpu_1664 *, char *, cpu_1664_asm_opera_parametre_funsiona, cpu_1664_dev_opera_parametre_funsiona);
|
396 |
|
|
|
397 |
|
|
n1 cpu_1664_asm_opera_parametre_funsiona__m(struct cpu_1664 *, struct lista *);
|
398 |
|
|
n1 cpu_1664_asm_opera_parametre_funsiona__8e(struct cpu_1664 *, struct lista *);
|
399 |
|
|
n1 cpu_1664_asm_opera_parametre_funsiona__8y(struct cpu_1664 *, struct lista *);
|
400 |
|
|
n1 cpu_1664_asm_opera_parametre_funsiona__8ylr(struct cpu_1664 *, struct lista *);
|
401 |
|
|
n1 cpu_1664_asm_opera_parametre_funsiona__2r6r(struct cpu_1664 *, struct lista *);
|
402 |
|
|
n1 cpu_1664_asm_opera_parametre_funsiona__6r2r(struct cpu_1664 *, struct lista *);
|
403 |
|
|
n1 cpu_1664_asm_opera_parametre_funsiona__3e3e2e(struct cpu_1664 *, struct lista *);
|
404 |
|
|
|
405 |
|
|
//dev
|
406 |
|
|
struct lista * cpu_1664_dev_dev(struct cpu_1664 *, cpu_1664_sinia_t, cpu_1664_opera_t);
|
407 |
|
|
void cpu_1664_dev_dev_libri(struct lista *);
|
408 |
|
|
|
409 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__m(struct cpu_1664 *, n1);
|
410 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__8e(struct cpu_1664 *, n1);
|
411 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__8y(struct cpu_1664 *, n1);
|
412 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__8ylr(struct cpu_1664 *, n1);
|
413 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__2r6r(struct cpu_1664 *, n1);
|
414 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__6r2r(struct cpu_1664 *, n1);
|
415 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__3e3e2e(struct cpu_1664 *, n1);
|
416 |
|
|
|
417 |
|
|
struct lista * cpu_1664_dev_opera_parametre_funsiona__nd(struct cpu_1664 *, n1);
|
418 |
|
|
|
419 |
|
|
#define cpu_1664_asm_table_sinia \
|
420 |
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\
|
421 |
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\
|
422 |
|
|
0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1,\
|
423 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1,\
|
462 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
463 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0,\
|
464 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
465 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
466 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
467 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
468 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
469 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
470 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
471 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
|
472 |
|
|
|
473 |
|
|
#define cpu_1664_asm_table_clui \
|
474 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
475 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
476 |
|
|
' ', ' ', '"', ' ', ' ', ' ', ' ', '\'', ')', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
477 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '>', ' ', ' ', ' ',\
|
478 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
479 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ']', ' ', ' ', ' ', ' ',\
|
480 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
481 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '}', ' ', ' ', ' ', ' ',\
|
482 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
483 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
484 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
485 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
486 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
487 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
488 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
489 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
|
490 |
|
|
|