mirror of https://github.com/stella-emu/stella.git
improve breakpoint calculation, only consider low 13 bit for PC
This commit is contained in:
parent
4232d964a3
commit
9aecdf3873
|
@ -383,7 +383,7 @@ string Debugger::getCondition(uInt16 addr, Int8 bank)
|
|||
{
|
||||
stringstream condition;
|
||||
|
||||
condition << "(pc == " << Base::HEX4 << addr << ")";
|
||||
condition << "((pc&1fff) == " << Base::HEX4 << (addr & 0x1fff) << ")";
|
||||
if(bank != ANY_BANK && myCartDebug->bankCount() > 1)
|
||||
condition << " && (_bank == #" << int(bank) << ")";
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ class M6502 : public Serializable
|
|||
|
||||
@return The program counter register
|
||||
*/
|
||||
uInt16 getPC() const { return PC; }
|
||||
// uInt16 getPC() const { return PC; }
|
||||
|
||||
/**
|
||||
Check the type of the last peek().
|
||||
|
|
Loading…
Reference in New Issue