diff --git a/src/emulator.rs b/src/emulator.rs index ebccee3..79cf223 100644 --- a/src/emulator.rs +++ b/src/emulator.rs @@ -234,7 +234,7 @@ where } ProcessorInstruction::Set(vx, vy) => { trace!("Set VX={vx:04x} VY={vy:04x}"); - self.registers[vx as usize] = vy; + self.registers[vx as usize] = self.registers[vy as usize]; } ProcessorInstruction::BinaryOr(vx, vy) => { trace!("BinaryOr VX={vx:04x} VY={vy:04x}");