Re: 6502 stack register at reset

From: Segher Boessenkool <segher_at_kernel.crashing.org>
Date: Sat, 25 Nov 2017 15:32:06 -0600
Message-ID: <20171125213206.GL10515@gate.crashing.org>
On Sat, Nov 25, 2017 at 08:50:21PM +0100, didier derny wrote:
> Is there any 6502 starting with an initialized stack register at reset ?
> 
> a few month ago I was struggling with a strange bug...
> 
> the program was crashing or working randomly
> 
> I discovered that the machine had a stack register never initialized

That's right, see node 187: the "write" external signal is never asserted
during a reset (so that the CPU will not do a "wild" write; the stack
pointer isn't initialised).


Segher

       Message was sent through the cbm-hackers mailing list
Received on 2017-11-25 23:02:11

Archive generated by hypermail 2.2.0.