annotate level1/cmds/park.asm @ 127:78c06629559c

Added from OS-9 Level One V2 disk 2
author boisy
date Sun, 07 Jul 2002 02:49:31 +0000
parents
children 089587ab2d8f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
1 ********************************************************************
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
2 * PARK - Park a hard drive
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
3 *
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
4 * $Id$
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
5 *
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
8 * 1 Original Tandy/Microware version
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
9
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
10 nam PARK
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
11 ttl Park a hard drive
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
12
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
13 * Disassembled 02/07/06 21:41:10 by Disasm v1.6 (C) 1988 by RML
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
14
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
15 ifp1
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
16 use defsfile
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
17 endc
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
18
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
21 rev set $01
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
22
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
23 mod eom,name,tylg,atrv,start,size
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
24
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
25 u0000 rmb 1
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
26 u0001 rmb 2
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
27 u0003 rmb 20
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
28 u0017 rmb 502
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
29 size equ .
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
30
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
31 name fcs /PARK/
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
32 fcb $01
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
33
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
34 HelpMsg fcb C$LF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
35 fcc "Use: PARK </devname> .... "
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
36 fcb C$LF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
37 fcc " To park hard disk heads"
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
38 fcb C$LF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
39 fcc " on inner track of drive"
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
40 fcb C$LF,C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
41 HelpMsgL equ *-HelpMsg
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
42
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
43 Parked fcc " has been parked. "
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
44 fcb C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
45 ParkedLen equ *-Parked
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
46
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
47 NoOpen fcc " cannot be opened."
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
48 fcb C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
49 NoOpenL equ *-NoOpen
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
50
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
51 NoPark fcc " has not been parked."
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
52 fcb C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
53 NoParkL equ *-NoPark
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
54
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
55 start bsr L0117
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
56 cmpa #C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
57 beq L00E0
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
58 L00AE cmpa #'/
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
59 bne L00E0
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
60 bsr L0122
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
61 lda #READ.
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
62 os9 I$Open
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
63 bcs L00FA
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
64 ldb #SS.SQD
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
65 os9 I$SetStt
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
66 bcs L0106
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
67 lda <u0000
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
68 os9 I$Close
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
69 bsr L00EF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
70 leax >Parked,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
71 ldy #ParkedLen
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
72 L00D1 os9 I$WritLn
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
73 ldx <u0001
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
74 lda ,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
75 cmpa #C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
76 bne L00AE
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
77 L00DC clrb
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
78 os9 F$Exit
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
79 L00E0 lda #$02
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
80 leax >HelpMsg,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
81 ldy #HelpMsgL
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
82 os9 I$WritLn
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
83 bra L00DC
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
84 L00EF leax u0003,u
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
85 lda #$02
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
86 ldy <u0017
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
87 os9 I$Write
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
88 rts
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
89 L00FA bsr L00EF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
90 leax >NoOpen,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
91 ldy #NoOpenL
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
92 bra L00D1
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
93 L0106 lda <u0000
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
94 os9 I$Close
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
95 bsr L00EF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
96 leax >NoPark,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
97 ldy #NoParkL
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
98 bra L00D1
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
99 L0117 lda ,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
100 cmpa #C$SPAC
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
101 bne L0121
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
102 leax 1,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
103 bra L0117
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
104 L0121 rts
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
105
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
106 L0122 clrb
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
107 leay u0003,u
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
108 pshs y
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
109 L0127 lda ,x+
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
110 cmpa #C$SPAC
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
111 bls L0132
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
112 sta ,y+
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
113 incb
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
114 bra L0127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
115 L0132 lda #'@
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
116 sta ,y+
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
117 leax -1,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
118 bsr L0117
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
119 stx <u0001
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
120 clra
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
121 std <u0017,u
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
122 puls pc,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
123
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
124 emod
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
125 eom equ *
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
126 end
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
127