More analysis suggested tidy ups.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-06 23:41:56 +00:00
parent d6d8c4e13c
commit 0e8a530573
9 changed files with 26 additions and 42 deletions

View File

@@ -9,16 +9,14 @@ namespace EightBit
public abstract class IntelProcessor : LittleEndianProcessor
{
private readonly IntelOpCodeDecoded[] decodedOpCodes = new IntelOpCodeDecoded[0x100];
private ushort sp;
private ushort memptr;
private PinLevel haltLine;
protected IntelProcessor(Bus bus)
: base(bus)
{
this.sp = (ushort)Mask.Mask16;
this.memptr = (ushort)Mask.Mask16;
this.SP = (ushort)Mask.Mask16;
this.MEMPTR = (ushort)Mask.Mask16;
for (int i = 0; i < 0x100; ++i)
{
@@ -34,9 +32,9 @@ namespace EightBit
public event EventHandler<EventArgs> LoweredHALT;
public ushort SP { get => this.sp; set => this.sp = value; }
public ushort SP { get; set; }
public ushort MEMPTR { get => this.memptr; set => this.memptr = value; }
public ushort MEMPTR { get; set; }
public abstract ushort AF { get; set; }