v65: note a 6502 assumption we are making
authorAlan Cox <alan@linux.intel.com>
Sat, 30 Sep 2017 18:19:49 +0000 (19:19 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 30 Sep 2017 18:19:49 +0000 (19:19 +0100)
Kernel/platform-v65/v65.s

index 443eea5..eb44c4f 100644 (file)
@@ -556,7 +556,7 @@ platform_doexec:
            sta ptr1
 
 ;
-;      Set up the C stack
+;      Set up the C stack. FIXME: assumes for now our sp in ZP matches it
 ;
            lda U_DATA__U_ISP
            sta sp
@@ -570,6 +570,7 @@ platform_doexec:
            txs
            ldx #>PROGLOAD      ; For the relocation engine
            lda #ZPBASE
+           ldy #0
            jmp (ptr1)          ; Enter user application
 
 ;