]> git.sur5r.net Git - cc65/blobdiff - libsrc/gamate/crt0.s
Renamed RAM to MAIN for all disk based targets.
[cc65] / libsrc / gamate / crt0.s
index ead45b7ea1b90bff858e8384fe87db6978e4867d..99af9b2d950bf5b36830def64957a808669e9ba2 100644 (file)
@@ -33,16 +33,16 @@ Start:
 
         ; setup the stack
         lda     #<(__RAM_START__+__RAM_SIZE__)
+        ldx     #>(__RAM_START__+__RAM_SIZE__)
         sta     sp
-        lda     #>(__RAM_START__+__RAM_SIZE__)
-        sta     sp + 1
+        stx     sp + 1
 
         ; Call module constructors
         jsr     initlib
 
         lda     #1
         sta     ZP_IRQ_CTRL     ; enable calling cartridge IRQ/NMI handler
-        cli     ; allow IRQ only after constructors have run
+        cli                     ; allow IRQ only after constructors have run
 
         ; Pass an empty command line
         jsr     push0           ; argc