[stella] Zeropage/immediate load auditor

Fred Quimby c9r at hotmail.com
Mon Jun 11 14:47:17 CDT 2007


I'm sure some of you will find this useful.  If you haven't seen it before, 
this program finds errors in your code where you do a zeropage load instead 
of an immediate.  On the 2600, these are often not noticed because a zero 
page load to a TIA address typically returns the address itself, but not 
always.

For example, if you do this:

MONSTERHEIGHT=14

then:

  cmp MONSTERHEIGHT

when you mean:

  cmp #MONSTERHEIGHT

the bug may never occur during playtesting and may not make itself known 
until purchasers of your game complain!

So this program, which I will attempt to attach, seems to catch all such 
errors but may produce a few false positives.

To use, generate a .lst file with the -l switch in DASM, then:

auditasm<file.lst

_________________________________________________________________
Play games, earn tickets, get cool prizes. Play now–it's FREE! 
http://club.live.com/home.aspx?icid=CLUB_hotmailtextlink1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auditasm.zip
Type: application/zip
Size: 37275 bytes
Desc: not available
Url : http://www.atariage.com/pipermail/stella/attachments/20070611/dffb9750/attachment.zip 


More information about the Stella mailing list