From b743e03fc6042e3e2d55cfa0387c092824de64c5 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sun, 24 Oct 2021 09:52:09 +0200 Subject: Add print/display/newline ops --- src/bytecode/ops.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/bytecode/ops.h') diff --git a/src/bytecode/ops.h b/src/bytecode/ops.h index b59d65a..348df84 100755 --- a/src/bytecode/ops.h +++ b/src/bytecode/ops.h @@ -2,20 +2,29 @@ #define BDL_OPS_H typedef enum Ops { + // Load/store ops. OP_CONSTANT, + // Arithmetic ops. OP_SUM, OP_SUB, OP_MUL, OP_DIV, OP_MOD, + // Logic ops. OP_NOT, OP_AND, OP_OR, + // Numerical comparison ops. OP_EQUAL, OP_LESS, OP_GREATER, OP_LESS_EQUAL, OP_GREATER_EQUAL, + // Display ops. + OP_DISPLAY, + OP_PRINT, + OP_NEWLINE, + // Return. OP_RETURN, } Ops; -- cgit v1.2.1