[stella] About Stella's debugger asm
Stephen Anthony
sa666666 at gmail.com
Thu May 1 11:19:21 CDT 2008
On May 1, 2008 01:25:02 pm Manuel Rotschkar wrote:
> > But what about labels for jump-points?
>
> Oh, you do display them as well? Hm... Well, they should all be >=
> $1000 I think.
>
> A write to $00 should hit VSYNC
> A read from $00 would read from CXM0P
Yes, labels are also shown in the disassembly. I just looked at the
relevant code, and there's already a table describing exactly what you
saying here; each address is assigned a type based on its usage (READ,
WRITE, RAM, ROM, etc). So the infrastructure is there to deal with
different types. What *isn't* being done is setting each address to
those different types when reading from the .sym file. I'll have to
look into that one.
> A variable would have the same name both ways, else it doesn't make
> much sense. It's more a problem when a variable is assigned multiple
> names, but that is impossible to sort out within the emulator.
> (Unless you'd do something crazy like parsing the complete source
> code.)
I guess I was talking about the following from the previous example:
PF2 000f (R )
MusicNtscDuration 000f (R )
What makes one of these hardcoded, while the other is user-defined? Is
it simply because we know PF2 is the one? You see, there's nothing
from the data above that determines this, other than we 'know' it. It
would be nice if DASM differentiated between hardcoded vs. user-defined
equates.
Steve
More information about the Stella
mailing list