From ea93418289187afb91380425eb772f5926f84e4a Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Wed, 24 Apr 2019 16:17:19 +0100 Subject: [PATCH] Correct small bug in 16-bit register exchange. Signed-off-by: Adrian Conlon --- MC6809/MC6809.cs | 4 ++-- MC6809/MC6809.csproj | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MC6809/MC6809.cs b/MC6809/MC6809.cs index 60ca91a..25fd68a 100644 --- a/MC6809/MC6809.cs +++ b/MC6809/MC6809.cs @@ -1310,7 +1310,7 @@ { var register1 = this.ReferenceTransfer16(specifier1); var register2 = this.ReferenceTransfer16(specifier2); - (register1, register2) = (register2, register1); + (register1.Word, register2.Word) = (register2.Word, register1.Word); } } @@ -1547,7 +1547,7 @@ { var register1 = this.ReferenceTransfer16(specifier1); var register2 = this.ReferenceTransfer16(specifier2); - register2 = register1; + register2.Word = register1.Word; } } diff --git a/MC6809/MC6809.csproj b/MC6809/MC6809.csproj index 97b9469..d524022 100644 --- a/MC6809/MC6809.csproj +++ b/MC6809/MC6809.csproj @@ -22,6 +22,7 @@ prompt 4 latest + AllRules.ruleset pdbonly