added while and do-while loops
This commit is contained in:
@@ -62,6 +62,7 @@ static const InstrInfo instr_table[] = {
|
||||
[OPCODE_RETURN] = {"RETURN", 0, NULL},
|
||||
|
||||
[OPCODE_JUMPIFNOTANDPOP] = {"JUMPIFNOTANDPOP", 1, (OperandType[]) {OPTP_INT}},
|
||||
[OPCODE_JUMPIFANDPOP] = {"JUMPIFANDPOP", 1, (OperandType[]) {OPTP_INT}},
|
||||
[OPCODE_JUMP] = {"JUMP", 1, (OperandType[]) {OPTP_INT}},
|
||||
};
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ typedef enum {
|
||||
OPCODE_PUSHNNE,
|
||||
OPCODE_PUSHFUN,
|
||||
OPCODE_RETURN,
|
||||
OPCODE_JUMPIFANDPOP,
|
||||
OPCODE_JUMPIFNOTANDPOP,
|
||||
OPCODE_JUMP,
|
||||
} Opcode;
|
||||
|
||||
Reference in New Issue
Block a user