No need to use LowByte/HighByte methods in Register16 construction: that's what it's layout is for.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2019-02-15 09:08:44 +00:00
parent c6a7003b8d
commit 219d65a57a

View File

@ -27,8 +27,9 @@ namespace EightBit
}
public Register16(ushort value)
: this(Chip.LowByte(value), Chip.HighByte(value))
{
this.Low = this.High = 0;
this.Word = value;
}
public Register16(int value)