This commit is contained in:
Andre Wagner
2026-05-01 16:52:32 -05:00
parent 0bc40cc562
commit 8f6d858a28
9 changed files with 93 additions and 64 deletions

View File

@@ -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();