mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-12-23 02:29:59 +00:00
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:
parent
c6a7003b8d
commit
219d65a57a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user