Simplify the Intel 8080 disassembler a little.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-03-17 21:07:56 +00:00
parent 4a0d466171
commit 8b67a827dd

View File

@@ -26,8 +26,8 @@ namespace EightBit
public static string State(Intel8080 cpu) public static string State(Intel8080 cpu)
{ {
var pc = cpu.PC; var pc = cpu.PC.Word;
var sp = cpu.SP; var sp = cpu.SP.Word;
var a = cpu.A; var a = cpu.A;
var f = cpu.F; var f = cpu.F;
@@ -42,7 +42,7 @@ namespace EightBit
var l = cpu.L; var l = cpu.L;
return return
$"PC={pc.Word:x4} SP={sp.Word:x4} " $"PC={pc:x4} SP={sp:x4} "
+ $"A={a:x2} F={AsFlags(f)} " + $"A={a:x2} F={AsFlags(f)} "
+ $"B={b:x2} C={c:x2} " + $"B={b:x2} C={c:x2} "
+ $"D={d:x2} E={e:x2} " + $"D={d:x2} E={e:x2} "