-
Notifications
You must be signed in to change notification settings - Fork 0
/
simulador.h
49 lines (40 loc) · 1.03 KB
/
simulador.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Header geral do simulador Assembly MIPS32*/
/* Autor Bruno, bcesar.g6@gmail.com*/
#ifndef __SIMULADOR_H
#define __SIMULADOR_H
/* Uma palavra de 32 bits | 4 bytes*/
typedef unsigned int* word;
#include <getopt.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "utils.h"
#include "parser.h"
#include "tradutor.h"
#include "memoria.h"
#include "processador.h"
#include "clock.h"
#include "registradores.h"
#include "ula.h"
#include "cache.h"
/* Sistemas de flags funiona com o sistema de parametros de execução */
extern int flag;
#define FLAG_DEBUG 1
#define FLAG_VERBOSE 2
#define FLAG_STEP_BY_STEP 4
#define FLAG_REGISTRADORES 8
#define set_flag(opt) flag = flag | opt
#define get_flag(opt) flag & opt
/* Valores padrões de execução */
extern char* saida;
extern char* t_saida;
extern char* log_nome;
extern char* t_log_nome;
extern char* nome_input;
/* Arquivos */
extern FILE *input_file;
extern FILE *output_file;
extern FILE *bin_file;
extern FILE *log_file;
extern FILE *log_t_file;
#endif /* __SIMULADOR_H */