Correct small bug in 16-bit register exchange.

Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2019-04-24 16:17:19 +01:00
parent bc06975796
commit ea93418289
2 changed files with 3 additions and 2 deletions

View File

@ -1310,7 +1310,7 @@
{ {
var register1 = this.ReferenceTransfer16(specifier1); var register1 = this.ReferenceTransfer16(specifier1);
var register2 = this.ReferenceTransfer16(specifier2); 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 register1 = this.ReferenceTransfer16(specifier1);
var register2 = this.ReferenceTransfer16(specifier2); var register2 = this.ReferenceTransfer16(specifier2);
register2 = register1; register2.Word = register1.Word;
} }
} }

View File

@ -22,6 +22,7 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>