From bad16e3d494dcc09c7e397de02ced50f97141eb0 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 9 Aug 2019 21:29:23 +0300 Subject: [PATCH] PACK and UNPK disassembler support. --- disasm.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/disasm.cpp b/disasm.cpp index 47e44e2e..63ba604b 100644 --- a/disasm.cpp +++ b/disasm.cpp @@ -1808,6 +1808,13 @@ void m68k_disasm_2 (TCHAR *buf, int bufsize, uaecptr pc, uaecptr *nextpc, int cn break; } } + } else if (lookup->mnemo == i_PACK || lookup->mnemo == i_UNPK) { + pc = ShowEA(NULL, pc, opcode, dp->sreg, dp->smode, dp->size, instrname, &seaddr2, safemode); + _tcscat(instrname, _T(",")); + pc = ShowEA(NULL, pc, opcode, dp->dreg, dp->dmode, dp->size, instrname, &deaddr2, safemode); + extra = get_word_debug(pc); + _stprintf(instrname + _tcslen(instrname), _T(",#$%04x"), extra); + pc += 2; } else if (lookup->mnemo == i_FDBcc) { pc = ShowEA(NULL, pc, opcode, dp->dreg, dp->dmode, dp->size, instrname, &seaddr2, safemode); pc += 2; -- 2.47.3