Debugging with Stella
EDIT: the following is actually proven to be an academic exercise since I have been prompted/discovered that if 'developer support' is included in your Stella you have 'developer' command line parameters that let you set the controller left and right properties and the format <NTSC|PAL> and more...
I find the Stella debugger useful for some of my debugging but launching it with game specific settings (like paddle controls) can be a bit of trouble.
Here is my solution.
In windows, I use a batch file like so.
dasm apong.asm md5 -n -l -omd5.txt rom\apong.bin split -b 32 md5.txt copy prolog.txt user.pro type xaa >>user.pro type epilog.txt >>user.pro stella rom\apong.bin
It assembles the file (to a folder called rom)
It then generates the md5 checksum with a PD checksum tool by John Walker at fourmilab.
It then splits the checksum out of the md5 text file using the split tool from the MingW build of the linux (unix) tools.
It assembles the user.pro file from pre-made start and end parts
It then launches stella with the rom
I've included everything here in this zip. In this example the controllers are always set to paddles. In other cases, I've forced PAL video or odd # of scanlines for instance.
5 Comments
Recommended Comments