Show callback descriptions in debugger
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1428
This commit is contained in:
parent
94099cbbf1
commit
aebbee499f
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue