]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Copper disassambler now shows address of register if move to unused register.
authorToni Wilen <twilen@winuae.net>
Thu, 3 Jul 2025 16:38:35 +0000 (19:38 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 3 Jul 2025 16:38:35 +0000 (19:38 +0300)
debug.cpp

index 39dbfda07841a2b2d1184819088e890679d2ccbf..1d910be2e507fdbf3ea510a6c3bc33f372ca2c17 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -3087,10 +3087,11 @@ static uaecptr decode_copper_insn(FILE *file, uae_u16 mword1, uae_u16 mword2, ua
                                        break;
                                i++;
                        }
-                       if (custd[i].name)
+                       if (custd[i].name && custd[i].name[0] && _tcscmp(custd[i].name, _T("-"))) {
                                console_out_f(_T("%s := 0x%04x\n"), custd[i].name, insn & 0xffff);
-                       else
+                       } else {
                                console_out_f(_T("%04x := 0x%04x\n"), addr, insn & 0xffff);
+                       }
                }
                break;