From: Toni Wilen Date: Fri, 9 Aug 2019 18:29:23 +0000 (+0300) Subject: PACK and UNPK disassembler support. X-Git-Tag: 4300~160 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=bad16e3d494dcc09c7e397de02ced50f97141eb0;p=francis%2Fwinuae.git PACK and UNPK disassembler support. --- 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;