From: Toni Wilen Date: Sun, 7 Aug 2022 17:42:16 +0000 (+0300) Subject: Fix console DMA debugger output X-Git-Tag: 41000~172 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=6a1cfd30b1a6859e0a0c2ebffe4546e5ad4fad6b;p=francis%2Fwinuae.git Fix console DMA debugger output --- diff --git a/debug.cpp b/debug.cpp index 91e2ec21..6747423f 100644 --- a/debug.cpp +++ b/debug.cpp @@ -2392,9 +2392,13 @@ static void decode_dma_record (int hpos, int vpos, int toggle, bool logfile) maxh++; dr++; } - dr = dr_start; + dr = dr_start + hpos; if (!logfile && maxh - h > 80) { + int maxh2 = maxh; maxh = h + 80; + if (maxh > maxh2) { + maxh = maxh2; + } } while (h < maxh) { int cols = (logfile ? 16 : 8);