From: Toni Wilen Date: Sun, 19 Jul 2020 17:23:28 +0000 (+0300) Subject: ShowEA_disp fix X-Git-Tag: 4900~339 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=adce30824617d4ac2f460632a7f0c61a4d07bde3;p=francis%2Fwinuae.git ShowEA_disp fix --- diff --git a/cputest.cpp b/cputest.cpp index 8d8aacfa..8db40d67 100644 --- a/cputest.cpp +++ b/cputest.cpp @@ -2711,7 +2711,7 @@ static int create_ea_random(uae_u16 *opcodep, uaecptr pc, int mode, int reg, str if (mode == Ad8r && reg == 7) { *flagsp |= EAFLAG_SP; } - *eap = ShowEA_disp(&pce, mode == Ad8r ? regs.regs[reg + 8] : pce, NULL, NULL); + *eap = ShowEA_disp(&pce, mode == Ad8r ? regs.regs[reg + 8] : pce, NULL, NULL, false); while (pc < pce) { v = rand16(); put_word_test(pc, v); diff --git a/include/disasm.h b/include/disasm.h index 0027b091..79808bb0 100644 --- a/include/disasm.h +++ b/include/disasm.h @@ -1,5 +1,5 @@ uaecptr ShowEA (void *f, uaecptr pc, uae_u16 opcode, int reg, amodes mode, wordsizes size, TCHAR *buf, uae_u32 *eaddr, int *actualea, int safemode); -uaecptr ShowEA_disp(uaecptr *pcp, uaecptr base, TCHAR *buffer, const TCHAR *name); +uaecptr ShowEA_disp(uaecptr *pcp, uaecptr base, TCHAR *buffer, const TCHAR *name, bool pcrel); uae_u32 m68k_disasm_2 (TCHAR *buf, int bufsize, uaecptr pc, uaecptr *nextpc, int cnt, uae_u32 *seaddr, uae_u32 *deaddr, uaecptr lastpc, int safemode); void sm68k_disasm (TCHAR *instrname, TCHAR *instrcode, uaecptr addr, uaecptr *nextpc, uaecptr lastpc); uae_u32 REGPARAM2 op_illg_1(uae_u32 opcode);