Fix first line of disassembly
This commit is contained in:
parent
52838e4a6d
commit
b134903878
|
@ -637,8 +637,8 @@ static VBU_DasmLine* dasmDisassemble(VB *sim, uint32_t address,
|
|||
}
|
||||
|
||||
/* Begin decoding from at least 10 lines before first/reference */
|
||||
addr = (address & 0xFFFFFFFE) +
|
||||
(int32_t) ((line < 0 ? -line : 0) - 10) * 4;
|
||||
addr = (address & 0xFFFFFFFE) -
|
||||
(int32_t) (line <= 0 ? 10 : line + 10) * 4;
|
||||
|
||||
/* Locate the address of the line containing the reference address */
|
||||
pc = vbGetProgramCounter(sim);
|
||||
|
|
Loading…
Reference in New Issue