roza/lib/opcodes.h

23 lines
679 B
C

#ifndef RZ_OPCODES_H
#define RZ_OPCODES_H
#include "commons.h"
#define OPCODES(G) \
G(OP_ASSERT), \
G(OP_PUSH), G(OP_POP), \
G(OP_EQ), G(OP_NE), \
G(OP_LT), G(OP_LE), G(OP_GT), G(OP_GE), \
G(OP_ADD), G(OP_SUB), G(OP_MUL), G(OP_DIV), \
G(OP_MODULO), G(OP_POW), G(OP_USUB), \
G(OP_NOT), \
G(OP_BRF), G(OP_BRT), G(OP_BR), \
G(OP_STRCAT), G(OP_STRDUP), \
G(OP_LOAD), G(OP_STORE), \
G(OP_CALL), G(OP_RET)
RZ_ENUM_H(Opcode, OPCODES);
#endif