tinyvm/tvm.h
Joseph Kogut 59f356993b * Nothing left can be taken away.
* Added print instruction (PRN)
2011-08-06 16:06:51 -07:00

21 lines
303 B
C

#ifndef TVM_H_
#define TVM_H_
#include <stddef.h>
#include "tvm_memory.h"
#include "tvm_program.h"
#include "tvm_stack.h"
typedef struct tvm_s
{
tvm_program_t* pProgram;
tvm_memory_t* pMemory;
} tvm_t;
tvm_t* create_vm(char* filename);
void destroy_vm(tvm_t* vm);
void run_vm(tvm_t* vm);
#endif