annotate 3rdparty/utils/dasm/dasm.asm @ 1797:3084051a2863

Updated
author boisy
date Mon, 11 Apr 2005 15:42:16 +0000
parents 6641a883d6b0
children b8c7b7fbf3c9
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 * OS9 DASM VERSION 1.0 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 * (C)1992 J.R.COLLYER *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 *****************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 use os9defs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 begin mod len,name,prgrm+objct,reent+1,entry,dsize
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 lf equ $0A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 cr equ $0D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 sp equ $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 mask equ $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 on equ $FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 stacksz equ 200
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 buffsiz equ 24576
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 pagesiz equ 8192
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 pagenum equ 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 path rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 dpath rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 mode rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 pflag rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 bflag rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 count rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 errnum rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 listflg rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 linkcnt rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 address rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 saveadr rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 auxaddr rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 endaddr rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 moduloc rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 pointer rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 endbuff rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 counter rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 linkaddr rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 curstack rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 lststack rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 firstack rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 branchad rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 offsopt rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 offsflg rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 gimicnt rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 gimidat rmb 3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 gimisys rmb 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 xaddress rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 pcaller rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 peflg rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 psflg rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 paddress rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 pendaddr rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 turn rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 status rmb 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 eko rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 rmb 27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 linknam rmb stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 iobuff rmb stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 adrstack rmb stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 buffer rmb buffsiz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 rmb stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 rmb stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 dsize equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 name fcs /Dasm/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 fcc /(C)1992 J.R.COLLYER/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 fcb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 entry decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 beq noparams
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 lbra params
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 noparams incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 stb path
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 leay copyr,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 bsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 lbsr init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 centry leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 bsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 lbsr getsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 clr eko,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 lbsr setsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 leax iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 inkey ldb #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 os9 i$getstt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 bcs inkey
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 ldy #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 os9 i$read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 lbcs exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 leay commands,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 cmpa #'a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 blo cloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 suba #sp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94 cloop leay 3,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 lda ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96 beq errcom
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 cmpa ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 bne cloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 ldd 1,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 leay begin,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 jsr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 bra centry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 errcom bsr comerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 bra centry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105 comerr bsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 leay whatmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107 bsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 errmsg stb errnum
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
110 leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
111 bsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
112 ldb errnum
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
113 lda #2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 os9 f$perr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 crlf lda #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
118 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
119 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
120 leay iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
121 echo pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 tfr y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
123 tfr y,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
124 ldy #0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 outsize ldb ,u+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
126 beq print
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
127 leay 1,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
128 bra outsize
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
129 print lda path
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
130 os9 i$writln
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
131 lbcs fatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
132 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
133 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 input leax iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 ldy #stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 os9 i$readln
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 bcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
140 skip lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
141 cmpa #sp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 beq skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 commons bsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
146 bsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 bsr input
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
148 leax iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
149 bsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
150 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
151 getsta leax status,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
152 ldd #0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
153 os9 i$getstt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
154 lbcs exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
155 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
156 setsta os9 i$setstt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
157 lbcs exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 echoon bsr getsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
160 inc eko,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
161 bra setsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 shell leay shellmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 bsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 tfr x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 tfr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 shell2 leay 1,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 bne shell2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 leax rshell,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
175 os9 f$fork
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
176 lbcs fatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
177 os9 f$wait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
178 lbcs fatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
179 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
180 sheout rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
181 link leay linkmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 bsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 beq sheout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
185 cmpa #'.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 beq setlinke
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 cmpa #'@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
188 beq setlinkx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 pelink clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
190 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
192 os9 f$link
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 lbcs lfatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 tfr u,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 ldd 2,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 subd #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
198 stx moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
199 sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 sty linkaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 leay d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 sty endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
203 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
204 pshs x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 os9 f$prsnam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 puls x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 lbcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
208 pshs x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 leay linknam,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 os9 f$cmpnam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 puls x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
212 bcs savlnam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
213 lda linkcnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 cmpa #on
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 bhs lnkout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 inc linkcnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 lnkout rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 savlnam pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 clr linkcnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 leay linknam,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 putkinam lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 beq sitit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 sta ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 bra putkinam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 sitit leay -1,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 lda ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 ora #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 sta ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 puls x,pc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 setlinkx ldy linkaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 setlinke ldy moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 unlink lbsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 tst linkcnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 beq notlink
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 dec linkcnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 leay ulinkmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 exg u,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 ldu moduloc,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 os9 f$unlink
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 bcs fatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 notlink leay notlkmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 fatal puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 lbra errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 lfatal puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 lbra errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 quit leay exitmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 ora #sp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 cmpa #'y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 beq exexit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 exexit clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 exit os9 f$exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 help lbsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 leay helpmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
269 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 jump leay jumpmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
271 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
272 pjump leay address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
273 sty auxaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
274 bsr ejaddr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
275 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
276 bne adrerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
277 ldd address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
278 std paddress,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
279 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
280 bne pjump1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
281 bra pjump2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
282 pjump1 pshs d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
283 ldd moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
284 addd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
285 std address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
286 pjump2 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
287 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
288 ejaddr cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
289 beq addrerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
290 ldd ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
291 std saveadr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
292 clr count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
293 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
294 bsr hexcalc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
295 tst count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
296 beq addrerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
297 clr count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
298 bsr hexcalc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
299 tst count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
300 beq addrerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
301 stb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
302 clr count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
303 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
304 bsr hexcalc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
305 tst count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
306 beq addrerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
307 clr count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
308 bsr hexcalc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
309 tst count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
310 beq addrerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
311 stb ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
312 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
313 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
314 hexcalc lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
315 cmpa #'0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
316 blo jout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
317 cmpa #'9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
318 bls makebin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
319 anda #%11011111
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
320 cmpa #'A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
321 blo jout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
322 cmpa #'F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
323 bhi jout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
324 suba #7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
325 makebin suba #'0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
326 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
327 lda #16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
328 mul
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
329 addb ,s+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
330 leax 1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
331 inc count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
332 jout rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
333 addrerr ldd saveadr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
334 ldy auxaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
335 std ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
336 bckcall clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
337 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
338 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
339 adrerr tst pcaller,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
340 bne bckcall
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
341 leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
342 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
343 leay adrmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
344 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
345 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
346 chngend leay endadmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
347 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
348 pchgend leay endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
349 sty auxaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
350 bsr ejaddr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
351 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
352 bne adrerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
353 ldd endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
354 std pendaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
355 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
356 bne pchg1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
357 pchg clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
358 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
359 pchg1 pshs d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
360 ldd moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
361 addd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
362 std endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
363 bra pchg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
364 setmode leay getmode,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
365 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
366 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
367 leau mode,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
368 bsr onoff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
369 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
370 tellmode leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
371 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
372 tst mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
373 bmi pmon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
374 leay modemsg2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
375 bra pmode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
376 pmon leay modemsg1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
377 pmode lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
378 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
379 printer leay prtermsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
380 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
381 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
382 leau pflag,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
383 bsr onoff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
384 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
385 tellprt leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
386 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
387 tst pflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
388 bmi ponm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
389 leay scrmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
390 bra pp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
391 ponm leay prtmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
392 pp lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
393 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
394 onoff cmpa #'+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
395 beq iton
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
396 cmpa #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
397 bne exonoff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
398 clr ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
399 bra exonoff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
400 iton lda #on
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
401 sta ,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
402 exonoff rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
403 bcom leay buffmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
404 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
405 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
406 beq tellb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
407 cmpa #'.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
408 beq buffe
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
409 cmpa #'@
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
410 beq buffx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
411 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
412 orb #sp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
413 cmpb #'c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
414 beq clsbuff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
415 cmpb #'l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
416 beq list
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
417 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
418 leau bflag,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
419 bsr onoff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
420 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
421 tellb leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
422 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
423 tst bflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
424 bmi bonm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
425 leay buff1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
426 bra bmexit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
427 bonm leay buff2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
428 bmexit lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
429 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
430 time tst listflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
431 beq timeout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
432 ldx #$3FFF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
433 timel leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
434 bne timel
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
435 timeout rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
436 list lda #on
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
437 sta listflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
438 bsr listbuff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
439 clr listflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
440 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
441 buffe leay buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
442 bra buffex
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
443 buffx ldy xaddress,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
444 buffex sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
445 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
446 clsbuff leax buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
447 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
448 clsloop clr ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
449 cmpx pointer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
450 blo clsloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
451 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
452 stx pointer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
453 clr counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
454 clr 1+counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
455 clr mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
456 clr bflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
457 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
458 listbuff ldx counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
459 cmpx #0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
460 beq listout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
461 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
462 leay buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
463 bra lbl1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
464 lbloop puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
465 lbl0 lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
466 bne lbl0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
467 lbl1 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
468 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
469 bsr time
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
470 ldx counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
471 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
472 stx counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
473 cmpx #0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
474 bne lbloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
475 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
476 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
477 stx counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
478 listout rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
479 back lbsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
480 clr mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
481 leax iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
482 ldd address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
483 subd #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
484 tfr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
485 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
486 beq back2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
487 lbsr setoffs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
488 back2 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
489 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
490 ascii lbsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
491 ascii2 clr mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
492 leax iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
493 ldd address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
494 tfr d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
495 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
496 beq ascii3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
497 lbsr setoffs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
498 ascii3 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
499 lbsr space1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
500 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
501 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
502 lbsr outhex1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
503 lbsr space2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
504 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
505 cmpb #'z+1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
506 bhs dot
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
507 cmpb #sp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
508 blo dot
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
509 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
510 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
511 dot ldb #'.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
512 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
513 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
514 read leay fname,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
515 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
516 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
517 beq readout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
518 lda #exec.+read.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
519 os9 i$open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
520 lbcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
521 sta dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
522 bsr moduread
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
523 bsr moduadrs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
524 clr bflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
525 clr mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
526 readout rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
527 moduread leax buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
528 ldy #buffsiz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
529 os9 i$read
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
530 bcs chkeof
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
531 lda dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
532 os9 i$close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
533 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
534 chkeof cmpb #e$eof
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
535 lbne errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
536 lda dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
537 os9 i$close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
538 lbcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
539 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
540 moduadrs leax buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
541 stx moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
542 ldd 2,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
543 subd #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
544 leay d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
545 sty endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
546 ldd 9,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
547 leay d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
548 sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
549 sty xaddress,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
550 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
551 write leay fname,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
552 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
553 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
554 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
555 beq writout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
556 cmpa #'*
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
557 beq makefile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
558 bra openfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
559 makefile leax 1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
560 lbsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
561 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
562 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
563 beq writout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
564 lda #updat.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
565 ldb #$0B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
566 os9 i$create
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
567 lbcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
568 sta dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
569 bsr outdisk
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
570 outwrit lda dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
571 os9 i$close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
572 lbcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
573 clr mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
574 clr bflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
575 writout rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
576 openfile lda #updat.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
577 os9 i$open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
578 lbcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
579 sta dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
580 bsr seek
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
581 bsr outdisk
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
582 bra outwrit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
583 seek pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
584 lda dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
585 ldb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
586 os9 i$getstt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
587 lbcs fatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
588 os9 i$seek
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
589 lbcs fatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
590 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
591 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
592 chkbuff ldx pointer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
593 cmpx endbuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
594 bhs outb2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
595 leay iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
596 bufloop lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
597 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
598 beq bnl
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
599 bra bufloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
600 bnl leay pointer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
601 stx ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
602 ldx counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
603 leax 1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
604 stx counter,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
605 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
606 outb2 leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
607 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
608 leay bfull,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
609 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
610 clr bflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
611 clr mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
612 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
613 outdisk lda dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
614 ldb path
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
615 sta path
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
616 stb dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
617 lbsr listbuff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
618 lda path
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
619 ldb dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
620 sta dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
621 stb path
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
622 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
623 branch lbsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
624 ldx curstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
625 cmpx lststack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
626 beq nomove
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
627 ldy address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
628 sty ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
629 stx curstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
630 ldx branchad,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
631 stx address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
632 lbra ddentry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
633 nomove leay stackms1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
634 nomove1 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
635 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
636 return lbsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
637 ldx curstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
638 cmpx firstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
639 bhi yesmove
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
640 leay stackms2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
641 bra nomove1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
642 yesmove ldy ,--x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
643 stx curstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
644 sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
645 lbra ddentry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
646 leay stackms2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
647 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
648 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
649 offscom leay offsmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
650 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
651 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
652 leau offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
653 lbsr onoff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
654 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
655 telloffs leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
656 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
657 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
658 bmi offson
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
659 leay offsmsg2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
660 bra offsmode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
661 offson leay offsmsg1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
662 offsmode lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
663 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
664 gimicom leay gimimsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
665 lbsr commons
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
666 clr gimicnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
667 leay gimidat,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
668 gimiloop lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
669 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
670 beq gimichk
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
671 cmpa #sp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
672 beq gimiloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
673 cmpa #',
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
674 beq gimiloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
675 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
676 clr count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
677 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
678 lbsr hexcalc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
679 tst count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
680 beq gimibad
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
681 clr count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
682 lbsr hexcalc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
683 tst count
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
684 beq gimibad
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
685 cmpb #mask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
686 bls nologic
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
687 orb #mask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
688 andb #mask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
689 nologic stb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
690 inc gimicnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
691 ldb #pagenum
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
692 cmpb gimicnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
693 bne gimiloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
694 gimichk tst gimicnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
695 beq gimiprt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
696 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
697 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
698 gimiloo addd #pagesiz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
699 dec gimicnt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
700 bne gimiloo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
701 leay gimidat,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
702 exg d,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
703 ldx #0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
704 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
705 leau buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
706 swi2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
707 fcb $1B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
708 lbcs fatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
709 puls u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
710 gimiprt leay buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
711 sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
712 leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
713 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
714 lbra ascii2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
715 gimibad leay prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
716 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
717 ldb turn,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
718 eorb #on
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
719 stb turn,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
720 beq nxturn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
721 leay gimimsg1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
722 gbadout lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
723 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
724 nxturn leay gimimsg2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
725 bra gbadout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
726 init ldb #100
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
727 leax dpath,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
728 initloop clr ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
729 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
730 bne initloop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
731 leax buffer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
732 stx pointer,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
733 ldd #buffsiz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
734 leay d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
735 sty endbuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
736 ldd #$FFEF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
737 std endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
738 prgmdat lda #mask top page
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
739 ldb #8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
740 leay gimidat,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
741 prgdatlp sta ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
742 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
743 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
744 bne prgdatlp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
745 lda #on
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
746 sta turn,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
747 leay dasmmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
748 leax linknam,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
749 stuff1 lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
750 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
751 bne stuff1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
752 initstak leax adrstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
753 stx curstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
754 stx firstack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
755 ldd #stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
756 leay d,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
757 sty lststack,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
758 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
759 setoffs pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
760 lda #on
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
761 sta offsflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
762 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
763 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
764 dentry lbsr echoon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
765 ddentry ldy address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
766 leax iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
767 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
768 ldd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
769 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
770 beq dentry2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
771 bsr setoffs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
772 dentry2 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
773 lbsr space1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
774 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
775 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
776 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
777 bita #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
778 lbmi grp80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
779 anda #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
780 lbeq grp0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
781 cmpa #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
782 lbeq grp10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
783 cmpa #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
784 lbeq grp20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
785 cmpa #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
786 lbeq grp30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
787 cmpa #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
788 lbeq grp60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
789 cmpa #$70
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
790 lbeq grp70
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
791 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
792 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
793 andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
794 lbsr set
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
795 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
796 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
797 andb #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
798 cmpb #$50
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
799 beq grp50
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
800 lda #'a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
801 bra save
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
802 grp50 lda #'b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
803 save sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
804 next sty address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
805 lbsr crlf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
806 options tst pflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
807 beq chkdisk
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
808 bsr hardprt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
809 chkdisk tst bflag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
810 beq chkauto
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
811 bsr diskwrt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
812 chkauto tst mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
813 bmi automat
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
814 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
815 automat ldd address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
816 cmpd endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
817 lblo ddentry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
818 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
819 hardprt leax pmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
820 lda #write.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
821 os9 i$open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
822 bcc hard
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
823 cmpb #246
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
824 beq hardprt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
825 lbra errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
826 hard sta dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
827 hard1 lda dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
828 leax iobuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
829 ldy #stacksz
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
830 os9 i$writln
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
831 bcc hardout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
832 cmpb #246
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
833 beq hard1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
834 lbra errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
835 hardout lda dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
836 os9 i$close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
837 lbcs errmsg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
838 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
839 diskwrt lbsr chkbuff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
840 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
841 params ldb #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
842 stb path
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
843 pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
844 lbsr init
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
845 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
846 ldb #on
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
847 stb mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
848 stb pcaller,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
849 getparm lbsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
850 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
851 cmpa #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
852 lbne syntax
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
853 lbsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
854 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
855 ora #sp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
856 cmpa #'o
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
857 bne chkend
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
858 bsr chksub
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
859 stb offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
860 bra getparm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
861 chkend cmpa #'e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
862 bne chkstart
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
863 lbsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
864 lbsr pchgend
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
865 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
866 lbne syntaxa
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
867 bsr chksub
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
868 stb peflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
869 bra getparm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
870 chkstart cmpa #'s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
871 lbhi syntax
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
872 bne chkmem
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
873 lbsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
874 lbsr pjump
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
875 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
876 lbne syntaxa
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
877 bsr chksub
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
878 stb psflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
879 bra getparm
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
880 chksub clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
881 decb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
882 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
883 chkmem cmpa #'m
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
884 bne chkread
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
885 bra penter
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
886 chkread cmpa #'r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
887 beq inputr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
888 cmpa #'l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
889 lbne syntax
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
890 lbsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
891 bsr psnam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
892 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
893 pshs x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
894 os9 f$link
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
895 bcs pfatal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
896 puls x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
897 bsr psnam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
898 lbsr pelink
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
899 bra penter
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
900 pfatal puls x,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
901 lbra pexit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
902 psnam pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
903 lda #'/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
904 cmpa ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
905 beq skip2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
906 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
907 sta ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
908 skip2 os9 f$prsnam
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
909 bcs syntax
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
910 lda #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
911 sta ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
912 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
913 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
914 inputr lbsr skip
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
915 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
916 cmpa #cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
917 beq syntax
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
918 lda #exec.+read.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
919 os9 i$open
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
920 bcs pexit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
921 sta dpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
922 lbsr moduread
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
923 lbsr moduadrs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
924 penter tst psflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
925 beq pent10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
926 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
927 bne pent05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
928 ldd paddress,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
929 std address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
930 bra pent10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
931 pent05 ldd paddress,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
932 pshs d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
933 ldd moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
934 addd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
935 std address,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
936 bra pent10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
937 pent20 lbsr ddentry
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
938 bra pnoerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
939 pent10 tst peflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
940 beq pent20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
941 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
942 bne pent15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
943 ldd pendaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
944 std endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
945 bra pent20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
946 pent15 ldd pendaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
947 pshs d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
948 ldd moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
949 addd ,s++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
950 std endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
951 bra pent20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
952 syntax leay usemsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
953 syntax1 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
954 bra pnoerr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
955 syntaxa leay usemsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
956 lbsr echo
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
957 leay adrmsg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
958 bra syntax1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
959 pexit lda #2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
960 os9 f$perr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
961 pnoerr clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
962 os9 f$exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
963 grp0 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
964 bsr set
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
965 bsr space2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
966 g00 bsr dsign
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
967 g01 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
968 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
969 lbsr outhex1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
970 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
971 grp20 bsr sub20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
972 g20 bsr space2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
973 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
974 sex
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
975 lbra sbr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
976 sub20 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
977 leay table2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
978 lda #4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
979 bsr match
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
980 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
981 bsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
982 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
983 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
984 grp70 andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
985 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
986 bsr set
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
987 bsr space2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
988 g70 bsr esign
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
989 g71 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
990 ldd ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
991 bsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
992 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
993 set leay table1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
994 lda #4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
995 bsr match
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
996 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
997 bsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
998 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
999 match cmpb ,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1000 beq itis
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1001 leay a,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1002 bra match
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1003 itis leay 1,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1004 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1005 space2 ldd #$2020
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1006 std ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1007 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1008 space1 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1009 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1010 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1011 dsign lda #$3C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1012 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1013 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1014 esign lda #$3E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1015 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1016 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1017 minus lda #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1018 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1019 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1020 put ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1021 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1022 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1023 bne put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1024 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1025 coma lda #',
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1026 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1027 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1028 outhex2 tst offsflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1029 beq outhex3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1030 clr offsflg,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1031 cmpd moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1032 blo outhex3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1033 cmpd endaddr,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1034 bhi outhex3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1035 subd moduloc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1036 outhex3 exg a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1037 bsr outhex1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1038 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1039 outhex1 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1040 andb #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1041 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1042 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1043 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1044 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1045 bsr v1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1046 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1047 andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1048 v1 cmpb #9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1049 bls v2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1050 addb #7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1051 v2 addb #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1052 stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1053 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1054 grp60 andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1055 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1056 lbsr set
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1057 lbsr space2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1058 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1059 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1060 lbsr index
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1061 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1062 grp10 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1063 cmpb #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1064 lbeq s10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1065 cmpb #$12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1066 lblo s11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1067 beq grp12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1068 cmpb #$13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1069 beq grp13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1070 cmpb #$19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1071 lblo grpsb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1072 beq grp19
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1073 cmpb #$1D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1074 blo grpccr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1075 beq grpsex
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1076 lda #5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1077 cmpb #$1F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1078 beq grp1f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1079 leay rexg,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1080 n1e lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1081 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1082 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1083 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1084 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1085 andb #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1086 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1087 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1088 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1089 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1090 bsr readreg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1091 lda #',
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1092 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1093 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1094 andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1095 bsr readreg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1096 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1097 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1098 grp1f leay rtfr,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1099 bra n1e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1100 readreg tfr x,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1101 leax rbyte,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1102 loop2 cmpb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1103 beq gotit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1104 leax 3,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1105 bra loop2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1106 gotit ldb 1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1107 tst 2,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1108 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1109 bmi get2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1110 ldb ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1111 stb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1112 bra rout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1113 get2 ldd ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1114 std ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1115 rout tfr y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1116 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1117 grp12 leay rnop,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1118 bra out10a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1119 grp13 leay rsync,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1120 lda #4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1121 bra out10b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1122 grp19 leay rdaa,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1123 bra out10a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1124 grpsex leay rsex,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1125 out10a lda #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1126 out10b lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1127 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1128 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1129 grpccr cmpb #$1A
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1130 bne grp1c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1131 leay rorcc,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1132 outccr lda #7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1133 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1134 lbra g01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1135 grp1c leay randcc,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1136 bra outccr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1137 grpsb cmpb #$16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1138 bne grp17
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1139 leay rlbra,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1140 sbout lda #5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1141 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1142 lbr puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1143 ldd ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1144 sbr pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1145 addd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1146 std branchad,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1147 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1148 beq srb2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1149 lbsr setoffs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1150 srb2 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1151 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1152 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1153 grp17 leay rlbsr,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1154 bra sbout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1155 grp30 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1156 cmpb #$38
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1157 bhi rest30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1158 cmpb #$34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1159 lblo lea30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1160 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1161 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1162 bcc push
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1163 leay pull,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1164 bsr puss
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1165 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1166 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1167 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1168 leay order2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1169 lda #8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1170 loop3 lsrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1171 bsr tstbit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1172 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1173 bne loop3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1174 bra out30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1175 push leay pshr,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1176 bsr puss
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1177 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1178 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1179 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1180 leay order1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1181 lda #8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1182 loop4 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1183 bsr tstbit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1184 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1185 bne loop4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1186 bra out30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1187 tstbit bcs tst30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1188 leay 2,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1189 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1190 tst30 pshs d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1191 ldd ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1192 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1193 bmi clrp
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1194 std ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1195 sep lda #',
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1196 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1197 puls d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1198 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1199 clrp stb ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1200 bra sep
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1201 puss pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1202 lda #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1203 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1204 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1205 bsr usreg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1206 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1207 usreg andb #$02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1208 bne rureg
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1209 lda #'s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1210 pit sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1211 lda #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1212 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1213 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1214 rureg lda #'u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1215 bra pit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1216 out30 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1217 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1218 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1219 rest30 cmpb #$3C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1220 beq ccwait
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1221 leay table3,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1222 lda #4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1223 lbsr match
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1224 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1225 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1226 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1227 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1228 ccwait leay rccwai,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1229 lda #6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1230 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1231 lbra g01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1232 lea30 leay rlea,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1233 lda #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1234 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1235 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1236 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1237 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1238 anda #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1239 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1240 loop5 cmpb ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1241 beq dpit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1242 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1243 bra loop5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1244 dpit pshs x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1245 leax lregr,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1246 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1247 lda ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1248 puls x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1249 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1250 lbsr space1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1251 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1252 dpit1 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1253 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1254 bsr index
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1255 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1256 index pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1257 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1258 bmi not5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1259 bit5 bitb #$10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1260 beq posi
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1261 orb #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1262 negb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1263 lbsr minus
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1264 b5out lbsr outhex1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1265 lbsr coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1266 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1267 bsr rr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1268 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1269 posi andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1270 bra b5out
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1271 not5 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1272 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1273 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1274 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1275 lbcs indirect
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1276 beq rplus1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1277 bmi first
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1278 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1279 bmi second
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1280 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1281 bmi third
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1282 bra rplus2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1283 first aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1284 lbeq bit8r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1285 bmi rpcrl
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1286 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1287 lbmi dr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1288 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1289 lbmi bit16r
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1290 lbra rqq
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1291 second aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1292 bmi ar
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1293 beq zoro
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1294 aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1295 bmi br
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1296 lbra rqq
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1297 third aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1298 bmi minus2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1299 beq minus1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1300 lbra rqq
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1301 rpcrl aslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1302 lbeq bit8pr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1303 lbra bit16p
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1304 rr pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1305 andb #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1306 beq xregr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1307 cmpb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1308 beq yregr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1309 cmpb #$40
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1310 beq uregr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1311 cmpb #$60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1312 beq sregr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1313 lbra rqq
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1314 xregr lda #'x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1315 bra store
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1316 yregr lda #'y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1317 bra store
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1318 uregr lda #'u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1319 bra store
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1320 sregr lda #'s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1321 store sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1322 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1323 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1324 rplus1 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1325 bsr rplus3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1326 lda #'+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1327 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1328 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1329 rplus2 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1330 bsr rplus3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1331 ldd #$2B2B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1332 std ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1333 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1334 rplus3 lbsr coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1335 bsr rr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1336 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1337 minus1 lbsr coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1338 lda #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1339 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1340 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1341 bra rr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1342 minus2 lbsr coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1343 ldd #$2D2D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1344 std ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1345 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1346 bra rr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1347 zoro puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1348 bra rplus3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1349 ar lda #'a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1350 bra abd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1351 br lda #'b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1352 bra abd
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1353 dr lda #'d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1354 abd sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1355 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1356 bra rplus3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1357 bit8r ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1358 tstb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1359 bpl plus8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1360 negb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1361 lbsr minus
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1362 plus8 lbsr outhex1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1363 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1364 bra rplus3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1365 bit16r ldd ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1366 tsta
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1367 bpl plus16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1368 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1369 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1370 addd #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1371 pshs a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1372 lbsr minus
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1373 puls a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1374 plus16 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1375 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1376 bra rplus3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1377 bit8pr ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1378 sex
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1379 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1380 addd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1381 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1382 beq bit8pr2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1383 lbsr setoffs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1384 bit8pr2 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1385 pcrn lbsr coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1386 leay rpcr,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1387 lda #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1388 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1389 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1390 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1391 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1392 bit16p ldd ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1393 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1394 addd ,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1395 tst offsopt,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1396 beq bit16p2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1397 lbsr setoffs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1398 bit16p2 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1399 bra pcrn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1400 indirect puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1401 lda #$5B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1402 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1403 cmpb #$9F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1404 beq exdirect
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1405 andb #$EF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1406 lbsr index
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1407 indirout lda #$5D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1408 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1409 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1410 exdirect ldd ,y++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1411 lbsr outhex2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1412 bra indirout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1413 rqq ldd #$3F3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1414 std ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1415 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1416 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1417 s10 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1418 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1419 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1420 cmpb #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1421 blo cbr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1422 cmpb #$3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1423 beq os9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1424 bhi srest
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1425 x10 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1426 ldd #$3F3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1427 std ,x++
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1428 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1429 cbr cmpb #$20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1430 blo x10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1431 lda #'l
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1432 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1433 lbsr sub20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1434 lbsr space1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1435 lbra lbr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1436 os9 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1437 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1438 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1439 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1440 leay ros9,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1441 lda #5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1442 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1443 leay os9table,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1444 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1445 os9loop cmpb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1446 bne os9next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1447 lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1448 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1449 os9out puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1450 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1451 os9next pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1452 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1453 exg x,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1454 abx
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1455 exg x,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1456 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1457 cmpy ros9end,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1458 beq os9out
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1459 bra os9loop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1460 srest tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1461 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1462 bmi overc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1463 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1464 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1465 leay tab1,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1466 enter11 lda #6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1467 solve andb #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1468 lbsr match
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1469 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1470 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1471 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1472 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1473 bmi next10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1474 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1475 lbmi g00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1476 lda #'#
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1477 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1478 lbra g71
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1479 next10 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1480 lbmi g70
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1481 lbra dpit1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1482 overc pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1483 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1484 leay tab2,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1485 bra enter11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1486 s11 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1487 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1488 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1489 cmpb #$3F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1490 lblo x10
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1491 bhi rest11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1492 leay rswi3,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1493 lda #4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1494 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1495 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1496 lbra next
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1497 rest11 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1498 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1499 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1500 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1501 leay tab11,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1502 bra enter11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1503 grp80 pshs y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1504 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1505 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1506 andb #$F0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1507 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1508 beq check1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1509 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1510 beq check2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1511 rein80 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1512 tfr b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1513 rolb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1514 bmi over8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1515 leay tab80a,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1516 mm80 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1517 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1518 bra enter11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1519 over8 leay tab80b,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1520 bra mm80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1521 check1 cmpa #$8D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1522 beq rbr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1523 leay tab80a,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1524 check anda #$0F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1525 cmpa #$0C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1526 bhs rein80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1527 cmpa #$03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1528 beq rein80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1529 tfr a,b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1530 lda #6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1531 lbsr match
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1532 deca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1533 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1534 lda #'#
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1535 sta ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1536 puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1537 lbra g01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1538 check2 leay tab80b,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1539 bra check
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1540 rbr puls b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1541 leay rbsr,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1542 lda #3
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1543 lbsr put
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1544 puls y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1545 lbra g20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1546 rexg fcc /exg /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1547 rtfr fcc /tfr /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1548 rbyte fcb 0,30,0,1,28,0,2,26,0,3,24,0,4,22,0,5,20,128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1549 fcb 8,19,0,9,17,0,10,15,128,11,14,128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1550 fcc /dxyusppcabccdp/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1551 rccwai fcc /cwai #/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1552 rlea fcc /lea/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1553 lregr fcc /xysu/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1554 rpcr fcc /pcr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1555 rnop fcc /nop/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1556 rsync fcc /sync/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1557 rdaa fcc /daa/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1558 rsex fcc /sex/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1559 rorcc fcc /orcc #/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1560 randcc fcc /andcc #/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1561 rlbra fcc /lbra /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1562 rlbsr fcc /lbsr /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1563 pull fcc /pul/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1564 pshr fcc /psh/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1565 order1 fcb 112,99,128,117,128,121,128,120,100,112,128,98,128,97,99,99
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1566 order2 fcb 99,99,128,97,128,98,100,112,128,120,128,121,128,117,112,99
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1567 table3 fcb $39
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1568 fcc /rts/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1569 fcb $3a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1570 fcc /abx/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1571 fcb $3b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1572 fcc /rti/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1573 fcb $3d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1574 fcc /mul/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1575 fcb $3f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1576 fcc /swi/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1577 rbsr fcc /bsr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1578 table1 fcb $0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1579 fcc /neg/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1580 fcb $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1581 fcc /?? /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1582 fcb $02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1583 fcc /?? /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1584 fcb $03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1585 fcc /com/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1586 fcb $04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1587 fcc /lsr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1588 fcb $05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1589 fcc /?? /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1590 fcb $06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1591 fcc /ror/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1592 fcb $07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1593 fcc /asr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1594 fcb $08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1595 fcc /asl/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1596 fcb $09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1597 fcc /rol/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1598 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1599 fcc /dec/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1600 fcb $0b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1601 fcc /?? /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1602 fcb $0c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1603 fcc /inc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1604 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1605 fcc /tst/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1606 fcb $0e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1607 fcc /jmp/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1608 fcb $0f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1609 fcc /clr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1610 table2 fcb $20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1611 fcc /bra/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1612 fcb $21
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1613 fcc /brn/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1614 fcb $22
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1615 fcc /bhi/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1616 fcb $23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1617 fcc /bls/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1618 fcb $24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1619 fcc /bcc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1620 fcb $25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1621 fcc /bcs/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1622 fcb $26
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1623 fcc /bne/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1624 fcb $27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1625 fcc /beq/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1626 fcb $28
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1627 fcc /bvc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1628 fcb $29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1629 fcc /bvs/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1630 fcb $2a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1631 fcc /bpl/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1632 fcb $2b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1633 fcc /bmi/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1634 fcb $2c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1635 fcc /bge/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1636 fcb $2d
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1637 fcc /blt/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1638 fcb $2e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1639 fcc /bgt/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1640 fcb $2f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1641 fcc /ble/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1642 tab1 fcb $03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1643 fcc /cmpd /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1644 fcb $0c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1645 fcc /cmpy /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1646 fcb $0e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1647 fcc /ldy /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1648 fcb $0f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1649 fcc /sty /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1650 tab2 fcb $0e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1651 fcc /lds /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1652 fcb $0f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1653 fcc /sts /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1654 tab11 fcb $03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1655 fcc /cmpu /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1656 fcb $0c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1657 fcc /cmps /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1658 tab80a fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1659 fcc /suba /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1660 fcb $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1661 fcc /cmpa /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1662 fcb $02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1663 fcc /sbca /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1664 fcb $03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1665 fcc /subd /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1666 fcb $04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1667 fcc /anda /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1668 fcb $05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1669 fcc /bita /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1670 fcb $06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1671 fcc /lda /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1672 fcb $07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1673 fcc /sta /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1674 fcb $08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1675 fcc /eora /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1676 fcb $09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1677 fcc /adca /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1678 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1679 fcc /ora /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1680 fcb $0b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1681 fcc /adda /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1682 fcb $0c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1683 fcc /cmpx /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1684 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1685 fcc /jsr /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1686 fcb $0e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1687 fcc /ldx /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1688 fcb $0f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1689 fcc /stx /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1690 tab80b fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1691 fcc /subb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1692 fcb $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1693 fcc /cmpb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1694 fcb $02
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1695 fcc /sbcb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1696 fcb $03
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1697 fcc /addd /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1698 fcb $04
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1699 fcc /andb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1700 fcb $05
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1701 fcc /bitb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1702 fcb $06
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1703 fcc /ldb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1704 fcb $07
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1705 fcc /stb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1706 fcb $08
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1707 fcc /eorb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1708 fcb $09
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1709 fcc /adcb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1710 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1711 fcc /orb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1712 fcb $0b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1713 fcc /addb /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1714 fcb $0c
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1715 fcc /ldd /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1716 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1717 fcc /std /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1718 fcb $0e
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1719 fcc /ldu /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1720 fcb $0f
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1721 fcc /stu /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1722 rswi3 fcc /swi3/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1723 rshell fcc /shell/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1724 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1725 ros9 fcc /os9 /
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1726 os9table fcb $0,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1727 fcc /F$Link/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1728 fcb $01,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1729 fcc /F$Load/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1730 fcb $02,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1731 fcc /F$UnLink/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1732 fcb $03,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1733 fcc /F$Fork/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1734 fcb $04,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1735 fcc /F$Wait/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1736 fcb $05,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1737 fcc /F$Chain/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1738 fcb $06,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1739 fcc /F$Exit/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1740 fcb $07,5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1741 fcc /F$Mem/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1742 fcb $08,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1743 fcc /F$Send/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1744 fcb $09,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1745 fcc /F$Icpt/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1746 fcb lf,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1747 fcc /F$Sleep/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1748 fcb $0C,4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1749 fcc /F$ID/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1750 fcb cr,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1751 fcc /F$SPrior/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1752 fcb $0E,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1753 fcc /F$SSWI/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1754 fcb $0F,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1755 fcc /F$Perr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1756 fcb $10,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1757 fcc /F$PrsNam/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1758 fcb $11,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1759 fcc /F$CmpNam/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1760 fcb $12,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1761 fcc /F$SchBit/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1762 fcb $13,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1763 fcc /F$AllBit/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1764 fcb $14,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1765 fcc /F$DelBit/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1766 fcb $15,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1767 fcc /F$Time/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1768 fcb $16,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1769 fcc /F$STime/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1770 fcb $17,5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1771 fcc /F$CRC/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1772 fcb $18,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1773 fcc /F$GPrDsc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1774 fcb $19,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1775 fcc /F$GBlkMp/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1776 fcb $1A,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1777 fcc /F$GModDr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1778 fcb $1B,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1779 fcc /F$CpyMem/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1780 fcb $1C,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1781 fcc /F$SUser/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1782 fcb $1D,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1783 fcc /F$UnLoad/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1784 fcb $1E,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1785 fcc /F$Alarm/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1786 fcb $21,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1787 fcc /F$NMLink/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1788 fcb $22,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1789 fcc /F$NMLoad/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1790 fcb $27,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1791 fcc /F$VIRQ/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1792 fcb $28,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1793 fcc /F$SRqMem/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1794 fcb $29,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1795 fcc /F$SRtMem/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1796 fcb $2A,5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1797 fcc /F$IRQ/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1798 fcb $2B,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1799 fcc /F$IOQu/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1800 fcb $2C,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1801 fcc /F$AProc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1802 fcb $2D,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1803 fcc /F$NProc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1804 fcb $2E,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1805 fcc /F$VModul/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1806 fcb $2F,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1807 fcc /F$Find64/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1808 fcb $30,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1809 fcc /F$All64/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1810 fcb $31,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1811 fcc /F$Ret64/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1812 fcb $32,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1813 fcc /F$SSvc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1814 fcb $33,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1815 fcc /F$IODel/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1816 fcb $34,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1817 fcc /F$SLink/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1818 fcb $35,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1819 fcc /F$Boot/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1820 fcb $36,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1821 fcc /F$BtMem/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1822 fcb $37,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1823 fcc /F$GProcP/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1824 fcb $38,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1825 fcc /F$Move/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1826 fcb $39,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1827 fcc /F$AllRAM/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1828 fcb $3A,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1829 fcc /F$AllImg/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1830 fcb $3B,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1831 fcc /F$DelImg/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1832 fcb $3C,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1833 fcc /F$SetImg/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1834 fcb $3D,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1835 fcc /F$FreeLB/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1836 fcb $3E,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1837 fcc /F$FreeHB/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1838 fcb $3F,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1839 fcc /F$AllTsk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1840 fcb $40,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1841 fcc /F$DelTsk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1842 fcb $41,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1843 fcc /F$SetTsk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1844 fcb $42,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1845 fcc /F$ResTsk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1846 fcb $43,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1847 fcc /F$RelTsk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1848 fcb $44,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1849 fcc /F$DATLog/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1850 fcb $46,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1851 fcc /F$LDAXY/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1852 fcb $48,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1853 fcc /F$LDDDXY/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1854 fcb $49,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1855 fcc /F$LDABX/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1856 fcb $4A,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1857 fcc /F$STABX/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1858 fcb $4B,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1859 fcc /F$AllPrc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1860 fcb $4C,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1861 fcc /F$DelPrc/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1862 fcb $4D,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1863 fcc /F$ELink/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1864 fcb $4E,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1865 fcc /F$FModul/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1866 fcb $4F,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1867 fcc /F$MapBlk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1868 fcb $50,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1869 fcc /F$ClrBlk/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1870 fcb $51,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1871 fcc /F$DelRAM/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1872 fcb $52,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1873 fcc /F$GCMDir/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1874 fcb $53,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1875 fcc /F$AlHRam/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1876 fcb $80,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1877 fcc /I$Attach/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1878 fcb $81,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1879 fcc /I$Detach/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1880 fcb $82,5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1881 fcc /I$Dup/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1882 fcb $83,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1883 fcc /I$Create/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1884 fcb $84,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1885 fcc /I$Open/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1886 fcb $85,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1887 fcc /I$MakDir/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1888 fcb $86,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1889 fcc /I$Chgdir/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1890 fcb $87,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1891 fcc /I$Delete/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1892 fcb $88,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1893 fcc /I$Seek/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1894 fcb $89,6
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1895 fcc /I$Read/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1896 fcb $8A,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1897 fcc /I$Write/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1898 fcb $8B,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1899 fcc /I$ReadLn/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1900 fcb $8C,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1901 fcc /I$WritLn/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1902 fcb $8D,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1903 fcc /I$GetStt/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1904 fcb $8E,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1905 fcc /I$SetStt/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1906 fcb $8F,7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1907 fcc /I$Close/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1908 fcb $90,8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1909 fcc /I$DeletX/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1910 fcb 0,0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1911 ros9end equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1912 copyr fcb $0C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1913 fcb 7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1914 fcc "DASM (C) 1992"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1915 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1916 fcc "J.R.COLLYER"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1917 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1918 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1919 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1920 prompt fcc "dasm: "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1921 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1922 whatmsg fcc "WHAT ??"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1923 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1924 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1925 adrmsg fcc "USE: [HEX DIGITS]"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1926 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1927 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1928 jumpmsg fcc "START ADDRESS ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1929 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1930 ulinkmsg fcc "UNLINKED MODULE COUNT"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1931 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1932 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1933 notlkmsg fcc "MODULE LINK COUNT IS ZERO"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1934 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1935 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1936 linkmsg fcc "LINK ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1937 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1938 dasmmsg fcs "dasm"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1939 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1940 shellmsg fcc "SHELL ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1941 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1942 getmode fcc "AUTO ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1943 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1944 modemsg1 fcc "AUTO ON"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1945 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1946 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1947 modemsg2 fcc "AUTO OFF"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1948 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1949 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1950 prtermsg fcc "PRINTER ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1951 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1952 prtmsg fcc "PRINTER ON"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1953 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1954 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1955 scrmsg fcc "PRINTER OFF"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1956 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1957 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1958 buffmsg fcc "BUFFER ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1959 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1960 buff1 fcc "BUFFER OFF"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1961 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1962 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1963 buff2 fcc "BUFFER ON"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1964 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1965 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1966 bfull fcc "BUFFER FULL"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1967 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1968 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1969 stackms1 fcc "ADDRESS STACK IS FULL"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1970 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1971 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1972 stackms2 fcc "ADDRESS STACK IS EMPTY"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1973 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1974 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1975 helpmsg fcc "USE: ARROW KEYS $ ? A B E G L M O P Q R S U W"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1976 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1977 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1978 fname fcc "FILENAME ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1979 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1980 endadmsg fcc "END ADDRESS ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1981 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1982 gimimsg fcc "GIMI ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1983 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1984 gimimsg1 fcc "EXAMPLE: 3F,3E,3D [ENTER]"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1985 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1986 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1987 gimimsg2 fcc "EXAMPLE: FF FE FD [ENTER]"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1988 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1989 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1990 offsmsg fcc "OFFSETS ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1991 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1992 offsmsg1 fcc "OFFSETS ON"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1993 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1994 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1995 offsmsg2 fcc "OFFSETS OFF"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1996 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1997 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1998 exitmsg fcc "QUIT ARE YOU SURE (y/n) ? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1999 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2000 pmsg fcc "/p"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2001 usemsg fcb 7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2002 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2003 fcc "*************************"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2004 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2005 fcc "** OS9 DASM"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2006 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2007 fcc "** (C)1992 J.R.COLLYER"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2008 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2009 fcc "** usage: dasm <opts> [path] [module]"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2010 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2011 fcc "** opts: -o use offset addresses"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2012 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2013 fcc "** -s start address"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2014 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2015 fcc "** -e end address"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2016 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2017 fcc "** -m use hard addresses"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2018 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2019 fcc "** -l link os9 module"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2020 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2021 fcc "** -r read os9 module"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2022 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2023 fcc "** [ENTER] Interactive mode"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2024 fcb lf
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2025 fcb cr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2026 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2027 commands fcb 00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2028 fdb 0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2029 fcb $08 left arrow
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2030 fdb return-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2031 fcb $09 right arrow
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2032 fdb branch-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2033 fcb lf down arrow
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2034 fdb dentry-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2035 fcb $0C up arrow
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2036 fdb back-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2037 fcb $24 shell command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2038 fdb shell-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2039 fcb $3F help command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2040 fdb help-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2041 fcb $41 ASCII command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2042 fdb ascii-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2043 fcb $42 buffer command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2044 fdb bcom-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2045 fcb $45 end address for auto mode
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2046 fdb chngend-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2047 fcb $47 gimi
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2048 fdb gimicom-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2049 fcb $4C link command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2050 fdb link-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2051 fcb $4D mode command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2052 fdb setmode-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2053 fcb $4F offsets
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2054 fdb offscom-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2055 fcb $50 printer command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2056 fdb printer-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2057 fcb $51 quit command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2058 fdb quit-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2059 fcb $52 read disk file command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2060 fdb read-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2061 fcb $53 start address
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2062 fdb jump-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2063 fcb $55 unlink command
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2064 fdb unlink-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2065 fcb $57 disk write
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2066 fdb write-begin
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2067 fcb 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2068 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2069 len equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2070 end