]> git.sur5r.net Git - cc65/commitdiff
Fixed none/crt0.s to respect none.cfg
authorbauen1 <j2468h@gmail.com>
Thu, 4 Jan 2018 21:14:01 +0000 (22:14 +0100)
committerbauen1 <j2468h@gmail.com>
Thu, 4 Jan 2018 21:14:01 +0000 (22:14 +0100)
libsrc/none/crt0.s

index 7858ad839e8a69ea17a4a68e81c10902eb4f6a42..a90f60d263b27b16ece5b77ab272ccab5560d810 100644 (file)
@@ -2,15 +2,14 @@
        .export         __STARTUP__ : absolute = 1      ; Mark as startup
        .import         zerobss, _main
        .import         initlib, donelib
-       .import         __MAIN_START__, __MAIN_SIZE__   ; Linker generated
-       .import         __STACKSIZE__                   ; Linker generated
+       .import         __STACKSTART__, __STACKSIZE__   ; Linker generated
 
        .include "zeropage.inc"
 
        .segment "STARTUP"
 
-       lda #<(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
-       ldx #<(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
+       lda #<__STACKSTART__
+       lda #>__STACKSTART__
        sta sp
        stx sp+1
        jsr zerobss