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