mirror of https://github.com/bochs-emu/Bochs
new disasm: print branch target in 32-bit mode as 32-bit value
This commit is contained in:
parent
e15012cfcf
commit
b7855153a0
|
@ -621,7 +621,10 @@ char *disasm_branch_target(char *disbufptr, const bxInstruction_c *i, unsigned s
|
|||
disbufptr = dis_sprintf(disbufptr, SYMBOLIC_JUMP(".%+d"), (unsigned) imm32, sym);
|
||||
|
||||
if (cs_base != BX_JUMP_TARGET_NOT_REQ) {
|
||||
disbufptr = dis_sprintf(disbufptr, " (0x" FMT_ADDRX ")", target);
|
||||
if (GET32H(target))
|
||||
disbufptr = dis_sprintf(disbufptr, " (0x" FMT_ADDRX ")", target);
|
||||
else
|
||||
disbufptr = dis_sprintf(disbufptr, " (0x%08x)", target);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue