mirror of https://github.com/stella-emu/stella.git
fix last commit
This commit is contained in:
parent
cae2266df0
commit
2de1e70941
|
@ -385,7 +385,7 @@ int CartDebug::addressToLine(uInt16 address) const
|
|||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
string CartDebug::disassemble(uInt16 start, uInt16 lines) const
|
||||
string CartDebug::disassembleLines(uInt16 start, uInt16 lines) const
|
||||
{
|
||||
// Fill the string with disassembled data
|
||||
start &= 0xFFF;
|
||||
|
@ -1096,8 +1096,6 @@ string CartDebug::saveDisassembly()
|
|||
|
||||
BankInfo& info = myBankInfo[bank];
|
||||
|
||||
// TODO: make PageAccess ready for multi-bank ROMs
|
||||
// TODO: define offset if still undefined
|
||||
disassembleBank(bank);
|
||||
|
||||
// An empty address list means that DiStella can't do a disassembly
|
||||
|
@ -1126,7 +1124,7 @@ string CartDebug::saveDisassembly()
|
|||
else
|
||||
buf << " ORG $" << Base::HEX4 << origin << "\n"
|
||||
<< " RORG $" << Base::HEX4 << info.offset << "\n\n";
|
||||
origin += info.size;
|
||||
origin += uInt32(info.size);
|
||||
|
||||
// Format in 'distella' style
|
||||
for(uInt32 i = 0; i < disasm.list.size(); ++i)
|
||||
|
|
|
@ -127,7 +127,7 @@ class CartDebug : public DebuggerSystem
|
|||
|
||||
@return The disassembly represented as a string
|
||||
*/
|
||||
string disassemble(uInt16 start, uInt16 lines) const;
|
||||
string disassembleLines(uInt16 start, uInt16 lines) const;
|
||||
|
||||
/**
|
||||
Add a directive to the disassembler. Directives are basically overrides
|
||||
|
|
|
@ -1082,7 +1082,7 @@ void DebuggerParser::executeDisasm()
|
|||
return;
|
||||
}
|
||||
|
||||
commandResult << debugger.cartDebug().disassemble(start, lines);
|
||||
commandResult << debugger.cartDebug().disassembleLines(start, lines);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue