annotate 3rdparty/utils/boisy/mode.asm @ 1465:ebe9d1daa70c

port finished by Robert Gault
author boisy
date Mon, 15 Dec 2003 14:02:37 +0000
parents 0e08f0830fd8
children
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 * MODE - Multi-purpose setting utility
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * By: Boisy G. Pitre
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 * Southern Station, Box 8455
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Hattiesburg, MS 39406-8455
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * Internet: bgpitre@seabass.st.usm.edu
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9 * UPDATE LOG
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 * 01/26/92 Optimized code
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * 06/23/91 Added GetStt call to get window colors
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 * for complete restoration upon 40/80 column changes
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 * 07/07/91 Added 'D' option and expanded Window types from 40 and 80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 * to text and graphics types (1, 2, 5, 6, 7, 8)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 nam Mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 ttl Multi-purpose setting utility
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
1242
bdd2f61d5dbc Fixed case issues in several files (thanks Rodney H.)
boisy
parents: 0
diff changeset
26 mod Size,Name,Prgrm+Objct,ReEnt+1,Start,Fin
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 Name fcs /Mode/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
29 fcb $06
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
31 Helpmess fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 fcc /Mode - (C) 1992 Boisy G. Pitre/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
33 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 fcc / Usage: MODE <opts>/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
35 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 fcc / D - Display settings/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
37 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 fcc / R - RGB/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
39 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 fcc / C - Composite/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
41 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 fcc / M - Monochrome/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
43 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 fcc / F - Fast CPU/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
45 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 fcc / S - Slow CPU/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
47 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 fcc / # - Window type/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
49 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 Type1 fcc /Type 1 - 40 x 24 text/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
51 CR fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 Type2 fcc /Type 2 - 80 x 24 text/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
53 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 Type5 fcc /Type 5 - 640 x 192, 2 color graphics/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
55 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 Type6 fcc /Type 6 - 320 x 192, 4 color graphics/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
57 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 Type7 fcc /Type 7 - 640 x 192, 4 color graphics/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
59 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 Type8 fcc /Type 8 - 320 x 192, 16 color graphics/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
61 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 Helplen equ *-Helpmess
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
64 Fastmess fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 fcc /CPU is set to FAST (1.78Mhz)/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
66 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
68 Slowmess fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 fcc /CPU is set to SLOW (0.89Mhz)/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
70 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 BadParm fcc /: Bad parameter/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
73 fcb C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 VDG fcc /32 x 16 VDG text screen/
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
76 fdb C$LF,C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 W1 fcb $1b,$24,$1b,$20,$01,$00,$00,$28,$18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 W2 fcb $1b,$24,$1b,$20,$02,$00,$00,$50,$18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 W5 fcb $1b,$24,$1b,$20,$05,$00,$00,$50,$18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 W6 fcb $1b,$24,$1b,$20,$06,$00,$00,$28,$18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 W7 fcb $1b,$24,$1b,$20,$07,$00,$00,$50,$18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 W8 fcb $1b,$24,$1b,$20,$08,$00,$00,$28,$18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 Select fdb $1b21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 Colors rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 Stack rmb 200
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 Parms rmb 200
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 Fin equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 Start decb Decrement B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 beq Help if no params, show help
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 * Parsing routine
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 Parse2 lda ,x+ load A with next char.
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
97 Parse3 cmpa #C$CR is it a CR?
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 lbeq Done Yep, done
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
99 cmpa #C$SPAC is it a space?
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 beq Parse2 yep, get next char
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 cmpa #'1 Check for window types...
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 lbeq Win1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 cmpa #'2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 lbeq Win2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 cmpa #'5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 lbeq Win5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 cmpa #'6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 lbeq Win6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 cmpa #'7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 lbeq Win7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 cmpa #'8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 lbeq Win8
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
113 anda #$DF Mask to uppercase
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 cmpa #'D Check other opts...
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 lbeq Query
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 cmpa #'R
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 beq RGB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 cmpa #'C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 beq CMP
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 cmpa #'M
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 beq MONO
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 cmpa #'F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 lbeq Fast
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 cmpa #'S
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 lbeq Slow
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 * Bad parameter message
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 ldy #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 lda #2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 bcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 leax BadParm,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 ldy #25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 bcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 bra Parse2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141
1242
bdd2f61d5dbc Fixed case issues in several files (thanks Rodney H.)
boisy
parents: 0
diff changeset
142 Help leax Helpmess,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 ldy #Helplen
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 bra Done
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 RGB pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 ldx #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 bra Monitor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 CMP pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 ldx #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 bra Monitor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 MONO pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 ldx #$0002
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 Monitor lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 ldb #$92
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 os9 I$SetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 bcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 lbra Parse2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 * Exit routine
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 Done clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 Error os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 Win1 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 bsr Prepare
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 leax W1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 bra SendOut
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 Win2 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 bsr Prepare
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 leax W2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 bra SendOut
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 Win5 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 bsr Prepare
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 leax W5,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 bra SendOut
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 Win6 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 bsr Prepare
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 leax W6,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 bra SendOut
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 Win7 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 bsr Prepare
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 leax W7,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 bra SendOut
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 Win8 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 bsr Prepare
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 leax W8,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 bra SendOut
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 Prepare bsr GetColor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 SendOut ldy #9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 bcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 ldy #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 leax Colors,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 bcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 leax Select,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 ldy #2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 bcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 lbra Parse2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 GetColor ldb #$96
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 bcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 sta Colors,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 stx Colors+1,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 stb Colors+1,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 Fast pshs x
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
229 clr $FFD9
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 leax Fastmess,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 bra SpeedM
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 Slow pshs x
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
234 clr $FFD8
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 leax Slowmess,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 SpeedM ldy #32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 lbcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 lbra Parse2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 Query pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 leax CR,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 ldy #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 os9 I$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 lbcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 WinType lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 ldb #$93
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 os9 I$GetStt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 bcc Compare
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 cmpb #208
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 lbne Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 leax VDG,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 bra WriteIt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 Compare cmpa #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 beq T1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 cmpa #2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 beq T2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 cmpa #5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 beq T5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 cmpa #6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 beq T6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 cmpa #7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 beq T7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 T8 leax Type8,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 bra WriteIt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 T1 leax Type1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 bra WriteIt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 T2 leax Type2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 bra WriteIt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 T5 leax Type5,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 bra WriteIt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 T6 leax Type6,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 bra WriteIt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 T7 leax Type7,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 WriteIt lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 ldy #50
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 lbcs Error
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 puls X
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 lbra Parse2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 Size equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 end
1260
0e08f0830fd8 Changes pointed out by Rodney H.
boisy
parents: 1242
diff changeset
293