From 664fbc5f5c947aaa04bbbf132d9c935959e34a9c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 14 Aug 2019 01:30:08 +0200 Subject: Move program code generation and execution out of program (make it generic) --- include/program.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'include') 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); -- cgit v1.2.3