annotate level1/cmds/shell_21.asm @ 1919:028161cd3535

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