annotate level1/cmds/deldir.asm @ 990:3c51c59f97c4

Small cosmetic changes
author boisy
date Fri, 21 Feb 2003 13:18:13 +0000
parents c155aac72190
children 4e235f213651
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * Deldir - Delete a directory
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 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 0
diff changeset
8 * 3 From Tandy OS-9 Level Two VR 02.00.01
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
9 * 4 Updated to add -e instead of e to dir BGP 03/01/14
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 nam Deldir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 ttl Delete a directory
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 * Disassembled 98/09/10 23:18:11 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 rev set $01
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
23 edition set 4
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26
924
c155aac72190 Made cosmetic changes
boisy
parents: 872
diff changeset
27 org 0
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
28 parmptr rmb 2
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
29 fpath rmb 1
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
30 what2do rmb 1
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
31 stats rmb 24
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u001C rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0020 rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0024 rmb 10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u002E rmb 6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u0034 rmb 15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u0043 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u0044 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u0045 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u0046 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u0048 rmb 2
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
42 buffer rmb 336
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 name fcs /Deldir/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
48 start bsr OpenPath
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
49 bcs OpenErr
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
50 bsr GetOpts
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 bcc L002B
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
52 lbsr PromptUser
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
53 bcs OpenErr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 lbsr L01C3
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
55 bcs OpenErr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 lbsr L0242
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
57 bcs OpenErr
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
58 L002B lda <fpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 bcs L004D
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
61 ldx <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 os9 I$Delete
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 bcs L004D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 cmpa #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 bne start
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 bra L004D
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
69 OpenErr pshs b
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
70 lda <fpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 orcc #Carry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 L004D os9 F$Exit
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
75
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
76
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
77 OpenPath stx <parmptr save parameter pointer
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 lda #READ.+WRITE.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 os9 I$Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 bcs L005D
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
81 sta <fpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 bra L0089
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
83 L005D ldx <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 lda #DIR.+READ.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 os9 I$Open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 bcs L0090
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
87 sta <fpath
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
88 L0068 ldx <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 os9 F$PrsNam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 std <u0046
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 lda ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 cmpa #PDELIM
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 bne L0089
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 lda #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 sta ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 lda #READ.+WRITE.
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
99 ldx <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 bcs L0090
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
102 sty <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 bra L0068
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 L0089 leax <-u001C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 stx <u0044
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
106 clr <what2do
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 L0090 rts
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
108
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
109 GetOpts lda <fpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 ldb #SS.OPT
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
111 leax stats,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 bcs L00AB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 ldx <u0044
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 lda <$33,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 anda #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 beq L00AA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 orcc #Carry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 bra L00AB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 L00AA clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 L00AB rts
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
123
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
124 Prompt fcb C$LF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 fcc "Deleting directory file. "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 fcc "List directory, delete directory, or quit ? (l/d/q) "
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
128 PromptL equ *-Prompt
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
129 Cont fcb C$LF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 fcc "Continue? (y/n) "
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
131 ContL equ *-Cont
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
132
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
133 PromptUser
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
134 tstb
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 bne L013E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 lda #$01
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
137 leax <Prompt,pcr
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
138 ldy #PromptL
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 L011B bcs L013E
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
141 bsr ReadKey
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 bcs L013E
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
143 ldb <what2do
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 cmpb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 bne L012A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 bra L013E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 L012A bsr L0145
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 L012C bcs L013E
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
150 leax <Cont,pcr
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
151 ldy #ContL
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 lda #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 bcs L013E
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
155 bsr ReadKey
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 L013E rts
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
157 DIR fcc "DIR"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 fcb C$CR
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
159 DIROPTS fcc "-E "
872
ad7443c6b53d Fixed problem where dir wasn't being forked
boisy
parents: 848
diff changeset
160 DIROPTL equ *-DIROPTS
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 L0145 pshs u
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
162 leau <buffer,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 pshs u
872
ad7443c6b53d Fixed problem where dir wasn't being forked
boisy
parents: 848
diff changeset
164 ldb #DIROPTL
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
165 leax <DIROPTS,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 lbsr L0270
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
167 ldx <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 ldd <u0046
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 lbsr L0270
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 lda #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 L015E sta ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 tfr u,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 subd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 tfr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 puls u
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
177 leax <DIR,pcr
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
178 lda #Prgrm+Objct
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 bcs L013E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 L0178 rts
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
185
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
186 ReadKey leax <buffer,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 ldy #80
848
c6ebca55eed3 Dir now uses -e and -x and deldir changed accordingly
boisy
parents: 686
diff changeset
188 clra
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 os9 I$ReadLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 bcs L01B8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 L0187 lda ,x+
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
192 cmpa #C$SPAC eat spaces
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 beq L0187
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
194 eora #'Y
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 anda #$DF
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
196 beq L01AD branch if Y
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 lda ,-x
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
198 eora #'L branch if L
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 beq L01A9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 lda ,x
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
202 eora #'D branch if D
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 beq L01A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 bra L01B4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 L01A5 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 bra L01AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 L01A9 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 bra L01AF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 L01AD ldb #$04
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
211 L01AF stb <what2do
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 bra L01B8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 L01B4 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 orcc #Carry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 L01B8 rts
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
217 DelDir fcc "DELDIR"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 fcb C$CR
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
219 DotDot fcc ".."
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 fcb C$CR
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
221 L01C3 ldb <what2do
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 bitb #$05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 beq L0210
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
224 lda <fpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 pshs u
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
226 ldu #64
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 L01D0 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 os9 I$Seek
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 L01D8 bsr L0215
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 bcs L0209
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
232 ldx <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 lda #READ.+WRITE.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 bcs L0214
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 ldy <u0048
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 clrb
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
238 lda #Prgrm+Objct
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 leau <u0024,u
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
241 leax <DelDir,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 bcs L0214
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 bcs L0214
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
247 leax <DotDot,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 lda #READ.+WRITE.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 os9 I$ChgDir
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 bcc L01D8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 L0209 cmpb #E$EOF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 bne L0214
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 bra L0214
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 L0210 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 orcc #Carry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 L0214 rts
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
258 L0215 lda <fpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 leax <u0024,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 ldy #$0020
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 os9 I$Read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 bcs L0238
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 beq L0215
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 os9 F$PrsNam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 lda -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 sta -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 lda #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 sta ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 std <u0048
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 L0238 rts
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
275 ATTR fcc "ATTR"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 fcb C$CR
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
277 ATTROPTS fcc " -d"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 fcb C$CR
872
ad7443c6b53d Fixed problem where dir wasn't being forked
boisy
parents: 848
diff changeset
279 ATTROPTL equ *-ATTROPTS
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 L0242 pshs u
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
281 leau <buffer,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 ldd <u0046
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 decb
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
285 ldx <parmptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 bsr L0270
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
287 leax <ATTROPTS,pcr
872
ad7443c6b53d Fixed problem where dir wasn't being forked
boisy
parents: 848
diff changeset
288 ldb #ATTROPTL
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 bsr L0270
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 tfr u,d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 subd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 tfr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 puls u
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
294 leax <ATTR,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 clrb
686
ed3ad5db6af4 Made source enhnacements
boisy
parents: 200
diff changeset
296 lda #Prgrm+Objct
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 os9 F$Fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 bcs L026D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 os9 F$Wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 L026D puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 L0270 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 sta ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 bne L0270
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 end
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312