mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-05 11:25:05 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user