Correct a few more style/correctness issues.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-05-06 11:02:20 +01:00
parent 3d0e4250a0
commit 72932cf462
24 changed files with 131 additions and 46 deletions
-16
View File
@@ -65,26 +65,10 @@ namespace EightBit
public ref byte High => ref this.high;
public static Register16 operator ++(Register16 value) => Increment(value);
public static Register16 operator --(Register16 value) => Decrement(value);
public static bool operator ==(Register16 left, Register16 right) => left.Equals(right);
public static bool operator !=(Register16 left, Register16 right) => !(left == right);
public static Register16 Increment(Register16 value)
{
++value.Word;
return value;
}
public static Register16 Decrement(Register16 value)
{
--value.Word;
return value;
}
public override bool Equals(object obj)
{
var rhs = obj as Register16;