BSD 4_3_Net_2 release
[unix-history] / usr / src / usr.bin / lisp / lisplib / autorun / unisoft
CommitLineData
d4b46d56
C
1; $Header: unisoft 1.2 83/07/25 11:39:17 layer Exp $
2
3"
4OFFSET = 0xOFF
5start: movl a7@(4),a0
6clrl a0@(-4)
7movl a7,a0
8subql #0x8,a7
9movl a0@,a7@
10addql #0x4,a0
11movl a0,a7@(4)
12LL0: tstl a0@+
13bnes LL0
14movl a7@(4),a1
15cmpl a1@,a0
16blts LL1
17subql #0x4,a0
18LL1: movl a0,a7@(8)
19movl a0,a1
20movl #OFFSET+file,a2
21movl a2,sp@(4) | setup new argv[0]
22movl a2,a0 | file to execute
23movl #OFFSET+flag,a2
24movl a2,sp@(8) | setup new argv[1]
25lea sp@(4),a2
26movl a2,d1
27movw #0x3B,d0
28trap #0x0
29file: .asciz \"/usr/ucb/lisp\"
30flag: .asciz \"-f\"
31.even
32"