]> git.sur5r.net Git - cc65/blob - libsrc/telemon24/mainargs.s
d8547e500e755cc42634c4c4601b3dec8da6a18e
[cc65] / libsrc / telemon24 / mainargs.s
1 ;
2 ; 2003-03-07, Ullrich von Bassewitz
3 ; 2011-01-28, Stefan Haubenthal
4 ; 2014-09-10, Greg King
5 ;
6 ; Set up arguments for main
7 ;
8
9         .constructor    initmainargs, 24
10         .import         __argc, __argv
11
12         .include        "telemon24.inc"
13         .macpack        generic
14
15 MAXARGS  = 10                   ; Maximum number of arguments allowed
16
17
18 .segment        "ONCE"
19
20 .proc   initmainargs
21
22 .endproc
23
24 .segment        "INIT"
25
26 term:   .res    1
27 name:   .res    FNAME_LEN + 1
28 args:   .res    SCREEN_XSIZE * 2 - 1
29
30 .data
31
32 ; This array has zeroes when initmainargs starts.
33 ; char* argv[MAXARGS+1]={name};
34
35 argv:   .addr   name
36         .res    MAXARGS * 2