mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-08-15 11:27:27 +00:00
Simplify the Intel 8080 disassembler a little.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -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} "
|
||||||
|
Reference in New Issue
Block a user