Make Register16 a class, rather than struct. Tricky, but a bit faster than before.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-21 19:58:49 +00:00
parent b7fbb80018
commit 27e1c5c9f8
15 changed files with 502 additions and 472 deletions

View File

@@ -1,4 +1,4 @@
// <copyright file="Disassembly.cs" company="Adrian Conlon">
// <copyright file="Disassembler.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
@@ -56,7 +56,7 @@ namespace EightBit
output.Append(" ");
var next = this.bus.Peek((ushort)(current + 1));
var relative = (ushort)(this.processor.PC().Word + 2 + (sbyte)next);
var relative = (ushort)(this.processor.PC.Word + 2 + (sbyte)next);
var aaa = (cell & 0b11100000) >> 5;
var bbb = (cell & 0b00011100) >> 2;