2009-04-14 20:12:01 -04:00
|
|
|
#ifndef __OPCODES_H_
|
|
|
|
#define __OPCODES_H_
|
|
|
|
|
|
|
|
enum {
|
|
|
|
OP_NOP=0, OP_DUP, OP_POP, OP_CALL, OP_TCALL, OP_JMP, OP_BRF, OP_BRT,
|
2009-04-15 23:05:38 -04:00
|
|
|
OP_JMPL, OP_BRFL, OP_BRTL, OP_RET, OP_TAPPLY, OP_FOR,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
|
|
|
OP_EQ, OP_EQV, OP_EQUAL, OP_ATOMP, OP_NOT, OP_NULLP, OP_BOOLEANP,
|
|
|
|
OP_SYMBOLP, OP_NUMBERP, OP_BOUNDP, OP_PAIRP, OP_BUILTINP, OP_VECTORP,
|
|
|
|
OP_FIXNUMP,
|
|
|
|
|
|
|
|
OP_CONS, OP_LIST, OP_CAR, OP_CDR, OP_SETCAR, OP_SETCDR,
|
|
|
|
OP_EVAL, OP_APPLY,
|
|
|
|
|
2009-04-15 19:54:43 -04:00
|
|
|
OP_ADD, OP_SUB, OP_MUL, OP_DIV, OP_NUMEQ, OP_LT, OP_COMPARE,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
2009-04-15 23:05:38 -04:00
|
|
|
OP_VECTOR, OP_AREF, OP_ASET,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
2009-04-15 23:05:38 -04:00
|
|
|
OP_LOADT, OP_LOADF, OP_LOADNIL, OP_LOAD0, OP_LOAD1, OP_LOADI8,
|
|
|
|
OP_LOADV, OP_LOADVL, OP_LOADG, OP_LOADA, OP_LOADC, OP_LOADGL,
|
|
|
|
OP_SETG, OP_SETA, OP_SETC, OP_SETGL,
|
2009-04-14 20:12:01 -04:00
|
|
|
|
|
|
|
OP_CLOSURE, OP_TRYCATCH, OP_ARGC, OP_VARGC
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|