Fix day 17 division instruction (it's just a shift)
This commit is contained in:
parent
6d3973bd1e
commit
5201dcf0bc
@ -45,7 +45,7 @@ ChronospatialComputerDivisionInstruction::ChronospatialComputerDivisionInstructi
|
||||
|
||||
void ChronospatialComputerDivisionInstruction::runValue(ChronospatialComputerState& state, const int operandValue) const
|
||||
{
|
||||
state.registers[destination_] = state.registers[0] / Math::ipow(2, operandValue);
|
||||
state.registers[destination_] = state.registers[0] >> operandValue;
|
||||
state.instructionPointer += 2;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user