All directives other than ROW now have an associated address in the

disassembly.  This allows the debugger 'jump' command to be more accurate.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2180 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2010-11-10 14:50:38 +00:00
parent 7558f87adb
commit 7a368c4bbb
2 changed files with 4 additions and 4 deletions

View File

@ -291,8 +291,8 @@ bool CartDebug::fillDisassemblyList(BankInfo& info, bool resolvedata, uInt16 sea
{
const DisassemblyTag& tag = myDisassembly.list[i];
// Only addresses marked as 'CODE' can possibly be in the program counter
if(tag.type == CODE)
// Addresses marked as 'ROW' normally won't have an address
if(tag.address)
{
// Create a mapping from addresses to line numbers
myAddrToLineList.insert(make_pair(tag.address, i));

View File

@ -85,8 +85,8 @@ DiStella::DiStella(const CartDebug& dbg, CartDebug::DisassemblyList& list,
info.end = myAppData.end;
info.offset = myOffset;
memset(labels, 0, 0x1000);
memset(directives, 0, 0x1000);
memset(myLabels, 0, 0x1000);
memset(myDirectives, 0, 0x1000);
myAddressQueue.push(start);
// Process any directives first, as they override automatic code determination