Commit | Line | Data |
---|---|---|
47882613 JL |
1 | ; Should check to make sure something useful gets put on those .word |
2 | ; statements. | |
3 | .space $TEXT$ | |
4 | .subspa $CODE$ | |
5 | ||
6 | .align 8 | |
7 | .export icode,data | |
8 | icode: | |
9 | .proc | |
10 | .callinfo frame=0,no_calls | |
11 | .entry | |
12 | bv,n 0(2) | |
13 | .exit | |
14 | nop | |
15 | .procend | |
16 | ||
17 | ; | |
18 | ; FIRST, argv array of pointers to args, 1st is same as path. | |
19 | ; | |
20 | .align 8 | |
21 | ic_argv: | |
22 | .word ic_argv1-icode ; second, pointer to 1st argument | |
23 | .word ic_path-icode ; first, pointer to init path | |
24 | .word 0 ; fourth, NULL argv terminator (pad) | |
25 | .word 0 ; third, NULL argv terminator | |
26 | ||
27 | ic_path: | |
28 | .blockz 4096 ; must be multiple of 4 bytes | |
29 | .word 0 ; in case full string is used | |
30 | .word 0 ; this will be the string terminator | |
31 | ||
32 | ic_argv1: | |
33 | .blockz 4096 ; must be multiple of 4 bytes | |
34 | .word 0 ; in case full string is used | |
35 | .word 0 ; this will be the string terminator | |
36 | ||
37 | .export szicode,data | |
38 | szicode: | |
39 | .word szicode-icode | |
40 | .word 0 ; must have at least one filler at end |