mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-11 05:29:55 +00:00
Applied Michael's debugger patches.
This commit is contained in:
parent
7a1110a6f7
commit
ddfddab911
@ -4857,7 +4857,7 @@ Update_t _SearchMemoryDisplay (int nArgs)
|
||||
nLen = 0;
|
||||
|
||||
StringCat( sResult, CHC_NUM_DEC, nBuf ); // 2.6.2.17 Search Results: The n'th result now using correct color (was command, now number decimal)
|
||||
sprintf( sText, "%2d", iFound );
|
||||
sprintf( sText, "%02X", iFound ); // BUGFIX: 2.6.2.32 n'th Search results were being displayed in dec, yet parser takes hex numbers. i.e. SH D000:FFFF
|
||||
nLen += StringCat( sResult, sText , nBuf );
|
||||
|
||||
StringCat( sResult, CHC_DEFAULT, nBuf ); // intentional default instead of CHC_ARG_SEP for better readability
|
||||
|
@ -496,7 +496,7 @@ int _6502_GetOpmodeOpbyte ( const int nBaseAddress, int & iOpmode_, int & nOpby
|
||||
case NOP_WORD_1: nOpbyte_ = 2; iOpmode_ = AM_M; break;
|
||||
case NOP_WORD_2: nOpbyte_ = 4; iOpmode_ = AM_M; break;
|
||||
case NOP_WORD_4: nOpbyte_ = 8; iOpmode_ = AM_M; break;
|
||||
case NOP_ADDRESS:nOpbyte_ = 2; iOpmode_ = AM_NA;
|
||||
case NOP_ADDRESS:nOpbyte_ = 2; iOpmode_ = AM_A; // BUGFIX: 2.6.2.33 Define Address should be show as Absolute
|
||||
pData->nTargetAddress = *(LPWORD)(mem+nBaseAddress);
|
||||
break;
|
||||
case NOP_STRING_APPLESOFT:
|
||||
|
@ -1352,7 +1352,17 @@ int GetDisassemblyLine ( WORD nBaseAddress, DisasmLine_t & line_ )
|
||||
}
|
||||
}
|
||||
|
||||
if (! (bDisasmFormatFlags & DISASM_FORMAT_SYMBOL))
|
||||
// Old Offset search: (Search +1 First) nTarget-1, (Search -1 Second) nTarget+1
|
||||
// Problem: U D038 shows as A.TRACE+1
|
||||
// New Offset search: (Search -1 First) nTarget+1, (Search +1 Second) nTarget+1
|
||||
// Problem: U D834, D87E shows as P.MUL-1, instead of P.ADD+1
|
||||
// 2.6.2.31 Fixed: address table was bailing on first possible match. U D000 -> da STOP+1, instead of END-1
|
||||
// 2.7.0.0: Try to match nTarget-1, nTarget+1, AND if we have both matches
|
||||
// Then we need to decide which one to show. If we have pData then pick this one.
|
||||
// TODO: Do we need to let the user decide which one they want searched first?
|
||||
// nFirstTarget = g_bDebugConfig_DisasmMatchSymbolOffsetMinus1First ? nTarget-1 : nTarget+1;
|
||||
// nSecondTarget = g_bDebugConfig_DisasmMatchSymbolOffsetMinus1First ? nTarget+1 : nTarget-1;
|
||||
if (! (bDisasmFormatFlags & DISASM_FORMAT_SYMBOL) || pData)
|
||||
{
|
||||
pSymbol = FindSymbolFromAddress( nTarget + 1 );
|
||||
if (pSymbol)
|
||||
|
Loading…
x
Reference in New Issue
Block a user