improve breakpoint calculation, only consider low 13 bit for PC

This commit is contained in:
Thomas Jentzsch 2019-08-20 15:33:41 +02:00
parent 4232d964a3
commit 9aecdf3873
2 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ string Debugger::getCondition(uInt16 addr, Int8 bank)
{ {
stringstream condition; stringstream condition;
condition << "(pc == " << Base::HEX4 << addr << ")"; condition << "((pc&1fff) == " << Base::HEX4 << (addr & 0x1fff) << ")";
if(bank != ANY_BANK && myCartDebug->bankCount() > 1) if(bank != ANY_BANK && myCartDebug->bankCount() > 1)
condition << " && (_bank == #" << int(bank) << ")"; condition << " && (_bank == #" << int(bank) << ")";

View File

@ -139,7 +139,7 @@ class M6502 : public Serializable
@return The program counter register @return The program counter register
*/ */
uInt16 getPC() const { return PC; } // uInt16 getPC() const { return PC; }
/** /**
Check the type of the last peek(). Check the type of the last peek().