annotate level1/cmds/del.asm @ 474:31ce96b2dc9d

entered: chdir chmod qsort strass toupper tsleep wait
author roug
date Sun, 06 Oct 2002 09:10:36 +0000
parents e9ce43cc215e
children 27f21cba6b30
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 * Del - File deletion utility
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: 11
diff changeset
8 * 5 From Tandy OS-9 Level One VR 02.00.00
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Del
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl File deletion utility
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 98/09/10 22:43:13 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 edition set 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 InPath rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 rmb 450
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 name fcs /Del/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 HelpMsg fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 fcc "Use: Del [-x] <path> {<path>} [-x]"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 fcb C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 start lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 cmpa #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 beq L0093
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 sta <InPath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 bsr L0054
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 L0043 lda <InPath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 os9 I$DeletX
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 bcs L0051
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 cmpa #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 bne L0043
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 L0051 os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 L0054 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 cmpa #C$SPAC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 beq L0054
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 cmpa #C$COMA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 beq L0054
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 cmpa #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 bne L0067
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 bsr L0086
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 leax 1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 L0067 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 L0069 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 cmpa #C$SPAC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 beq L0069
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 cmpa #C$COMA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 beq L0069
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 cmpa #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 beq L007E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 cmpa #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 bne L0069
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 L007B puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 L007E bsr L0086
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 lda #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 sta -2,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 bra L007B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 L0086 lda ,x+
11
50bca5580dfb Enhanced source
boisy
parents: 0
diff changeset
79 eora #'X
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 bne L0093
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 lda #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 sta <InPath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 L0093 leax >HelpMsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 ldy #80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 bra L0051
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 end
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95