From 0e8813cdf31325a0872130f270a59d350af4ea80 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sat, 7 Sep 2019 23:57:17 +0100 Subject: [PATCH] Show more state information for debugging output. Signed-off-by: Adrian Conlon --- Z80/src/Disassembler.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Z80/src/Disassembler.cpp b/Z80/src/Disassembler.cpp index 25ca12e..e5ceef9 100644 --- a/Z80/src/Disassembler.cpp +++ b/Z80/src/Disassembler.cpp @@ -47,7 +47,12 @@ std::string EightBit::Disassembler::state(Z80& cpu) { << " " << "D=" << hex(d) << " " << "E=" << hex(e) << " " << "H=" << hex(h) << " " << "L=" << hex(l) << " " << "I=" << hex(i) << " " << "R=" << hex(r) - << " " << "IM=" << im; + << " " << "IM=" << im + << " " << "IFF1=" << cpu.IFF1() + << " " << (Device::lowered(cpu.RESET()) ? "R" : "-") + << (Device::lowered(cpu.INT()) ? "I" : "-") + << (Device::lowered(cpu.HALT()) ? "H" : "-") + << (Device::lowered(cpu.NMI()) ? "N" : "-"); return output.str(); }