annotate level1/modules/co80.asm @ 1512:f3557a63b11c

Rodney's improvements
author boisy
date Sun, 18 Jan 2004 15:08:52 +0000
parents 6cd590fc076f
children e19a38f50c3a
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 * CO80 - WordPak 80-RS co-driver for CCIO
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 *
1499
6cd590fc076f Fixed comments
boisy
parents: 1287
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
6cd590fc076f Fixed comments
boisy
parents: 1287
diff changeset
7 * Comment
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1499
6cd590fc076f Fixed comments
boisy
parents: 1287
diff changeset
9 * 2 ????/??/??
6cd590fc076f Fixed comments
boisy
parents: 1287
diff changeset
10 * From Tandy OS-9 Level One VR 02.00.00
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
11 *
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
12 * 2003/09/22 Rodney Hamilton
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
13 * recoded dispatch table fcbs
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 nam CO80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 ttl WordPak 80-RS co-driver for CCIO
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 * Disassembled 98/08/23 17:58:20 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 tylg set Systm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 atrv set ReEnt+rev
1287
10957d54bf16 Made all modules rev 0
boisy
parents: 201
diff changeset
26 rev set $00
201
668388823050 Fixed headers to be consistent
boisy
parents: 0
diff changeset
27 edition set 2
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 u0000 rmb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 fcb $06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 name fcs /CO80/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
38 start equ *
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
39 Init lbra L0022
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
40 Write lbra L0083
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
41 GetStat lbra L0054
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
42 SetStat lbra L007F
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
43 Term lbra L004A
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
44
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
45 * Init
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 L0022 ldx #$FF78
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 lda #$06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 lda #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 clr ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 lda #$0E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 clr ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 lbsr L0152
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 lbsr L0229
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 ldd #$07D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 lbsr L0189
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 ldb <$70,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 orb #$04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 bra L004F
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
63 * Term
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 L004A ldb <$70,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 andb #$FB
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 L004F stb <$70,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
69 * GetStat
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 L0054 cmpa #$25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 bne L007F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 ldy $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 ldb <$58,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 addb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 std $06,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 ldb <$59,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 addb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 std $04,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 ldx #$FF78
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 lda #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 lbsr L0174
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 lbsr L0174
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 sta $01,y
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
88 * no operation entry point
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 L007D clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
91 * SetStat
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 L007F ldb #E$UnkSvc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
95 * Write
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 L0083 ldx #$FF78
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 cmpa #$0E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 bcs L00B6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 cmpa #$1E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 bcs L007D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 lbcs L01F2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 cmpa #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 bcs L0106
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 cmpa #$C0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 bls L00A6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 anda #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 suba #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 cmpa #$19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 bhi L00B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 bra L0106
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 L00A6 cmpa #$AA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 bcs L00B2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 ora #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 anda #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 cmpa #$1A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 bcc L0106
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 L00B2 lda #$7F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 bra L0106
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 L00B6 leax >L00C5,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 lsla
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 ldd a,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 leax d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 ldx #$FF78
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
127
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
128 * display functions dispatch table
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
129 L00C5 fdb L007D-L00C5 $ffb8 $00:no-op (null)
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
130 fdb L0152-L00C5 $008d $01:HOME cursor
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
131 fdb L01A2-L00C5 $00dd $02:CURSOR XY
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
132 fdb L0179-L00C5 $00b4 $03:ERASE LINE
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
133 fdb L017B-L00C5 $00b6 $04:ERASE TO EOL
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
134 fdb L0211-L00C5 $014c $05:CURSOR ON/OFF
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
135 fdb L0115-L00C5 $0050 $06:CURSOR RIGHT
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
136 fdb L007D-L00C5 $ffb8 $07:no-op (bel:handled in CCIO)
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
137 fdb L00E1-L00C5 $001c $08:CURSOR LEFT
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
138 fdb L00F3-L00C5 $002e $09:CURSOR UP
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
139 fdb L0121-L00C5 $005c $0A:CURSOR DOWN
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
140 fdb L0186-L00C5 $00c1 $0B:ERASE TO EOS
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
141 fdb L0184-L00C5 $00bf $0C:CLEAR SCREEN
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
142 fdb L0101-L00C5 $003c $0D:RETURN
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
143
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
144 * $08 - cursor left
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
145 L00E1 ldd <$58,u
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
146 bne L00E8
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
147 clrb
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
148 rts
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 L00E8 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 bge L00EE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 ldb #$4F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 L00EE std <$58,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 bra L014F
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
155
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
156 * $09 - cursor up
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
157 L00F3 lda <$58,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 beq L00FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 sta <$58,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 lbra L01CC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 L00FF clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
164
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
165 * $0D - move cursor to start of line (carriage return)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 L0101 clr <$59,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 bra L014C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 L0106 ora <$5A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 bsr L0174
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 ldb #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 stb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 sta ,x
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
175
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
176 * $06 - cursor right
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
177 L0115 inc <$59,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 lda <$59,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 cmpa #$4F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 ble L014C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 bsr L0101
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
182
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
183 * $0A - cursor down (line feed)
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
184 L0121 lda <$58,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 cmpa #$17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 bge L012E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 sta <$58,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 bra L014F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 L012E ldd <$54,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 lbsr L01DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 ldd <$54,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 addd #$0050
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 bsr L0161
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 std <$54,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 bsr L018E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 ldd <$54,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 bsr L016B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 lda #$08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 L014C lda <$58,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 L014F lbra L01CC
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
204
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
205 * $01 - home cursor
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 L0152 clr <$58,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 clr <$59,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 ldd <$54,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 std <$56,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 lbra L01DC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 L0161 cmpd #$07D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 blt L016A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 subd #$07D0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 L016A rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 L016B lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 lsra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 rorb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 L0174 lda $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 bpl L0174
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
227
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
228 * $03 - erase line
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
229 L0179 bsr L0101 do a CR
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
230 L017B lda <$58,u
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 inca
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
232 ldb #80 line length
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 bra L0189
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
235
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
236 * $0C - clear screen
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
237 L0184 bsr L0152 do home cursor, then erase to EOS
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
238
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
239 * $0B - erase to end of screen
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
240 L0186 ldd #$0780
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 L0189 addd <$54,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 bsr L0161
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 L018E bsr L016B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 bsr L0174
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 lda #$0B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 stb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 lda #$0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 L01A0 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
254
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
255 * $02 XX YY - move cursor to col XX-32, row YY-32
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
256 L01A2 leax >L01B0,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 L01A8 stx <$26,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 stb <$25,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 L01B0 ldx #$FF78
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 lda <$29,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 ldb <$28,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 subb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 blt L01A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 cmpb #$4F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 bgt L01A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 suba #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 blt L01A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 cmpa #$17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 bgt L01A0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 std <$58,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 L01CC ldb #$50
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 addb <$59,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 adca #$00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 addd <$54,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 bsr L0161
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 std <$56,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 L01DC pshs b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 bsr L0174
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 lda #$0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 lda ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 lda #$09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 sta $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 lda ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 L01F2 cmpa #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 bne L0201
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 lda <$29,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 cmpa #$21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 beq L0205
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 beq L020C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 L0201 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 ldb #E$Write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 L0205 lda #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 sta <$5A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 L020C clr <$5A,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 L020F clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 rts
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
310
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
311 * $05 XX - set cursor off/on/color per XX-32
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
312 L0211 leax >L0219,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 ldb #$01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 bra L01A8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 L0219 ldx #$FF78
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 lda <$29,u
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
317 cmpa #$20 cursor code valid?
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
318 blt L0201 no, error
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 beq L022D
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
320 cmpa #$2A color code in range?
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
321 bgt L020F no, ignore
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
322 L0229 lda #$05 cursor on (all colors=on)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 bra L022F
1512
f3557a63b11c Rodney's improvements
boisy
parents: 1499
diff changeset
324 L022D lda #$45 cursor off
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 L022F ldb #$0C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 stb $01,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 end
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334