fixed Makefile and tests, wrapped interpreter and opcodes

This commit is contained in:
e.gavrin
2014-07-04 21:34:44 +04:00
parent 7759e4b99f
commit aace544c55
7 changed files with 170 additions and 112 deletions
+5 -3
View File
@@ -16,20 +16,22 @@
#ifndef INTERPRETER_H
#define INTERPRETER_H
#ifdef __HOST
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "opcodes.h"
#define FILE_NAME "application.bin"
#endif
#include "opcodes.h"
struct
{
int pos;
int *root_op_addr;
} __int_data;
void gen_bytecode ();
void run_int ();