Very simple call tree browser added to code window, bottom left.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@298 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-08-24 20:25:36 +00:00
parent 1b1f0ecae9
commit b9f5fd1f44
6 changed files with 140 additions and 39 deletions

View File

@ -491,9 +491,9 @@ namespace PPCDisasm
*oper++ = ',';
}
if (in & 2) /* AA ? */
sprintf(dp->operands,"0x%.8X",(unsigned long)d);
sprintf(dp->operands,"->0x%.8X",(unsigned long)d);
else
sprintf(oper,"0x%.8X",(unsigned long)(*dp->iaddr) + d);
sprintf(oper,"->0x%.8X",(unsigned long)(*dp->iaddr) + d);
dp->type = PPCINSTR_BRANCH;
dp->displacement = (ppc_word)d;
}
@ -507,9 +507,9 @@ namespace PPCDisasm
sprintf(dp->opcode,"b%s",b_ext[in&3]);
if (in & 2) /* AA ? */
sprintf(dp->operands,"0x%.8X",(unsigned long)d);
sprintf(dp->operands,"->0x%.8X",(unsigned long)d);
else
sprintf(dp->operands,"0x%.8X",(unsigned long)(*dp->iaddr) + d);
sprintf(dp->operands,"->0x%.8X",(unsigned long)(*dp->iaddr) + d);
dp->type = PPCINSTR_BRANCH;
dp->displacement = (ppc_word)d;
}