the problem occurred on a replica 1 (original appleĀ 1 monitor) I checked the monitor code no initialization of the stack my code was working fine on commodore and on a sym 1 On 25/11/2017 21:34, silverdr@wfmh.org.pl wrote: >> On 2017-11-25, at 20:59, Gerrit Heitsch <gerrit@laosinh.s.bawue.de> wrote: >> >> 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. > Yup - I even remember wondering why.. long time ago. That's until I read somewhere that the SP is not initialised on H/W reset. > Message was sent through the cbm-hackers mailing listReceived on 2017-11-25 21:01:48
Archive generated by hypermail 2.2.0.