#ifndef UNDAR_VM_H #define UNDAR_VM_H #include "libc.h" typedef enum { NOOP } Opcode; typedef struct vm_s VM; #define CODE_SIZE 4096 #define MEM_SIZE 65536 struct vm_s { u32 pc; u32 code[CODE_SIZE]; u8 mem[MEM_SIZE]; }; extern bool init_vm(VM *vm); bool step_vm(VM *vm); #endif