Re: 6502 stack register at reset

From: didier derny <didier_at_aida.org>
Date: Sat, 25 Nov 2017 23:12:09 +0100
Message-ID: <bc08a1cc-5b7c-5356-6d1d-a2f53d1b9d75@aida.org>
no the program is just using the stack as a return stack

it was a program trying to communicate with a CH376

the code was working then at some time a call to a function never 
returned...

and worse, never at the same place... but  sometimes it worked...

once the stack pointer was set the program worked



On 25/11/2017 22:25, dave_m wrote:
> Most likely the program that is crashing is using the lower part of the Stack
> area for data storage by design or due to a code bug. As long as the Stack
> is initialized to $01FF, there is no problem. But if the stack pointer comes
> up randomly close to the bottom of the Stack, it may step on that data.
>
>
>
> --
> Sent from: http://cbm-hackers.2304266.n4.nabble.com/
>
>         Message was sent through the cbm-hackers mailing list


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

Archive generated by hypermail 2.2.0.