annotate level1/cmds/free.asm @ 1166:bb618bed0bdc

Miscellaneous source improvements
author boisy
date Mon, 19 May 2003 11:06:54 +0000
parents c155aac72190
children 84ea83668304
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 * Free - Print disk free space
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 * 6 From Tandy OS-9 Level One VR 02.00.00
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 0
diff changeset
9 * 7 Y2K fixed
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 nam Free
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 ttl Print disk free space
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 * Disassembled 98/09/11 16:58:25 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 $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 edition set 7
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: 921
diff changeset
27 org 0
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u0000 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u0001 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 u0002 rmb 1
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
31 devpath rmb 1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 u0004 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 u0005 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0007 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u0008 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 u0009 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u000A rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u000B rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u000C rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u000D rmb 26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 u0027 rmb 54
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 u005D rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 u0061 rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u0063 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 u0064 rmb 19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 u0077 rmb 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 u007C rmb 26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 u0096 rmb 6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 u009C rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 u009E rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 u00A0 rmb 4544
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 name fcs /Free/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 fcb edition
921
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 919
diff changeset
56 IFNE DOHELP
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
57 HelpMsg fcb C$LF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 fcc "Use: free [/diskname]"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 fcc " tells how many disk sectors are unused"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 fcb C$CR
921
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 919
diff changeset
62 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 L0052 fcs /" created on:/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 L005F fcs "Capacity:"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 L0068 fcs " sectors ("
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 L0072 fcs "-sector clusters)"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 L0083 fcs " free sectors, largest block"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 L009F fcs " sectors"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
70 start leay $0D,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 sty <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 cmpd #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 beq L00E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 cmpa #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 beq L00E0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 cmpa #PDELIM
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 beq L00CC
921
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 919
diff changeset
79 L00BC equ *
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 919
diff changeset
80 IFNE DOHELP
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 919
diff changeset
81 leax >HelpMsg,pcr point to help message
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
82 ldy #64 max bytes
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
83 lda #$02 stderr
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
84 os9 I$WritLn write it
921
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 919
diff changeset
85 ENDC
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
86 lbra ExitOk and branch
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 L00CC leax -$01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 pshs x
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
89 os9 F$PrsNam parse the device name on cmd line
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 puls x
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
91 bcs L00BC branch if error
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 L00D7 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 lbsr L0218
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
94 * try decb here
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 subb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 bcc L00D7
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
97 L00E0 lda #PENTIR we want the entire device
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 lbsr L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 lbsr L0216
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 leax u000D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 stx <u0001
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
102 lda #READ. read mode
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
103 os9 I$Open open the device
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
104 sta <devpath save the path
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
105 bcs L00FF branch if error
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 leax <u005D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 ldy #$003F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 os9 I$Read
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
109 L00FF lbcs Exit
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 lbsr L0222
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 lda #$22
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 lbsr L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 leay <u007C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 lbsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 dec <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 leay >L0052,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 lbsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 lbsr L0293
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 lbsr L0222
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 leay >L005F,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 lbsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 leax <u005D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 lbsr L024F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 leay >L0068,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 lbsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 dec <u0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 ldd <u0063
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 clr ,-s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 leax ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 lbsr L024F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 leas $03,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 leay >L0072,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 lbsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 lbsr L0222
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 sta <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 std <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 sta <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 std <u000B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 sta <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 std <u0008
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
144 lda <devpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 pshs u
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
147 ldu #256
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
148 os9 I$Seek seek to bitmap sector
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 L016A leax >u009E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 ldd #$1000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 cmpd <u0061
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 bls L0178
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 ldd <u0061
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 L0178 leay d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 sty <u009C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 tfr d,y
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
158 lda <devpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 os9 I$Read
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
160 bcs Exit
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 L0186 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 bsr L01D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 stb ,-s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 beq L019C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 L018E ldd <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 addd <u0063
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 std <u0005
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 bcc L0198
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 inc <u0004
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 L0198 dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 bne L018E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 L019C leas $01,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 cmpx <u009C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 bcs L0186
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 ldd <u0061
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 subd #$1000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 std <u0061
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 bhi L016A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 bsr L01ED
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 leax u0004,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 lbsr L024F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 leay >L0083,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 bsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 leax u0007,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 lbsr L024F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 leay >L009F,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 bsr L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 bsr L0222
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
189 lda <devpath
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 os9 I$Close
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
191 bcs Exit
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
192 ExitOk clrb
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
193 Exit os9 F$Exit
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 L01D0 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 cmpa #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 beq L01ED
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 bsr L01D7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 L01D7 bsr L01D9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 L01D9 bsr L01DB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 L01DB lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 bcs L01ED
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 ldd <u000B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 addd <u0063
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 std <u000B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 bcc L01EB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 inc <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 L01EB puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 L01ED pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 ldd <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 cmpd <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 bhi L01FE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 bne L0204
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 ldb <u000C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 cmpb <u0009
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 bls L0204
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 L01FE sta <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 ldd <u000B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 std <u0008
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 L0204 clr <u000A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 clr <u000B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 clr <u000C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 puls pc,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 L020C lda ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 anda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 bsr L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 bpl L020C
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
230 L0216 lda #C$SPAC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 L0218 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 ldx <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 stx <u0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 puls pc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 L0222 pshs y,x,a
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
237 lda #C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 bsr L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 leax u000D,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 stx <u0001
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
241 ldy #80
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
242 lda #$01 standard output
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
243 os9 I$WritLn write the line
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 puls pc,y,x,a
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
245
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
246 L0237 fcb $98,$96,$80
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
247 fcb $0f,$42,$40
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
248 fcb $01,$86,$a0
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
249 fcb $00,$27,$10
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
250 fcb $00,$03,$e8
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
251 fcb $00,$00,$64
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
252 fcb $00,$00,$0a
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
253 fcb $00,$00,$01
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 924
diff changeset
254
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 L024F lda #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 pshs y,x,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 leay <L0237,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 clr <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 ldx $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 L025C lda #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 L025E inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 exg d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 subd $01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 exg d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 sbcb ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 bcc L025E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 bsr L02B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 exg d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 addd $01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 exg d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 adcb ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 leay $03,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 beq L0291
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 lda ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 cmpa #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 bne L0281
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 sta <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 L0281 bita #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 bne L025C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 dec ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 beq L025C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 lda #$2C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 bsr L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 bra L025C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 L0291 puls pc,y,x,b,a
919
35aaf7ec1c07 Added comments
boisy
parents: 200
diff changeset
289
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 L0293 leax <u0077,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 bsr L02C3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 bsr L029A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 L029A lda #$2F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 lbsr L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 clr <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 ldb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 lda #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 L02A5 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 subb #$64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 bcc L02A5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 bsr L02B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 L02AC lda #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 sta <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 L02B0 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 addb #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 bcc L02B0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 bsr L02B9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 L02B9 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 beq L02BE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 sta <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 L02BE tst <u0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 bne L02D6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 L02C3 ldb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 lda #$AE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 L02C7 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 subb #$64
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 bcc L02C7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 bsr L02AC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 bra L02AC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 L02D6 adda #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 lbra L0218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 end