Fix assembly of second operand

This commit is contained in:
Ian Gulliver
2021-11-18 19:33:09 -10:00
parent e99387beb4
commit eff0017fec

View File

@@ -89,7 +89,7 @@ func assembleInstruction(in instruction) (*vm.Instruction, error) {
} }
if len(operands) >= 2 { if len(operands) >= 2 {
op2, err := assembleOperand(operands[0]) op2, err := assembleOperand(operands[1])
if err != nil { if err != nil {
return nil, errors.Wrapf(err, "In second operand") return nil, errors.Wrapf(err, "In second operand")
} }