aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-14 01:30:08 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit664fbc5f5c947aaa04bbbf132d9c935959e34a9c (patch)
treefb25c4d6b8ccc5c6c7d02ad1170947096ff684e9 /include
parentea97370f973374f863e4296c2bb872be8b5235a3 (diff)
Move program code generation and execution out of program (make it generic)
Diffstat (limited to 'include')
-rw-r--r--include/program.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/program.h b/include/program.h
index a0ed4ed..b98c0a6 100644
--- a/include/program.h
+++ b/include/program.h
@@ -3,7 +3,7 @@
#include "std/buffer.h"
#include "bytecode/bytecode.h"
-#include "../executor/x86_64/asm.h"
+#include "../executor/executor.h"
#define AMAL_PROGRAM_OK 0
#define AMAL_PROGRAM_INVALID_HEADER -1
@@ -38,13 +38,6 @@ typedef struct {
u16 num_strings;
u16 num_intermediates;
-
- u64 reg[AMAL_PROGRAM_NUM_REGISTERS];
- u64 *stack;
- usize stack_size;
- usize stack_index;
-
- Asm asm;
} amal_program;
CHECK_RESULT int amal_program_init(amal_program *self);