]> git.sur5r.net Git - cc65/blobdiff - libsrc/c16/mainargs.s
poor man's _toascii routine, contributed by Fatih Aygun
[cc65] / libsrc / c16 / mainargs.s
index c567b8ceb482949010411d7cb38a8f1bf90b5159..418bfe90f4a43bba68cfbcdeb0d62d7c9dd2120e 100644 (file)
@@ -3,7 +3,7 @@
 ; Ullrich von Bassewitz, 2003-03-07
 ; Based on code from Stefan A. Haubenthal, <polluks@web.de>
 ; 2003-05-18, Greg King
-; 2004-04-28, Ullrich von Bassewitz
+; 2004-04-28, 2005-02-26, Ullrich von Bassewitz
 ;
 ; Scan a group of arguments that are in BASIC's input-buffer.
 ; Build an array that points to the beginning of each argument.
        .constructor    initmainargs, 24
        .import         __argc, __argv
 
-       .include        "../plus4/plus4.inc"
+       .include        "plus4.inc"
 
 
 
 MAXARGS         = 10                   ; Maximum number of arguments allowed
-REM     = $8f                  ; BASIC token-code
-NAME_LEN = 16                  ; maximum length of command-name
+REM     = $8f                  ; BASIC token-code
+NAME_LEN = 16                  ; maximum length of command-name
+
+; Get possible command-line arguments. Goes into the special INIT segment,
+; which may be reused after the startup code is run
+
+.segment        "INIT"
 
-; Get possible command-line arguments.
-;
 initmainargs:
 
 ; Assume that the program was loaded, a moment ago, by the traditional LOAD