.
This commit is contained in:
@@ -101,6 +101,15 @@ void VM::step()
|
||||
case Instruction::Xor:
|
||||
stack_.push(binary_operation(stack_.pop(), stack_.pop(), BinaryOperationType::BitwiseXor));
|
||||
break;
|
||||
case Instruction::Power:
|
||||
stack_.push(binary_operation(stack_.pop(), stack_.pop(), BinaryOperationType::Power));
|
||||
break;
|
||||
case Instruction::ShiftLeft:
|
||||
stack_.push(binary_operation(stack_.pop(), stack_.pop(), BinaryOperationType::ShiftLeft));
|
||||
break;
|
||||
case Instruction::ShiftRight:
|
||||
stack_.push(binary_operation(stack_.pop(), stack_.pop(), BinaryOperationType::ShiftRight));
|
||||
break;
|
||||
case Instruction::Return: {
|
||||
Value v = stack_.pop();
|
||||
stack_.pop_fp();
|
||||
|
||||
Reference in New Issue
Block a user