25 lines
459 B
C
25 lines
459 B
C
#ifndef MK_EXEC_H
|
|
#define MK_EXEC_H
|
|
|
|
#include "commons.h"
|
|
#include "moka.h"
|
|
#include "prog.h"
|
|
|
|
struct exec
|
|
{
|
|
size_t pc;
|
|
};
|
|
|
|
void exec_init(struct exec* self);
|
|
void exec_free(struct exec* self);
|
|
|
|
void exec_prog(struct exec* self,
|
|
struct moka* moka,
|
|
struct prog* prog);
|
|
|
|
void exec_instr(struct exec* self,
|
|
struct moka* moka,
|
|
struct prog* prog,
|
|
struct instruction* instr);
|
|
#endif
|