mirror of https://github.com/stella-emu/stella.git
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:
parent
7558f87adb
commit
7a368c4bbb
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue