mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-21 12:16:55 +00:00
Work my way through a bunch of the analysis suggestions.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Intel8080.Test
|
||||
this.ports = new InputOutput();
|
||||
this.CPU = new Intel8080(this, this.ports);
|
||||
this.disassembler = new Disassembler(this);
|
||||
this.mapping = new MemoryMapping(this.ram, 0x0000, (ushort)Mask.Mask16, AccessLevel.ReadWrite);
|
||||
this.mapping = new MemoryMapping(this.ram, 0x0000, (ushort)Mask.Sixteen, AccessLevel.ReadWrite);
|
||||
}
|
||||
|
||||
public Intel8080 CPU { get; }
|
||||
|
||||
@@ -30,11 +30,11 @@ namespace EightBit
|
||||
}
|
||||
}
|
||||
|
||||
public override Register16 BC { get; } = new Register16((int)Mask.Mask16);
|
||||
public override Register16 BC { get; } = new Register16((int)Mask.Sixteen);
|
||||
|
||||
public override Register16 DE { get; } = new Register16((int)Mask.Mask16);
|
||||
public override Register16 DE { get; } = new Register16((int)Mask.Sixteen);
|
||||
|
||||
public override Register16 HL { get; } = new Register16((int)Mask.Mask16);
|
||||
public override Register16 HL { get; } = new Register16((int)Mask.Sixteen);
|
||||
|
||||
public override int Execute()
|
||||
{
|
||||
@@ -616,7 +616,7 @@ namespace EightBit
|
||||
private byte Decrement(byte operand)
|
||||
{
|
||||
this.F = AdjustSZP(this.F, --operand);
|
||||
this.F = SetBit(this.F, StatusBits.AC, LowNibble(operand) != (byte)Mask.Mask4);
|
||||
this.F = SetBit(this.F, StatusBits.AC, LowNibble(operand) != (byte)Mask.Four);
|
||||
return operand;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user