]> git.sur5r.net Git - cc65/blobdiff - libsrc/lynx/crt0.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / lynx / crt0.s
index a49902c4aea63c986891677169b7345d37451b73..a7252f84792400b771de3c972f685994fe5296cf 100644 (file)
        .import         zerobss
        .import         callmain
        .import         _main
-       .import         __BSS_LOAD__
        .import         __INTERRUPTOR_COUNT__
-       .import         __RAM_START__, __RAM_SIZE__
+       .import         __RAM_START__, __RAM_SIZE__, __STACKSIZE__
 
        .include        "zeropage.inc"
         .include        "extzp.inc"
 
-
-; ------------------------------------------------------------------------
-; EXE header (BLL header)
-
-       .segment "EXEHDR"
-       .word   $0880
-       .dbyt   __RAM_START__
-               .dbyt   __BSS_LOAD__ - __RAM_START__ + 10
-       .byte   $42,$53
-       .byte   $39,$33
-
-
 ; ------------------------------------------------------------------------
 ; Mikey and Suzy init data, reg offsets and data
 
@@ -94,9 +81,9 @@ MikeyInitData:  .byte $9e,$18,$68,$1f,$00,$00,$00,$00,$00,$ff,$1a,$1b,$04,$0d,$2
 
 ; setup the stack
 
-       lda     #<(__RAM_START__ + __RAM_SIZE__)
+       lda     #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
        sta     sp
-       lda     #>(__RAM_START__ + __RAM_SIZE__)
+       lda     #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
        sta     sp+1
 
 ; Init Mickey