]> git.sur5r.net Git - cc65/blobdiff - libsrc/c128/mainargs.s
Revert "atari5200: fix COLOR defines' names"
[cc65] / libsrc / c128 / mainargs.s
index dcd5a11bd2746af9c0561eae309a1a0dc47daa0d..dcf5900241a886cd5c9097ca939557435c2ab5fb 100644 (file)
@@ -25,6 +25,7 @@
         .constructor    initmainargs, 24
         .import         __argc, __argv
 
+        .include        "cbm_kernal.inc"
         .include        "c128.inc"
 
 
@@ -32,10 +33,10 @@ MAXARGS  = 10                   ; Maximum number of arguments allowed
 REM      = $8f                  ; BASIC token-code
 NAME_LEN = 16                   ; Maximum length of command-name
 
-; Get possible command-line arguments. Goes into the special INIT segment,
+; Get possible command-line arguments. Goes into the special ONCE segment,
 ; which may be reused after the startup code is run
 
-.segment        "INIT"
+.segment        "ONCE"
 
 initmainargs:
 
@@ -127,7 +128,7 @@ done:   lda     #<argv
         stx     __argv + 1
         rts
 
-.segment        "INITBSS"
+.segment        "INIT"
 
 term:   .res    1
 name:   .res    NAME_LEN + 1