14 rivejä
357 B
C
14 rivejä
357 B
C
#ifndef TABLE_H
|
|
#define TABLE_H
|
|
|
|
|
|
// Enum of the instruction
|
|
enum instruction_t {ADD, MUL, SUB, DIV, INF, SUP, EQU, CPY, AFC, LOAD, STORE, LOADI, STOREI, STOREA, JMP, JMZ, PRI, GET, CALL, RET, STOP};
|
|
|
|
// Add a new instruction
|
|
void add_instruction(enum instruction_t inst, int param1, int param2, int param3);
|
|
|
|
// Execute the program
|
|
void execute();
|
|
|
|
#endif
|