[stella] About Stella's debugger asm

Stephen Anthony sa666666 at gmail.com
Sun May 4 12:42:36 CDT 2008


On May 1, 2008 12:17:45 pm Rastignac wrote:
> 		Hi !
>
> 	How to deal with the differences between my asm code and stella's
> disasm code ? Is there a way or something ?
>
> 	If my code contains:
> sta WSYNC
> stx PF2
> stx PF0
> stx PF1
>
> 	Stella's debugger says:
> STA CXPOFB
> STX MusicNtscDuration
> STX INPT5
> STX PF1

Just an update with my progress so far.  I've partially fixed this, but 
it's still not perfect in every case.  I see two possible issues (as 
suggested by Manuel):

1)  Certain addresses have different labels depending on read or write 
context.  I've added code that determines if an opcode is reading from 
or writing to its address, and have associated lists of read and write 
labels.  So that will take care of the 'WSYNC' vs. 'CXPOFB' and 'PF0' 
vs. 'INPT5' issue.

2)  For the 'PF2' vs. 'MusicNtscDuration', Stella now looks for system 
equates before user equates.  This solves the problem here, but in a 
non-optimal way.  What's really needed is more context to determine 
which one should be used.

So, #2 is still a WIP.

Steve



More information about the Stella mailing list