]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Don't apply debug address mask if it is zero
authorToni Wilen <twilen@winuae.net>
Wed, 16 Jul 2025 08:22:19 +0000 (11:22 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 16 Jul 2025 08:22:19 +0000 (11:22 +0300)
debug.cpp

index 4dddd596617d416770b5931a7d6330a1ce8aa02d..a5b495ccf9ff7b1333eeb2475b965fd2e776000c 100644 (file)
--- 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;