annotate level1/cmds/park.asm @ 200:e9ce43cc215e

Made major changes to headers for consistency and identification
author boisy
date Mon, 15 Jul 2002 03:42:42 +0000
parents 089587ab2d8f
children d049083f7ab0
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 ********************************************************************
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
2 * Park - Park a hard drive
127
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 * ------------------------------------------------------------------
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 197
diff changeset
8 * 1 From Tandy OS-9 Level One VR 02.00.00
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 197
diff changeset
9 * 2 Changed name to a mixture of upper/lowercase BGP 02/07/13
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
10
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
11 nam Park
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
12 ttl Park a hard drive
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
13
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
14 * 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
15
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
16 ifp1
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
17 use defsfile
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
18 endc
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
19
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
20 tylg set Prgrm+Objct
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
21 atrv set ReEnt+rev
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
22 rev set $01
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 197
diff changeset
23 edition set 2
127
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 mod eom,name,tylg,atrv,start,size
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
26
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
27 u0000 rmb 1
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
28 u0001 rmb 2
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
29 u0003 rmb 20
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
30 u0017 rmb 502
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
31 size equ .
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
32
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
33 name fcs /Park/
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 197
diff changeset
34 fcb edition
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
35
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
36 HelpMsg fcb C$LF
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
37 fcc "Use: Park </devname> .... "
127
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 " To park hard disk heads"
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
40 fcb C$LF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
41 fcc " on inner track of drive"
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
42 fcb C$LF,C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
43 HelpMsgL equ *-HelpMsg
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
44
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
45 Parked fcc " has been parked. "
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
46 fcb C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
47 ParkedLen equ *-Parked
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
48
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
49 NoOpen fcc " cannot be opened."
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
50 fcb C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
51 NoOpenL equ *-NoOpen
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
52
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
53 NoPark fcc " has not been parked."
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
54 fcb C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
55 NoParkL equ *-NoPark
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
56
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
57 start bsr L0117
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
58 cmpa #C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
59 beq L00E0
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
60 L00AE cmpa #PDELIM
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
61 bne L00E0
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
62 bsr L0122
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
63 lda #READ.
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
64 os9 I$Open
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
65 bcs L00FA
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
66 ldb #SS.SQD
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
67 os9 I$SetStt
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
68 bcs L0106
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
69 lda <u0000
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
70 os9 I$Close
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
71 bsr L00EF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
72 leax >Parked,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
73 ldy #ParkedLen
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
74 L00D1 os9 I$WritLn
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
75 ldx <u0001
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
76 lda ,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
77 cmpa #C$CR
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
78 bne L00AE
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
79 L00DC clrb
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
80 os9 F$Exit
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
81 L00E0 lda #2
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
82 leax >HelpMsg,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
83 ldy #HelpMsgL
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
84 os9 I$WritLn
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
85 bra L00DC
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
86 L00EF leax u0003,u
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
87 lda #2
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
88 ldy <u0017
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
89 os9 I$Write
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
90 rts
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
91 L00FA bsr L00EF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
92 leax >NoOpen,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
93 ldy #NoOpenL
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
94 bra L00D1
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
95 L0106 lda <u0000
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
96 os9 I$Close
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
97 bsr L00EF
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
98 leax >NoPark,pcr
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
99 ldy #NoParkL
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
100 bra L00D1
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
101
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
102 * Skip spaces
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
103 L0117 lda ,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
104 cmpa #C$SPAC
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
105 bne L0121
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
106 leax 1,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
107 bra L0117
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
108 L0121 rts
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
109
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
110 L0122 clrb
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
111 leay u0003,u
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
112 pshs y
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
113 L0127 lda ,x+
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
114 cmpa #C$SPAC
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
115 bls L0132
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 incb
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
118 bra L0127
197
089587ab2d8f Enhanced comments
boisy
parents: 127
diff changeset
119 L0132 lda #PENTIR
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
120 sta ,y+
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
121 leax -1,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
122 bsr L0117
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
123 stx <u0001
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
124 clra
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
125 std <u0017,u
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
126 puls pc,x
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
127
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
128 emod
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
129 eom equ *
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
130 end
78c06629559c Added from OS-9 Level One V2 disk 2
boisy
parents:
diff changeset
131