From 8b67a827dd5e55e0c2e50a48f3dda61aea851bab Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 17 Mar 2019 21:07:56 +0000 Subject: [PATCH] Simplify the Intel 8080 disassembler a little. Signed-off-by: Adrian Conlon --- Intel8080/Disassembler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Intel8080/Disassembler.cs b/Intel8080/Disassembler.cs index 11d1d6c..202ae32 100644 --- a/Intel8080/Disassembler.cs +++ b/Intel8080/Disassembler.cs @@ -26,8 +26,8 @@ namespace EightBit public static string State(Intel8080 cpu) { - var pc = cpu.PC; - var sp = cpu.SP; + var pc = cpu.PC.Word; + var sp = cpu.SP.Word; var a = cpu.A; var f = cpu.F; @@ -42,7 +42,7 @@ namespace EightBit var l = cpu.L; return - $"PC={pc.Word:x4} SP={sp.Word:x4} " + $"PC={pc:x4} SP={sp:x4} " + $"A={a:x2} F={AsFlags(f)} " + $"B={b:x2} C={c:x2} " + $"D={d:x2} E={e:x2} "