annotate level1/cmds/shell_21.asm @ 2358:79c544b33a09

Made to honor S$Peer signal (sent when peer disconnects)
author boisy
date Tue, 19 Jan 2010 16:22:09 +0000
parents f5e2b0e2cf29
children 36b1afb77372
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
1508
34f1e3e66aef Fixed comment
boisy
parents: 1506
diff changeset
2 * Shell - NitrOS-9 command line interpreter
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 924
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 924
diff changeset
7 * Comment
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
9 * 21 ????/??/??
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
10 * Original Tandy/Microware version.
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 924
diff changeset
11 *
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
12 * 21/2 2003/01/22 Boisy Pitre
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
13 * CHD no longer sets WRITE. permission.
2358
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
14 *
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
15 * 22 2010/01/19 Boisy Pitre
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
16 * Added code to honor S$Peer signal and exit when received to support
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
17 * networking.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 nam Shell
1508
34f1e3e66aef Fixed comment
boisy
parents: 1506
diff changeset
20 ttl NitrOS-9 command line interpreter
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
22 * Disassembled 99/04/18 22:59:49 by Disasm v1.6 (C) 1988 by RML
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 ifp1
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
25 use defsfile
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 endc
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
27
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 atrv set ReEnt+rev
2358
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
30 rev set $00
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
31 edition set 22
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
32
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 mod eom,name,tylg,atrv,start,size
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
34
924
c155aac72190 Made cosmetic changes
boisy
parents: 665
diff changeset
35 org 0
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u0000 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u0001 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u0003 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u0004 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u0005 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u0006 rmb 2
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
42 u0008 rmb 1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
43 u0009 rmb 1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u000A rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 u000B rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 u000C rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 u000D rmb 1
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
48 kbdsignl rmb 1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 u000F rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 u0010 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 u0011 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 u0012 rmb 1
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
53 u0013 rmb 1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
54 u0014 rmb 1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
55 u0015 rmb 1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
56 u0016 rmb 1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
57 u0017 rmb 22
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
58 u002D rmb 3
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
59 u0030 rmb 14
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
60 u003E rmb 32
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
61 u005E rmb 2
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
62 u0060 rmb 16
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
63 u0070 rmb 58
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
64 u00AA rmb 85
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
65 u00FF rmb 513
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 size equ .
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
67 name equ *
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
68
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
69 L000D fcs /Shell/
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 77
diff changeset
70 fcb edition
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 77
diff changeset
71
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 L0013 fcb $13
665
9904c8db1230 Minor source changes
boisy
parents: 200
diff changeset
73 fcs "PascalS"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 fcb $25 %
665
9904c8db1230 Minor source changes
boisy
parents: 200
diff changeset
75 fcs "RunC"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 fcb $22 "
665
9904c8db1230 Minor source changes
boisy
parents: 200
diff changeset
77 fcs "RunB"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 fcb $00
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
87 Intro fcb C$LF
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
88 fcc "Shell"
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
89 fcb C$CR
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
90 DefPrmpt fcb C$LF
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
91 OS9Prmpt fcc "OS9:"
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
92 OS9PrmL equ *-OS9Prmpt
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
93 DefPrmL equ *-DefPrmpt
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
94
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
95 IcptRtn stb <kbdsignl
2358
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
96 +++ BGP added for peer disconnect
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
97 cmpb #S$Peer
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
98 lbeq exit
79c544b33a09 Made to honor S$Peer signal (sent when peer disconnects)
boisy
parents: 1509
diff changeset
99 +++
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
100 rti
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
101
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
102 start leas -$05,s
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 pshs y,x,b,a
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
104 ldb #$6F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
105 lbsr L0175
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
106 leax <IcptRtn,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 os9 F$Icpt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 puls x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 std <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 beq L005B
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
111 lbsr L017B
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
112 bcs L00C2
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 tst <u000C
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
114 bne L00C1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 L005B lds ,s++
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
116 L005E leax <Intro,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
117 tst <u0012
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
118 bne L0076
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
119 bsr WriteLin
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
120 bcs Exit
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
121 L0069 leax <DefPrmpt,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
122 ldy #DefPrmL
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
123 L0070 tst <u0012
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
124 bne L0076
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
125 bsr WritLin2
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
126 L0076 clra
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
127 leax <u0070,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 ldy #$00C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 os9 I$ReadLn
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
130 bcc L0094
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
131 cmpb #E$EOF
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
132 beq L00B8
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
133 L0087 tst <u000F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
134 bne L008F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
135 tst <u0014
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
136 bne L00C2
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
137 L008F os9 F$PErr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
138 bra L0069
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
139 L0094 cmpy #$0001
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
140 bhi L00A4
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
141 leax >OS9Prmpt,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
142 ldy #OS9PrmL
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
143 bra L0070
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
144 L00A4 tst <u0013
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
145 beq L00AA
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
146 bsr WriteLin
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
147 L00AA lbsr L017B
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
148 bcc L0069
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 tstb
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
150 bne L0087
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
151 bra L0069
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
152
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
153 eofmsg fcc "eof"
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
154 fcb C$CR
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
155
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
156 L00B8 tst <u0012
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
157 bne L00C1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
158 leax <eofmsg,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
159 bsr WriteLin
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
160 L00C1 clrb
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
161 L00C2 lda <u000F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
162 lbne L0331
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
163 Exit os9 F$Exit
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
164
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
165 WriteLin ldy #80
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
166 WritLin2 lda #$02 stderr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
167 os9 I$WritLn write line
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
169
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
170 * I=...
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
171 Immortal lbsr L03B3
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
172 lbcs L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
173 pshs x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
174 ldb #SS.DevNm
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
175 leax <u0016,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
176 lda #PDELIM
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
177 sta ,x+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
178 clra stdin
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
179 os9 I$GetStt get device name
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
180 puls x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
181 lbcs L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
182 inc <u000F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
183 inc <u0010
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
184 lbsr L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
185 clr <u0010
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
187
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
188 L00FB fdb Comment-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
189 fcs "*"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
190 fdb Wait-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
191 fcs "W"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
192 fdb Chd-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
193 fcs "CHD"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
194 fdb Chx-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
195 fcs "CHX"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
196 fdb Ex-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
197 fcs "EX"
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
198 fdb Kill-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
199 fcs "KILL"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
200 fdb X-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
201 fcs "X"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
202 fdb NOX-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
203 fcs "-X"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
204 fdb Prompt-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
205 fcs "P"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
206 fdb NoPrompt-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
207 fcs "-P"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
208 fdb Echo-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
209 fcs "T"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
210 fdb NoEcho-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
211 fcs "-T"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
212 fdb SetPr-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
213 fcs "SETPR"
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
214 fdb Immortal-*
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
215 fcs "I="
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
216 fdb NextCmd-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
217 fcs ";"
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
218 fdb $0000
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
219 L013A fdb Pipe-*
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
220 fcs "!"
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
221 fdb NextCmd2-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
222 fcs ";"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
223 fdb Backgrnd-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
224 fcs "&"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
225 fdb Return-*
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
226 fcb $8D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
227 L0146 fdb AllRedir-*
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
228 fcs "<>>>"
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
229 fdb IERedir-*
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
230 fcs "<>>"
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
231 fdb IORedir-*
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
232 fcs "<>"
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
233 fdb OERedir-*
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
234 fcs ">>>"
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
235 fdb ErrRedir-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
236 fcs ">>"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
237 fdb InRedir-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
238 fcs "<"
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
239 fdb OutRedir-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
240 fcs ">"
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
241 fdb StkSize-*
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
242 fcs "#"
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
243 fdb $0000
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
244
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
245 L0169 fcb $0d
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
246 fcc "()"
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
247 fcb $ff
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
248 L016D fcb $0d
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
249 fcc "!#&;<>"
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
250 fcb $ff
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
251
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
252 L0175 clr b,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
253 decb
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
254 bpl L0175
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
255 rts
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
256 L017B ldb #$0E
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
257 bsr L0175
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
258 L017F clr <u0003
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
259 clr <kbdsignl
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
260 leay >L00FB,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
261 lbsr L020F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
262 bcs L01DE
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
263 cmpa #C$CR
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
264 beq L01DE
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 sta <u000C
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
266 cmpa #'(
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
267 bne L01BA
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
268 leay >L000D,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 sty <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 stx <u0008
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
272 L01A1 inc <u000D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
273 L01A3 leay <L0169,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
274 bsr L0227
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
275 cmpa #'(
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
276 beq L01A1
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
277 cmpa #')
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
278 bne L01D6
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 dec <u000D
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
280 bne L01A3
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 lda #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 sta -$01,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
283 bra L01BE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
284 L01BA bsr L01E1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
285 bcs L01DE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
286 L01BE leay <L016D,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
287 bsr L0227
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 subd <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 std <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 leax -$01,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
292 leay >L013A,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
293 bsr L020F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
294 bcs L01DE
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 ldy <u0004
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
296 L01D6 lbne L0326
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
297 cmpa #C$CR
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
298 bne L017F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
299 L01DE lbra L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
300 L01E1 stx <u0004
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
301 bsr L01F4
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
302 bcs L01F3
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
303 L01E7 bsr L01F4
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
304 bcc L01E7
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
305 leay >L0146,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
306 bsr L020F
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 stx <u0008
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
308 L01F3 rts
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
309 L01F4 os9 F$PrsNam
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
310 bcc L0205
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 lda ,x+
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
312 cmpa #C$PERD
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
313 bne L0209
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 cmpa ,x+
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
315 beq L0207
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 leay -$01,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
317 L0205 leax ,y
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
318 L0207 clra
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
320 L0209 comb
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 leax -$01,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
322 ldb #E$BPNam
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
324 L020F bsr L0241
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 pshs y
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
326 bsr L0264
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
327 bcs L0220
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 ldd ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 jsr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 puls y
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
331 bcc L020F
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
333 L0220 clra
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 puls pc,y
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
336 L0225 puls y
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
337 L0227 pshs y
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 lda ,x+
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
339 L022B tst ,y
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
340 bmi L0225
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
341 cmpa #$22
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
342 bne L023B
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
343 L0233 lda ,x+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
344 cmpa #$22
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
345 bne L0233
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
346 lda ,x+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
347 L023B cmpa ,y+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
348 bne L022B
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 puls pc,y
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
350 L0241 pshs x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 lda ,x+
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
352 cmpa #C$SPAC
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
353 beq L0257
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
354 cmpa #C$COMA
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
355 beq L0257
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
356 leax >L016D,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
357 L0251 cmpa ,x+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
358 bhi L0251
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 puls pc,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
360 L0257 leas $02,s
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
361 lda #C$SPAC
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
362 L025B cmpa ,x+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
363 beq L025B
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 leax -$01,x
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
365 NextCmd andcc #^Carry
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
367 L0264 pshs y,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 leay $02,y
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
369 L0268 ldx ,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
370 L026A lda ,x+
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 cmpa #$61
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
372 bcs L0272
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 suba #$20
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
374 L0272 eora ,y+
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 lsla
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
376 bne L0286
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
377 bcc L026A
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 lda -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 cmpa #$C1
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
380 bcs L0283
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
381 bsr L0241
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
382 bcs L0286
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
383 L0283 clra
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 puls pc,y,b,a
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
385 L0286 leay -$01,y
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
386 L0288 lda ,y+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
387 bpl L0288
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 sty $02,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 ldd ,y++
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
390 bne L0268
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 puls pc,y,x
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
393
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
394 Ex lbsr L01E1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 clra
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
396 bsr L02B8
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
397 bsr L02B7
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
398 bsr L02B7
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
399 bsr Comment
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 tfr x,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 subd <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 std <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 leas >u00FF,u
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
405 lbsr L0497
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 os9 F$Chain
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
407 lbra L00C2
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
408 L02B7 inca
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
409 L02B8 pshs a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
410 bra L0313
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
411
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
412 Chx lda #DIR.+EXEC.
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
413 bra L02C2
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
414 *Chd lda #DIR.+UPDAT. note write mode!!
77
04ebf17303cd Edition 21: Removed WRITE. requirement for CHD
boisy
parents: 15
diff changeset
415 * Removed WRITE. requirement above (some devices are read only)
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
416 Chd lda #DIR.+READ. note write mode!!
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
417 L02C2 os9 I$ChgDir
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
419
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
420 Prompt clra
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
421 bra L02CB
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
422
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
423 NoPrompt lda #$01
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
424 L02CB sta <u0012
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
426
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
427 Echo lda #$01
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
428 bra L02D3
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
429 NoEcho clra
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
430 L02D3 sta <u0013
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
432
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
433 X lda #$01
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
434 bra L02DB
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
435
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
436 NOX clra
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
437 L02DB sta <u0014
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
439 Comment lda #$0D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
440 L02E0 cmpa ,x+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
441 bne L02E0
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 cmpa ,-x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
444 L02E7 pshs b,a,cc
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
445
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
446 lda #$01
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
447 bra L02F1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
448 L02ED pshs b,a,cc
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
449 lda #$02
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
450 L02F1 sta <u0011
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 clra
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
452 L02F4 bsr L02FF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 inca
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
454 cmpa <u0011
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
455 bls L02F4
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 ror ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 puls pc,b,a
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
458 L02FF pshs a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
459 tst <u0010
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
460 bmi L031B
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
461 bne L0313
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 tst a,u
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
463 beq L031E
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 lda a,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
466 os9 I$Dup
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
467 L0313 ldb ,s
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
468 lda b,u
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
469 beq L031E
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
470 clr b,u
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
471 L031B os9 I$Close
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
472 L031E puls pc,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
473
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
474 L0320 fcc "WHAT?"
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
475 fcb C$CR
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
476
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
477 L0326 bsr L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
478 leax <L0320,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
479 lbsr WriteLin
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
480 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
481 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
483
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
484 L0331 inc <u0010
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
485 bsr L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
486 lda #$FF
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
487 sta <u0010
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
488 bsr L02E7
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
489 leax <u0016,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
490 bsr L03BC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
491 lbcs Exit
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
492 lda #$02
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
493 bsr L02FF
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
494 lbsr L03DC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
495 clr <u0010
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
496 lbra L005E
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
497 InRedir ldd #$0001
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
498 bra L036E
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
499 ErrRedir ldd #$020D
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
500 stb -$02,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
501 bra L035E
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
502
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
503 OutRedir lda #$01
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
504 L035E ldb #$02
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
505 bra L036E
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
506 L0362 tst a,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
507 bne L0326
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
508 pshs b,a
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
509 tst <u0010
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
510 bmi L0386
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
511 bra L0378
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
512 L036E tst a,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
513 bne L0326
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
514 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
515 ldb #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
516 stb -$01,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
517 L0378 os9 I$Dup
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
518 bcs L03A8
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
519 ldb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
520 sta b,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
521 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
522 os9 I$Close
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
523 L0386 lda $01,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
524 bmi L0391
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
525 ldb ,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
526 bsr L03E1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
527 tsta
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
528 bpl L0398
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
529 L0391 anda #$0F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
530 os9 I$Dup
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
531 bra L03A6
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
532 L0398 bita #$02
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
533 bne L03A1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
534 os9 I$Open
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
535 bra L03A6
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
536 L03A1 ldb #PREAD.+READ.+WRITE.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
537 os9 I$Create
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
538 L03A6 stb $01,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
539 L03A8 puls pc,b,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
540 L03AA clra
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
541 L03AB ldb #$03
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
542 bra L0362
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
543
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
544 AllRedir lda #$0D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
545 L03B1 sta -$04,x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
546 L03B3 bsr L03BC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
547 bcc L03DC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
548 L03B7 rts
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
549 IORedir lda #$0D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
550 sta -$02,x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
551 L03BC bsr L03AA
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
552 bcs L03B7
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
553 ldd #$0180
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
554 bra L0362
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
555 IERedir lda #$0D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
556 sta -$03,x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
557 bsr L03AA
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
558 bcs L03B7
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
559 ldd #$0280
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
560 bra L0362
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
561 OERedir lda #$0D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
562 sta -$03,x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
563 lda #$01
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
564 bsr L03AB
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
565 bcs L03B7
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
566 L03DC ldd #$0281
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
567 bra L0362
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
568 L03E1 pshs x,b,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
569 ldd ,x++
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
570 cmpd #$2F30
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
571 bcs L040D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
572 cmpd #$2F32
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
573 bhi L040D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
574 pshs x,b,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
575 lbsr L0241
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
576 puls x,b,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
577 bcs L040D
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
578 andb #$03
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
579 cmpb $01,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
580 bne L0404
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
581 ldb $01,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
582 ldb b,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
583 L0404 orb #$80
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
584 stb ,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
585 puls b,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
586 leas $02,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
587 rts
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
588 L040D puls pc,x,b,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
589
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
590 StkSize ldb #$0D
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
591 stb -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
592 ldb <u0003
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
593 lbne L0326
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
594 lbsr ASC2Int
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
595 eora #'K
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
596 anda #$DF
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
597 bne L042C
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
598 leax $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
599 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
600 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
601 tsta
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
602 lbne L0326
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
603 L042C stb <u0003
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
604 lbra L0241
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
605
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
606 Return leax -$01,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
607 lbsr L04CA
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
608 bra L043B
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
609
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
610 NextCmd2 lbsr L04C6
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
611 L043B bcs L044E
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
612 lbsr L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
613 bsr L045F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
614 L0442 bcs L044E
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
615 lbsr L0241
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
616 cmpa #$0D
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
617 bne L044D
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
618 leas $04,s
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
619 L044D clrb
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
620 L044E lbra L02ED
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
621
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
622 Backgrnd bsr L04C6
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
623 bcs L044E
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
624 bsr L044E
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
625 ldb #$26
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
626 lbsr L0597
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
627 bra L0442
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
628
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
629 Wait clra
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
630 L045F pshs a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
631 L0461 os9 F$Wait
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
632 tst <kbdsignl
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
633 beq L0479
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
634 ldb <kbdsignl
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
635 cmpb #$02
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
636 bne L0491
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
637 lda ,s
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
638 beq L0491
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
639 os9 F$Send
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
640 clr ,s
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
641 bra L0461
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
642 L0479 bcs L0495
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
643 cmpa ,s
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
644 beq L0491
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
645 tst ,s
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
646 beq L0486
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
647 tstb
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
648 beq L0461
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
649 L0486 pshs b
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
650 bsr L044E
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
651 ldb #$2D
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
652 lbsr L0597
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
653 puls b
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
654 L0491 tstb
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
655 beq L0495
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
656 coma
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
657 L0495 puls pc,a
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
658 L0497 lda #Prgrm+Objct
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
659 ldb <u0003
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
660 ldx <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
661 ldy <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
662 ldu <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
663 rts
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
664 L04A3 lda #EXEC.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
665 os9 I$Open
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
666 bcs L0500
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
667 leax <u005E,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
668 ldy #$000D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
669 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
670 pshs b,cc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
671 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
672 puls b,cc
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
673 lbcs L0561
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
674 lda $06,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
675 ldy $0B,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
676 bra L04D9
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
677 L04C6 lda #$0D
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
678 sta -$01,x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
679 L04CA pshs u,y,x
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
680 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
681 ldx <u0004
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
682 IFGT Level-1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
683 os9 F$NMLink
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
684 ELSE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
685 pshs u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
686 os9 F$Link
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
687 puls u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
688 ENDC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
689 bcs L04A3
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
690 ldx <u0004
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
691 IFGT Level-1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
692 os9 F$UnLoad
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
693 ELSE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
694 pshs a,b,x,y,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
695 os9 F$Link
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
696 os9 F$UnLink
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
697 os9 F$UnLink
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
698 puls a,b,x,y,u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
699 ENDC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
700 L04D9 cmpa #Prgrm+Objct
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
701 beq L0527
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
702 sty <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
703 leax >L0013,pcr
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
704 L04E4 tst ,x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
705 IFGT Level-1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
706 beq L055F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
707 ELSE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
708 lbeq L055F
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
709 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
710 cmpa ,x+
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
711 beq L04F2
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
712 L04EC tst ,x+
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
713 bpl L04EC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
714 bra L04E4
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
715 L04F2 ldd <u0008
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
716 subd <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
717 addd <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
718 std <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
719 ldd <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
720 std <u0008
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
721 bra L0525
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
722 L0500 ldx <u0006
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
723 leax $05,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
724 stx <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
725 ldx <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
726 ldu $04,s
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
727 lbsr InRedir
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
728 bcs L0561
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
729 ldu <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
730 ldd #$5820
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
731 std ,--u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
732 ldd #$5020
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
733 std ,--u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
734 ldb #$2D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
735 stb ,-u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
736 stu <u0008
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
737 leax >L000D,pcr
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
738 L0525 stx <u0004
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
739 L0527 ldx <u0004
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
740 lda #Prgrm+Objct
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
741 IFGT Level-1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
742 os9 F$NMLink
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
743 ELSE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
744 pshs u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
745 os9 F$Link
1509
f5e2b0e2cf29 Fixed problem in level 1 port of shell_21, bootfile no longer has shell in it.
boisy
parents: 1508
diff changeset
746 tfr u,y
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
747 puls u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
748 ENDC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
749 bcc L0535
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
750 IFGT Level-1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
751 os9 F$NMLoad
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
752 ELSE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
753 pshs u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
754 os9 F$Load
1509
f5e2b0e2cf29 Fixed problem in level 1 port of shell_21, bootfile no longer has shell in it.
boisy
parents: 1508
diff changeset
755 tfr u,y
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
756 puls u
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
757 ENDC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
758 bcs L0561
1509
f5e2b0e2cf29 Fixed problem in level 1 port of shell_21, bootfile no longer has shell in it.
boisy
parents: 1508
diff changeset
759 L0535
f5e2b0e2cf29 Fixed problem in level 1 port of shell_21, bootfile no longer has shell in it.
boisy
parents: 1508
diff changeset
760 IFEQ Level-1
f5e2b0e2cf29 Fixed problem in level 1 port of shell_21, bootfile no longer has shell in it.
boisy
parents: 1508
diff changeset
761 ldy M$Mem,y
f5e2b0e2cf29 Fixed problem in level 1 port of shell_21, bootfile no longer has shell in it.
boisy
parents: 1508
diff changeset
762 ENDC
f5e2b0e2cf29 Fixed problem in level 1 port of shell_21, bootfile no longer has shell in it.
boisy
parents: 1508
diff changeset
763 tst <u0003
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
764 bne L0542
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
765 tfr y,d
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
766 addd <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
767 addd #$00FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
768 sta <u0003
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
769 L0542 lbsr L0497
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
770 os9 F$Fork
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
771 pshs b,a,cc
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
772 bcs L0552
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
773 ldx #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
774 os9 F$Sleep
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
775 L0552 lda #Prgrm+Objct
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
776 ldx <u0004
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
777 clr <u0004
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
778 clr <u0005
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
779 IFGT Level-1
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
780 os9 F$UnLoad
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
781 ELSE
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
782 os9 F$Link
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
783 os9 F$UnLink
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
784 os9 F$UnLink
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
785 ENDC
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
786 puls pc,u,y,x,b,a,cc
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
787
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
788 L055F ldb #E$NEMod
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
789 L0561 coma
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
790 puls pc,u,y,x
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
791
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
792 PipeName fcc "/pipe"
1
d4eb10b30e72 Disassembled and commented shell.asm, removed shell binary
boisy
parents: 0
diff changeset
793 fcb C$CR
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
794
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
795 Pipe pshs x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
796 leax <PipeName,pcr
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
797 ldd #$0103
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
798 lbsr L0362
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
799 puls x
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
800 bcs L05CB
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
801 lbsr L04C6
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
802 bcs L05CB
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
803 lda ,u
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
804 bne L0589
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
805 os9 I$Dup
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
806 bcs L05CB
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
807 sta ,u
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
808 L0589 clra
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
809 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
810 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
811 os9 I$Dup
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
812 lda #$01
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
813 lbra L02FF
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
814 L0597 pshs y,x,b,a
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
815 pshs y,x,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
816 leax $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
817 ldb #$2F
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
818 L059F incb
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
819 suba #100
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
820 bcc L059F
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
821 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
822 ldb #$3A
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
823 L05A8 decb
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
824 adda #$0A
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
825 bcc L05A8
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
826 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
827 adda #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
828 ldb #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
829 std ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
830 leax ,s
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
831 lbsr WriteLin
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
832 leas $05,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
833 puls pc,y,x,b,a
12
42fbf11d282b Improved commenting
boisy
parents: 10
diff changeset
834
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
835 * Kill a process
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
836 Kill bsr ASC2Int
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
837 cmpb #$02 compare against first user process ID
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
838 bls L05E7 if lower or same,
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
839 tfr b,a transfer process ID to A
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
840 ldb #S$Kill load B with kill signal
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
841 os9 F$Send and send to process in A
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
842 L05CB rts
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
843
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
844 * Entry: X = ASCII representation of number
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
845 * Exit : B = decimal value of ASCII number
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
846 ASC2Int clrb
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
847 L05CD lda ,x+
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
848 suba #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
849 cmpa #$09
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
850 bhi L05DE
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
851 pshs a
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
852 lda #10
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
853 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
854 addb ,s+
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
855 bcc L05CD
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
856 L05DE lda ,-x
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
857 bcs L05E5
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
858 tstb
1506
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
859 bne L05CB
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
860 L05E5 leas $02,s
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
861 L05E7 lbra L0326
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
862
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
863 SetPr bsr ASC2Int
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
864 stb <u0015
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
865 lbsr L0241
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
866 bsr ASC2Int
9f3ff1c25f05 Back-ported from Level 2
boisy
parents: 1325
diff changeset
867 lda <u0015
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
868 os9 F$SPrior
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
869 rts
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
870
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
871 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
872 eom equ *
10
25d626c770e9 Updated shell source
boisy
parents: 1
diff changeset
873 end