annotate 3rdparty/packages/basic09/gfx.asm @ 482:e4b03c2a7bec

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