From: Toni Wilen Date: Wed, 16 Jul 2025 08:22:19 +0000 (+0300) Subject: Don't apply debug address mask if it is zero X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=51530671a1f48442ebff97a89124d0e186ae350d;p=francis%2Fwinuae.git Don't apply debug address mask if it is zero --- diff --git a/debug.cpp b/debug.cpp index 4dddd596..a5b495cc 100644 --- a/debug.cpp +++ b/debug.cpp @@ -3616,7 +3616,9 @@ static int debug_mem_off (uaecptr *addrp) if (ba->mask || ba->startmask) { uae_u32 start = ba->startmask ? ba->startmask : ba->start; addr -= start; - addr &= ba->mask; + if (ba->mask) { + addr &= ba->mask; + } addr += start; } *addrp = addr;