roza/lib/opcodes.h

21 lines
584 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_AND), G(OP_OR), G(OP_NOT), \
G(OP_BRF), G(OP_BRT), G(OP_BR), \
G(OP_STRCAT), G(OP_STRDUP)
RZ_ENUM_H(Opcode, OPCODES);
#endif