From 6be68cef3945aec9b63811439d75dca44a338deb Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 10 Feb 2024 18:47:56 +0200 Subject: [PATCH] Add CIA IO ports to CIA debug output --- cia.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cia.cpp b/cia.cpp index 7d9df9b4..ba21ad1f 100644 --- a/cia.cpp +++ b/cia.cpp @@ -2217,11 +2217,13 @@ void dumpcia(void) console_out_f(_T("A: CRA %02x CRB %02x ICR %02x IM %02x TA %04x (%04x) TB %04x (%04x)\n"), a->t[0].cr, a->t[1].cr, a->icr1, a->imask, a->t[0].timer - a->t[0].passed, a->t[0].latch, a->t[1].timer - a->t[1].passed, a->t[1].latch); - console_out_f(_T("TOD %06x (%06x) ALARM %06x %c%c CYC=%016llX\n"), + console_out_f(_T(" PRA %02x PRB %02x DDRA %02x DDRB %02x\n"), a->pra, a->prb, a->dra, a->drb); + console_out_f(_T(" TOD %06x (%06x) ALARM %06x %c%c CYC=%016llX\n"), a->tod, a->tol, a->alarm, a->tlatch ? 'L' : '-', a->todon ? '-' : 'S', get_cycles()); console_out_f(_T("B: CRA %02x CRB %02x ICR %02x IM %02x TA %04x (%04x) TB %04x (%04x)\n"), b->t[0].cr, b->t[1].cr, b->icr1, b->imask, b->t[0].timer - b->t[0].passed, b->t[0].latch, b->t[1].timer - b->t[1].passed, b->t[1].latch); - console_out_f(_T("TOD %06x (%06x) ALARM %06x %c%c\n"), + console_out_f(_T(" PRA %02x PRB %02x DDRA %02x DDRB %02x\n"), b->pra, b->prb, b->dra, b->drb); + console_out_f(_T(" TOD %06x (%06x) ALARM %06x %c%c\n"), b->tod, b->tol, b->alarm, b->tlatch ? 'L' : '-', b->todon ? '-' : 'S'); } -- 2.47.3