mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
Debugger: Fix bound on maximum bytes to move backward. (PR #937)
The higher g_nDisasmCurLine the more we will have to travel back to find the instruction at the top of the window.
This commit is contained in:
parent
6fefce553a
commit
c6c427aa3d
@ -627,7 +627,7 @@ void FormatDisassemblyLine(const DisasmLine_t& line, char* sDisassembly, const i
|
||||
//===========================================================================
|
||||
void DisasmCalcTopFromCurAddress(bool bUpdateTop)
|
||||
{
|
||||
int nLen = ((g_nDisasmWinHeight - g_nDisasmCurLine) * 3); // max 3 opcodes/instruction, is our search window
|
||||
int nLen = g_nDisasmCurLine * 3; // max 3 opcodes/instruction, is our search window
|
||||
|
||||
// Look for a start address that when disassembled,
|
||||
// will have the cursor on the specified line and address
|
||||
|
Loading…
Reference in New Issue
Block a user