From 219d65a57a835cca37d8c46f8d53cd750a8c0053 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Fri, 15 Feb 2019 09:08:44 +0000 Subject: [PATCH] No need to use LowByte/HighByte methods in Register16 construction: that's what it's layout is for. Signed-off-by: Adrian Conlon --- EightBit/Register16.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EightBit/Register16.cs b/EightBit/Register16.cs index f2ca900..79b680b 100644 --- a/EightBit/Register16.cs +++ b/EightBit/Register16.cs @@ -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)