Re: 6502 stack register at reset

From: Spiro Trikaliotis <ml-cbmhackers_at_trikaliotis.net>
Date: Sat, 25 Nov 2017 22:03:49 +0100
Message-ID: <20171125210349.GD7692@hermes.local.trikaliotis.net>
Hello,

* 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

But: Why is this a problem? I would expect the stack pointer just to
wrap around.

That is, if you have RAM at $0100-$01FF and you do not use that area for
anything else, why should the CPU crash at all as long as you do not
push more than 256 byte on it?

Can anyone enlighten me?

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/

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

Archive generated by hypermail 2.2.0.