mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-24 14:05:42 +00:00
Correct a couple of (probably benign) mistakes in the MC6809 core
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
1 parent
75f5d17e72
commit
ef148528b1
1 file changed
+2
-2
+2
-2
@@ -541,7 +541,7 @@
|
||||
{
|
||||
// EA = ,R + 5-bit offset
|
||||
this.Tick();
|
||||
address = new Register16(r.Word + SignExtend(5, (byte)(type & (byte)Mask.Mask5)));
|
||||
address.Word = new Register16(r.Word + SignExtend(5, (byte)(type & (byte)Mask.Mask5))).Word;
|
||||
}
|
||||
return address;
|
||||
}
|
||||
@@ -1314,7 +1314,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
var rightRegister = this.ReferenceTransfer8(rightSpecifier);
|
||||
ref var rightRegister = ref this.ReferenceTransfer8(rightSpecifier);
|
||||
(leftRegister.Low, rightRegister) = (rightRegister, leftRegister.Low);
|
||||
leftRegister.High = (byte)Mask.Mask8;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user