85 bool hasFilter =
false;
86 uint8_t requestedLine = 0;
87 if (!parseLineFilter(input, hasFilter, requestedLine)) {
88 output +=
"usage: irqs [line]\n";
93 output +=
"IRQ diagnostics require a debugger display.\n";
97 IrqManager* manager = Machine::instance().getIrqManager();
99 output +=
"IRQ diagnostics are unavailable on this platform.\n";
104 if (count > SnapshotCapacity) {
105 count = SnapshotCapacity;
108 output +=
"IRQ diagnostics are unavailable on this platform.\n";
112 bool rendered =
false;
113 for (
size_t i = 0; i < count; ++i) {
114 if (hasFilter && m_Snapshots[i].line != requestedLine) {
119 IrqDiagnosticRenderer::render(m_Snapshots[i], line);
120 screen->
writeCli(line, DebuggerIO::LightGrey, DebuggerIO::Black);
124 if (hasFilter && !rendered) {
125 output +=
"IRQ line ";
126 output.append(requestedLine);
127 output +=
" is not present in this snapshot.\n";