From ef148528b160c600290a536dc7ee7ef31f05b85a Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 9 Jun 2019 10:36:41 +0100 Subject: [PATCH] Correct a couple of (probably benign) mistakes in the MC6809 core Signed-off-by: Adrian Conlon --- MC6809/MC6809.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MC6809/MC6809.cs b/MC6809/MC6809.cs index 4dc7356..30949e0 100644 --- a/MC6809/MC6809.cs +++ b/MC6809/MC6809.cs @@ -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; }