Hello, * On Sat, Nov 25, 2017 at 09:35:18PM +0000 smf wrote: > The commodore 64 kernal sets the stack pointer & they did a lot of rewriting > to make it fit in the limited rom. So if it was unnecessary then it's 3 > bytes they could have removed easily. Here, it is different. The C64 - does calculations to find out of the stack overflows (because you have to many gosub, for) - restores the stack pointer at some places to have a known value ("reset" it) Here, it helps to know where the stack begins. Likewise, the 1541, for example, only uses part of page $01 for the stack pointer. Thus, it has to initialize it, too. Regards, Spiro. -- Spiro R. Trikaliotis http://www.trikaliotis.net/ Message was sent through the cbm-hackers mailing listReceived on 2017-11-25 23:01:37
Archive generated by hypermail 2.2.0.