23 lines
397 B
C
23 lines
397 B
C
#ifndef CCM_EXEC_H
|
|
#define CCM_EXEC_H
|
|
|
|
#include "commons.h"
|
|
#include "module.h"
|
|
#include "err.h"
|
|
|
|
typedef struct {
|
|
err_t err;
|
|
size_t pc;
|
|
} exec_t;
|
|
|
|
void exec_init(exec_t* self);
|
|
void exec_free(exec_t* self);
|
|
|
|
void exec_module(exec_t* self, module_t* module);
|
|
void exec_instr(exec_t* self,
|
|
module_t* module,
|
|
Opcode op,
|
|
int param);
|
|
|
|
#endif
|