Re: [stella] BRK instruction: Request for clarification!

Subject: Re: [stella] BRK instruction: Request for clarification!
From: "Eckhard Stolberg" <Eckhard_Stolberg@xxxxxx>
Date: Wed, 27 Jul 2005 16:12:46 -0400
> If your analysis is correct, what is the point of setting the 'B' flag 
> *before* pushing the
> status register on the stack in an emulator? On a VCS system, it probably 
> should be set
> high during power up and just left there... No?

I suppose you are right. That's probably the best way to handle it
in a VCS emulator. But as the tutorial on 6502.org says: the B flag
is a frequent source of confusion. So maybe we were a bit confused
too when we started writing the cpu part for our emulators. ;-)


Ciao, Eckhard Stolberg

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

Current Thread