mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-01-08 16:31:38 +00:00
Couple of hacked Z80 disassembler changes
This commit is contained in:
parent
1a9b6d3db6
commit
0039b06465
@ -222,6 +222,14 @@ namespace EightBit
|
||||
case 1:
|
||||
switch (z)
|
||||
{
|
||||
case 0:
|
||||
specification = $"IN {this.R(y)}, (C)";
|
||||
break;
|
||||
|
||||
case 1:
|
||||
specification = $"OUT (C), {this.R(y)}";
|
||||
break;
|
||||
|
||||
case 2:
|
||||
switch (q)
|
||||
{
|
||||
|
@ -33,12 +33,14 @@ namespace Fuse
|
||||
private readonly EightBit.Ram ram = new EightBit.Ram(0x10000);
|
||||
private readonly EightBit.InputOutput ports = new EightBit.InputOutput();
|
||||
private readonly EightBit.Z80 cpu;
|
||||
private readonly EightBit.Disassembler disassembler;
|
||||
|
||||
private int totalCycles = 0;
|
||||
|
||||
public TestRunner(Test<RegisterState> test, Result<RegisterState> result)
|
||||
{
|
||||
this.cpu = new EightBit.Z80(this, this.ports);
|
||||
this.disassembler = new EightBit.Disassembler(this);
|
||||
this.test = test ?? throw new ArgumentNullException(nameof(test));
|
||||
this.result = result ?? throw new ArgumentNullException(nameof(result));
|
||||
|
||||
@ -388,6 +390,10 @@ namespace Fuse
|
||||
var output = $"**** IM, Expected: {expectedState.IM}, Got: {this.cpu.IM}";
|
||||
System.Console.Error.WriteLine(output);
|
||||
}
|
||||
|
||||
this.cpu.PC.Word = this.test.RegisterState.Registers[(int)Register.PC].Word;
|
||||
var disassembled = this.disassembler.Disassemble(this.cpu);
|
||||
System.Console.Error.WriteLine(disassembled);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user