[stella] Macros to manage memory allocation.

Fred Quimby c9r at hotmail.com
Mon Jun 11 14:26:59 CDT 2007


>From: R Mundschau <rmundschau at frontiernet.net>
>
>DASM is not too happy about how  the macros work right now because it takes 
>many passes for the
>variable addresses to all settle down

I've had this problem many times with batari Basic, if you are talking about 
the bogus label mismatches that DASM sometimes spits out by the hundreds.  
I've hacked DASM to eliminate bogus messages for passes that aren't the 
final pass by buffering them until DASM is finished.  This also has the 
effect of not repeating your "echo" scripts multiple times (with different 
results in each pass...)

I've also encountered another related issue, this one serious enough to be 
called a bug.  Unfortunately I can't remember the exact nature of the bug, 
but it seemed DASM wasn't trying hard enough to resolve branches, and could 
sometimes create a bogus "branch out of range" error (which is fatal!)  I 
seem to have fixed this one by simply ignoring branch errors in pass 2.  If 
they are truly errors, pass 3 will catch 'em.

I built my DASM hack on top of 2.20.07 since this one doesn't have the bug 
where lda #-1 would result in something other than $FF, as was introduced in 
2.20.10.  It's not ready for primetime as the memory use needs to be cleaned 
up, but if anyone else is running into one of the above, let me know and 
I'll send you the source and/or binary.

Come to think of it, I have some other stuff that Stella readers might find 
useful, so I'll dig it up.

_________________________________________________________________
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm





More information about the Stella mailing list