mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-20 21:16:29 +00:00
Correct a few more style/correctness issues.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user