Re: 6502 stack register at reset

From: Gerrit Heitsch <gerrit_at_laosinh.s.bawue.de>
Date: Sat, 25 Nov 2017 20:59:11 +0100
Message-ID: <9e762c72-f08b-ac06-33c2-46bab4f0185c@laosinh.s.bawue.de>
On 11/25/2017 08:50 PM, 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

As far as I know, the RESET squence on about every 6502 system contains 
the following 2 commands:

LDX #$FF
TXS

to make sure the stack pointer contains the proper value.

  Gerrit


       Message was sent through the cbm-hackers mailing list
Received on 2017-11-25 20:01:40

Archive generated by hypermail 2.2.0.