[stella] Question about DASM

Peter H. Fröhlich phf at cs.jhu.edu
Sun Mar 30 16:53:21 CDT 2008


Hi all,

On Mar 30, 2008, at 4:48 PM, Fred Quimby wrote:

> So I take it that -1 in this context assembles as 255?  I recall  
> that LDA #-1 doesn't do that in 2.20.10, though I can't recall if  
> it resolves to the wrong value or simply gives an error.

LDA #-1 *should* be the same as LDA #255, but in 2.20.10 it is foiled  
by a type problem internally (signed vs. unsigned comparison) so the  
assembler barfs up an error message. At least that's true if I am  
doing my experiments correctly...

(Take this with a grain of salt, I haven't been hacking dasm for very  
long, so who knows. Actually, Thomas might know the definitive  
answer? :-)

Cheers,
Peter



More information about the Stella mailing list