1
0
Fork 0

Show callback descriptions in debugger

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1428
This commit is contained in:
Ulf Wohlers 2003-11-09 16:45:08 +00:00
parent 94099cbbf1
commit aebbee499f

View file

@ -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;
};