2023-12-09 17:24:41 +00:00
|
|
|
#ifndef RZ_OPCODES_H
|
|
|
|
#define RZ_OPCODES_H
|
|
|
|
|
|
|
|
#include "commons.h"
|
|
|
|
|
|
|
|
#define OPCODES(G) \
|
2023-12-11 17:01:22 +00:00
|
|
|
G(OP_ASSERT), \
|
2023-12-15 18:30:20 +00:00
|
|
|
G(OP_PUSH), G(OP_POP), \
|
2023-12-15 20:32:17 +00:00
|
|
|
G(OP_EQ), G(OP_NE), \
|
2023-12-15 21:31:01 +00:00
|
|
|
G(OP_LT), G(OP_LE), G(OP_GT), G(OP_GE), \
|
|
|
|
G(OP_ADD), G(OP_SUB), G(OP_MUL), G(OP_DIV), \
|
2023-12-16 18:12:20 +00:00
|
|
|
G(OP_MODULO), G(OP_POW), G(OP_USUB), \
|
2023-12-17 18:10:17 +00:00
|
|
|
G(OP_NOT), \
|
2023-12-16 18:42:26 +00:00
|
|
|
G(OP_BRF), G(OP_BRT), G(OP_BR), \
|
2023-12-17 18:10:17 +00:00
|
|
|
G(OP_STRCAT), G(OP_STRDUP), \
|
2023-12-20 19:54:58 +00:00
|
|
|
G(OP_LOAD), G(OP_STORE), \
|
2023-12-23 20:17:12 +00:00
|
|
|
G(OP_CALL), G(OP_RET), G(OP_MKFUN), \
|
|
|
|
G(OP_ALLOC), G(OP_DEREF)
|
2023-12-16 18:12:20 +00:00
|
|
|
|
2023-12-09 17:24:41 +00:00
|
|
|
|
|
|
|
RZ_ENUM_H(Opcode, OPCODES);
|
|
|
|
|
|
|
|
#endif
|