summaryrefslogtreecommitdiff
path: root/doc/develop/bootstd
diff options
context:
space:
mode:
authorYuri Zaporozhets <[email protected]>2024-11-30 21:56:25 +0100
committerTom Rini <[email protected]>2024-12-15 11:39:21 -0600
commit5fb5180a1616b714a289ae4c8ff447e5ee0bddb0 (patch)
treeb173264bbffcc1f9db661977bfc57f4c78dc4913 /doc/develop/bootstd
parent82a59b45d3fc720831eaacd5b76c796c00912832 (diff)
bios_emulator: fix incorrect printing of address in "call near immediate"
In the x86emuOp_call_near_IMM() function the address of CALL is printed incorrectly when jumping backwards. For example, the correct disassemble of the bytes below would be: 0000E8DE E8DBFF call 0xe8bc (verified by ndisasm). But instead the address is printed as "ffffe8bc". That's because of the following macro: DECODE_PRINTF2("%04x\n", ip); while it should be DECODE_PRINTF2("%04x\n", (u16)ip); Signed-off-by: Yuri Zaporozhets <[email protected]>
Diffstat (limited to 'doc/develop/bootstd')
0 files changed, 0 insertions, 0 deletions