fix set instruction

This commit is contained in:
Denis-Cosmin NUTIU 2024-12-07 21:58:26 +02:00
parent 8d13bd6b18
commit 63d7fb1464

View file

@ -234,7 +234,7 @@ where
} }
ProcessorInstruction::Set(vx, vy) => { ProcessorInstruction::Set(vx, vy) => {
trace!("Set VX={vx:04x} VY={vy:04x}"); 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) => { ProcessorInstruction::BinaryOr(vx, vy) => {
trace!("BinaryOr VX={vx:04x} VY={vy:04x}"); trace!("BinaryOr VX={vx:04x} VY={vy:04x}");