summaryrefslogtreecommitdiff
path: root/Emulator/Chip
diff options
context:
space:
mode:
Diffstat (limited to 'Emulator/Chip')
-rw-r--r--Emulator/Chip/Q1CpuInstructions.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emulator/Chip/Q1CpuInstructions.cs b/Emulator/Chip/Q1CpuInstructions.cs
index 72d78e5..0041b25 100644
--- a/Emulator/Chip/Q1CpuInstructions.cs
+++ b/Emulator/Chip/Q1CpuInstructions.cs
@@ -125,14 +125,14 @@ public partial class Q1Cpu
private void Instruction_SHL(u8 m1, u8 m2)
{
u16 v1 = this.Address(m1).read();
- u16 v2 = this.Address(m1).read();
+ u16 v2 = this.Address(m2).read();
u16 shifted = (u16) (v1 << v2);
this.DX = shifted;
}
private void Instruction_SHR(u8 m1, u8 m2)
{
u16 v1 = this.Address(m1).read();
- u16 v2 = this.Address(m1).read();
+ u16 v2 = this.Address(m2).read();
u16 shifted = (u16) (v1 >> v2);
this.DX = shifted;
}