]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Debugger MMU mode instruction byte read missing masking
authorToni Wilen <twilen@winuae.net>
Mon, 1 Jan 2024 16:48:28 +0000 (18:48 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 1 Jan 2024 16:48:28 +0000 (18:48 +0200)
debug.cpp

index 39d1a6b3e3c17b5169a95a5356d3db49919ad4d5..7b7eb30fff8856850b976343a4678d71c099f4a5 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -365,6 +365,8 @@ uae_u32 get_byte_debug (uaecptr addr)
                                        v = mmu_get_iword(addr, sz_byte);
                                        if (!odd)
                                                v >>= 8;
+                                       else
+                                               v &= 0xff;
                                } else {
                                        v = mmu_get_user_byte (addr, regs.s != 0, false, sz_byte, false);
                                }