[stella] CLD

Subject: [stella] CLD
From: Paul Slocum <paul-slocum@xxxxxxxxxxxxxx>
Date: Mon, 03 Sep 2001 12:51:08 -0500
I'm working on a 255 game menu multicart, and during testing, every game worked except for Rescue Terra I. I was looking through the Rescue Terra I code, and noticed the suspicious absence of the SEI and CLD commands at the start of the code. Sure enough, using the PCAEWin debugger, if you set the decimal flag before the program runs, it crashes that same way as on my multicart.

So apparently the Atari normally starts up with the decimal flag clear. I assumed that since every program I've ever disassembled cleared it, that it started out in a set state. So I had my menu program set it before switching to the game.

I guess this is why the Stella Programming Guide tells you to assume that the Atari starts up in a completely random state. Gotta follow the rules, Dan Oliver, where ever you are.


- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/

Current Thread