From: Toni Wilen Date: Wed, 21 Dec 2022 18:08:31 +0000 (+0200) Subject: Add SR to debugger register output X-Git-Tag: 41010~54 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=1f6caaceac9649233cea6fab9b0308b3c538afb9;p=francis%2Fwinuae.git Add SR to debugger register output --- diff --git a/newcpu.cpp b/newcpu.cpp index 2fb95064..5dd8a576 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -6659,10 +6659,10 @@ void m68k_dumpstate(uaecptr *nextpc, uaecptr prevpc) } if (j > 0) console_out_f (_T("\n")); - console_out_f (_T("T=%d%d S=%d M=%d X=%d N=%d Z=%d V=%d C=%d IMASK=%d STP=%d\n"), - regs.t1, regs.t0, regs.s, regs.m, - GET_XFLG (), GET_NFLG (), GET_ZFLG (), - GET_VFLG (), GET_CFLG (), + console_out_f (_T("SR=%04X T=%d%d S=%d M=%d X=%d N=%d Z=%d V=%d C=%d IM=%d STP=%d\n"), + regs.sr, regs.t1, regs.t0, regs.s, regs.m, + GET_XFLG(), GET_NFLG(), GET_ZFLG(), + GET_VFLG(), GET_CFLG(), regs.intmask, regs.stopped); #ifdef FPUEMU if (currprefs.fpu_model) { diff --git a/od-win32/debug_win32.cpp b/od-win32/debug_win32.cpp index a1d10f1a..a37fca07 100644 --- a/od-win32/debug_win32.cpp +++ b/od-win32/debug_win32.cpp @@ -2166,6 +2166,8 @@ void update_debug_info(void) UpdateListboxString(hwnd, 0, out, TRUE); _stprintf(out, _T("ISP: %08X"), regs.isp); UpdateListboxString(hwnd, 1, out, TRUE); + _stprintf(out, _T("SR: %04X"), regs.sr); + UpdateListboxString(hwnd, 2, out, TRUE); ShowMiscCPU(GetDlgItem(hDbgWnd, IDC_DBG_MISCCPU));