Jump to content
  • entries
    21
  • comments
    83
  • views
    24,362

Debugging with Stella


djmips

773 views

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.

 

duplicates.zip

5 Comments


Recommended Comments

Here's what I do for MM development to set the paddles

  1. double click mm.bin (stella starts up with game loaded)
  2. change controllers

    1. hit tab
    2. game properties
    3. set controllers
    4. OK

[*]Apple-R to reload/restart game (control-R under Windows or Linux)

Link to comment

I found that tedious... :D That's why I wrote a script to do it for me.

 

I see that you're on the Mac, my script won't work, but it's bound to be easy to convert.

Link to comment

You'd think so, but Stella on the Mac ignores the command line parameters :D

 

command line parameters? :D :D :D

 

OK well somehow I didn't think that stella had command line parameters. OOPS!

 

Nevermind! If command line parameters work, you can pretty much do what I did in the script by

 

stella -lc Paddles rom\apong.bin

 

:D

 

If command line parameters don't work on MAC then A) they should fix them or B) you could still use a script like I mentioned and you would double click run the script and then double click run the .bin file

Link to comment

command line parameters? :D :D :D

I had insider information - I used to maintain the OS/2 port of Stella before I switched to the OS X.

 

If command line parameters don't work on MAC then A) they should fix them or B) you could still use a script like I mentioned and you would double click run the script and then double click run the .bin file

(A) would be nice, though I don't find it to be a hassle to change the settings via the GUI now that I know to use Apple-R to "reload the game". Initially I was changing the settings, then quitting Stella so they'd take effect when I ran it the next time.
Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...