diff options
| author | Nakidai <plaza521@inbox.ru> | 2024-08-23 20:43:31 +0300 |
|---|---|---|
| committer | Nakidai <plaza521@inbox.ru> | 2024-08-23 20:43:31 +0300 |
| commit | 2b0e05cbc1e4d9beccd3a5867c8730880f6ecc10 (patch) | |
| tree | f0e5e31e6259e0b6ea940c1d4c394b976a4bac74 /include/instruction.h | |
| parent | 9e4058194742794f7742f19cb1a0bb3451ce22ea (diff) | |
| download | 3cl-2b0e05cbc1e4d9beccd3a5867c8730880f6ecc10.tar.gz 3cl-2b0e05cbc1e4d9beccd3a5867c8730880f6ecc10.zip | |
Start to rewriting code
Since there's some UB in the master I decided to rewrite code from scratch again. I hope that attempt will be better :D
Diffstat (limited to 'include/instruction.h')
| -rw-r--r-- | include/instruction.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/instruction.h b/include/instruction.h new file mode 100644 index 0000000..449c760 --- /dev/null +++ b/include/instruction.h @@ -0,0 +1,16 @@ +#ifndef __CCL_INSTRUCTION_H__ +#define __CCL_INSTRUCTION_H__ + +#include "3cl.h" + + +typedef struct CCLFrame *(*CCLInstruction)(struct CCL *ccl, struct CCLFrame *frame); + +struct CCLFrame *ccl_instruction_nop(struct CCL *ccl, struct CCLFrame *frame); +struct CCLFrame *ccl_instruction_pushzero(struct CCL *ccl, struct CCLFrame *frame); +struct CCLFrame *ccl_instruction_increment(struct CCL *ccl, struct CCLFrame *frame); +struct CCLFrame *ccl_instruction_decrement(struct CCL *ccl, struct CCLFrame *frame); + +struct CCLFrame *ccl_instruction(struct CCL *ccl, struct CCLFrame *frame); + +#endif /* __CCL_INSTRUCTION_H__ */ |