51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
#ifndef EAXHLA_H
|
|
|
|
#include <tommyds/tommyds/tommyhashtbl.h>
|
|
|
|
#define WORD_SIZE_IN_BYTES (64/8)
|
|
|
|
typedef struct {
|
|
union {
|
|
long value;
|
|
void * array_value;
|
|
};
|
|
int elements;
|
|
char * name;
|
|
unsigned _hash;
|
|
tommy_node _node;
|
|
} variable_t;
|
|
|
|
#define REGISTER64_MASK 0x00;
|
|
#define REGISTER32_MASK 0x01;
|
|
|
|
typedef struct {
|
|
int number : 6;
|
|
int size : 2;
|
|
} cpuregister_t;
|
|
|
|
extern int system_type;
|
|
|
|
extern int is_program_found;
|
|
extern int has_encountered_error;
|
|
|
|
extern char * scope;
|
|
|
|
extern int eaxhla_init(void);
|
|
extern int eaxhla_destroy(void);
|
|
|
|
extern char * make_scoped_name(const char * const scope, char * name);
|
|
extern int can_fit(int type, long long value);
|
|
|
|
extern void add_variable(variable_t variable);
|
|
extern variable_t * get_variable(const char * const name);
|
|
|
|
extern void append_instruction_t1 (int t1);
|
|
extern void append_instruction_t4 (int t4, int w, int d, int r);
|
|
extern void append_instruction_t6 (int t6, int w, int d, int r, int s, int i);
|
|
|
|
extern void issue_warning(const char * format, ...);
|
|
extern void issue_error(const char * format, ...);
|
|
|
|
#define EAXHLA_H
|
|
#endif
|