annotate 3rdparty/packages/basic09/gfx.asm @ 1331:0a3500c747de

Fixed ANOTHER bug
author boisy
date Sun, 07 Sep 2003 00:53:51 +0000
parents 57f23da9790a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
1 ********************************************************************
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
2 * GFX - CoCo 2 graphics subroutine module
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
3 *
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
4 * $Id$
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
5 *
1326
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
7 * Comment
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1326
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
9 * 1 ????/??/??
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
10 * From Tandy OS-9 Level One VR 02.00.00.
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
11
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
12 nam GFX
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
13 ttl CoCo 2 graphics subroutine module
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
14
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
15 * Disassembled 98/09/25 21:47:16 by Disasm v1.6 (C) 1988 by RML
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
16
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
17 ifp1
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
18 use defsfile
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
19 endc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
20
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
21 tylg set Sbrtn+Objct
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
22 atrv set ReEnt+rev
1326
57f23da9790a Changed headers
boisy
parents: 482
diff changeset
23 rev set $00
482
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
24 edition set 1
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
25
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
26 mod eom,name,tylg,atrv,start,size
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
27 u0000 rmb 0
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
28 size equ .
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
29
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
30 name fcs /GFX/
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
31 fcb edition
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
32
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
33 FuncTbl fdb Alpha-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
34 fcc "Alpha"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
35 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
36 fdb Circle-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
37 fcc "Circle"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
38 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
39 fdb Clear-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
40 fcc "Clear"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
41 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
42 fdb CColor-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
43 fcc "Color"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
44 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
45 fdb GColr-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
46 fcc "GColr"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
47 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
48 fdb GLoc-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
49 fcc "GLoc"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
50 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
51 fdb JoyStk-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
52 fcc "JoyStk"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
53 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
54 fdb Line-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
55 fcc "Line"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
56 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
57 fdb Mode-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
58 fcc "Mode"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
59 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
60 fdb Move-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
61 fcc "Move"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
62 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
63 fdb Point-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
64 fcc "Point"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
65 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
66 fdb Quit-FuncTbl
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
67 fcc "Quit"
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
68 fcb $FF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
69 fdb $0000
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
70
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
71 stkdepth set 9
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
72
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
73 start leas -stkdepth,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
74 ldd 2+stkdepth,s get parameter count
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
75 beq BadFunc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
76 tsta param count greater than 255?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
77 bne BadFunc yep, branch to error
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
78 leau >FuncTbl,pcr point to function pointer table
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
79 L007D ldy ,u++ get pointer to function
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
80 beq NoFunc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
81
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
82 * Compare passed function name to our list
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
83 ldx 4+stkdepth,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
84 L0084 lda ,x+ get passed param char
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
85 eora ,u+ XOR it with compared param char
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
86 anda #$DF make case same
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
87 beq L0094 branch if equal
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
88 leau -1,u back up one
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
89 L008E tst ,u+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
90 bpl L008E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
91 bra L007D
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
92 L0094 tst -1,u
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
93 bpl L0084
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
94 tfr y,d put funcion pointer in D
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
95 leay >FuncTbl,pcr point Y to table
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
96 leay d,y get function address
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
97 leax ,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
98 leau <$11,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
99 ldd stkdepth+2,s put parameter count in D
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
100 jmp ,y
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
101
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
102 NoFunc ldb #E$NoRout
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
103 bra L00AF
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
104 BadFunc ldb #E$ParmEr $38
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
105 L00AF coma
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
106 leas stkdepth,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
107 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
108
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
109 * Each subroutine enters with the following parameters
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
110 * B = parameter count
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
111 * X = temporary stack
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
112 * U = pointer to size of first parameter
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
113
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
114 Mode lda #$0F
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
115 bra L00B9
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
116
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
117 Move lda #$15
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
118 L00B9 cmpb #$03 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
119 bne BadFunc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
120 bra L010B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
121
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
122 CColor lda #$11
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
123 bra L00DE
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
124
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
125 Point cmpb #$03 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
126 beq L00D4
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
127 cmpb #$04
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
128 bne BadFunc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
129 leau <$19,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
130 lbsr L015E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
131 leau <$11,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
132 L00D4 lda #$18
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
133 bra L010B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
134
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
135 Clear cmpb #$01 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
136 beq L00E4
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
137 lda #$10
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
138 L00DE cmpb #$02
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
139 bne BadFunc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
140 bra L0136
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
141
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
142 L00E4 lda #$13
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
143 bra L0142
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
144
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
145 Line cmpb #$06 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
146 bhi BadFunc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
147 cmpb #$03
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
148 bcs L015B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
149 bitb #$01
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
150 bne L0103
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
151 leau <$19,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
152 cmpb #$04
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
153 beq L00FE
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
154 leau <$21,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
155 L00FE bsr L015E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
156 leau <$11,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
157 L0103 cmpb #$04
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
158 bls L0109
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
159 bsr L0164
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
160 L0109 lda #$16
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
161 L010B sta ,x+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
162 bsr L016E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
163 bsr L016E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
164 bra L0144
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
165
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
166 Circle cmpb #$05 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
167 bhi L015B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
168 cmpb #$02
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
169 bcs L015B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
170 bitb #$01
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
171 beq L012E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
172 leau <$15,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
173 cmpb #$03
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
174 beq L0129
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
175 leau <$1D,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
176 L0129 bsr L015E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
177 leau <$11,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
178 L012E cmpb #$03
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
179 bls L0134
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
180 bsr L0164
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
181 L0134 lda #$1A
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
182 L0136 sta ,x+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
183 bsr L016E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
184 bra L0144
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
185
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
186 Alpha lda #$0E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
187 bra L0142
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
188
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
189 Quit lda #$12
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
190 L0142 sta ,x+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
191 L0144 bsr L0149
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
192 leas stkdepth,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
193 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
194
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
195 L0149 tfr x,d
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
196 leax 2,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
197 pshs x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
198 subd ,s++
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
199 tfr d,y
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
200 lda #1
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
201 os9 I$Write
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
202 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
203
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
204 L0159 leas $06,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
205 L015B lbra BadFunc
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
206 L015E lda #$11
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
207 sta ,x+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
208 bra L016E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
209 L0164 puls y
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
210 lda #$15
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
211 sta ,x+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
212 bsr L016E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
213 pshs y
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
214 L016E pshs y,b,a
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
215 ldd [,u++]
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
216 sta ,x+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
217 pulu y
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
218 leay -$01,y
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
219 beq L0183
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
220 leay -$01,y
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
221 bne L0159
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
222 tsta
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
223 bne L0159
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
224 stb -$01,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
225 L0183 puls pc,y,b,a
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
226
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
227 GLoc cmpb #$02 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
228 bne L015B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
229 ldx <$13,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
230 leax -$02,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
231 bne L015B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
232 lda #1 standard out
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
233 ldb #SS.DStat
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
234 os9 I$GetStt
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
235 bcs L019C
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
236 stx [<$11,s]
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
237 L019C leas stkdepth,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
238 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
239
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
240 GColr cmpb #2 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
241 beq L01AD
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
242 cmpb #$04
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
243 bne L015B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
244 bsr L0164
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
245 bsr L0149
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
246 bcs L019C
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
247 L01AD lda #$01
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
248 ldb #$12
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
249 os9 I$GetStt
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
250 bcs L019C
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
251 tfr a,b
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
252 bra L01ED
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
253 L01BA leau $04,u
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
254 pshs u,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
255 ldx -$02,u
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
256 ldu -$04,u
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
257 leax -$01,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
258 beq L01CC
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
259 leax -$01,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
260 bne L0159
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
261 clr ,u+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
262 L01CC stb ,u+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
263 puls pc,u,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
264
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
265 JoyStk cmpb #5 correct number of params?
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
266 bne L015B
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
267 clr ,x+
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
268 bsr L016E
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
269 ldx -2,x
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
270 lda #1
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
271 ldb #SS.Joy
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
272 os9 I$GetStt
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
273 bcs L019C
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
274 tfr a,b
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
275 bsr L01BA
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
276 tfr x,d
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
277 bsr L01BA
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
278 tfr y,d
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
279 L01ED bsr L01BA
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
280 leas stkdepth,s
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
281 rts
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
282
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
283 emod
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
284 eom equ *
e4b03c2a7bec Removing D64 files to consolidate
boisy
parents:
diff changeset
285 end