From a6f73e5b5f02874309f3f399ee8385b730e8cdc3 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 4 Apr 2026 12:40:25 +0300 Subject: [PATCH] Increase disassembler buffer sizes (should check size, maybe later..) --- disasm.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/disasm.cpp b/disasm.cpp index 9b0767cb..ffd9692b 100644 --- a/disasm.cpp +++ b/disasm.cpp @@ -10,6 +10,8 @@ #include "debugmem.h" #include "disasm.h" +#define DIASM_BUFFER_SIZE 2000 + int disasm_flags = DISASM_FLAG_LC_MNEMO | DISASM_FLAG_LC_REG | DISASM_FLAG_LC_SIZE | DISASM_FLAG_LC_HEX | DISASM_FLAG_CC | DISASM_FLAG_EA | DISASM_FLAG_VAL | DISASM_FLAG_WORDS | DISASM_FLAG_ABSSHORTLONG; int disasm_min_words = 5; @@ -1931,6 +1933,8 @@ static void add_disasm_word(uaecptr *pcp, uae_u16 **bufpcp, int *bufpcsizep, int uae_u32 m68k_disasm_2(TCHAR *buf, int bufsize, uaecptr pc, uae_u16 *bufpc, int bufpcsize, uaecptr *nextpc, int cnt, uae_u32 *seaddr, uae_u32 *deaddr, uaecptr lastpc, int safemode) { + TCHAR instrname[DIASM_BUFFER_SIZE]; + TCHAR segout[DIASM_BUFFER_SIZE], segname[DIASM_BUFFER_SIZE]; uae_u32 seaddr2; uae_u32 deaddr2; int actualea_src = 0; @@ -1939,8 +1943,7 @@ uae_u32 m68k_disasm_2(TCHAR *buf, int bufsize, uaecptr pc, uae_u16 *bufpc, int b if (!table68k) return 0; while (cnt-- > 0) { - TCHAR instrname[256], *ccpt; - TCHAR segout[256], segname[256]; + TCHAR *ccpt; int i; uae_u32 opcode; uae_u16 extra; -- 2.47.3