14 lines
346 B
C
14 lines
346 B
C
#ifndef TABLE_H
|
|
#define TABLE_H
|
|
|
|
|
|
// Enum of the instruction
|
|
enum instruction_t {ADD, MUL, SUB, DIV, INF, SUP, EQU, CPY, AFC, AFCA, READ, WRITE, JMP, JMF, PRI, PRIC, 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
|