From aebbee499f7a207164afd263ada26570591d4737 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Sun, 9 Nov 2003 16:45:08 +0000 Subject: [PATCH] Show callback descriptions in debugger Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1428 --- src/debug/debug.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index 2d45ee5a..a6280edc 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -1196,6 +1196,16 @@ char* AnalyzeInstruction(char* inst, bool saveSelector) strcpy(curSelectorName,prefix); }; }; + // If it is a callback add additional info + pos = strstr(inst,"callback"); + if (pos) { + pos += 9; + Bitu nr = GetHexValue(pos,pos); + const char* descr = CALLBACK_GetDescription(nr); + if (descr) { + strcat(inst," ("); strcat(inst,descr); strcat(inst,")"); + } + }; return result; };