annotate level1/cmds/attr.as @ 2798:b70d93f8d7ce lwtools-port

Updated coco1/modules/makefile and coco3/modules/makefile to help resolve issues with i(x) and s(x) descriptors. Updated level1/coco1/modules/makefile & level2/coco3/modules/makefile so that correct values would be sent to assembler when building superdesc.asm for s(x).dd and i(x).dd descriptors.
author drencor-xeen
date Mon, 28 Jan 2013 16:13:05 -0600
parents a52a60c66f5a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1869
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
1
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
2 * Attr - Modify file attributes
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
3 *
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
4 * $Id$
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
5 *
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
7 * Comment
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
9 * 11 ????/??/??
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
10 * From Tandy OS-9 Level Two VR 02.00.01.
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
11
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
12 nam Attr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
13 ttl Modify file attributes
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
14
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
15 * Disassembled 98/09/11 11:44:51 by Disasm v1.6 (C) 1988 by RML
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
16
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
17 use defsfile.d
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
18
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
19 DOHELP set 0
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
20
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
21 tylg set Prgrm+Objct
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
22 atrv set ReEnt+rev
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
23 rev set $00
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
24 edition set 11
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
25
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
26
2794
a52a60c66f5a Fixed incorrect data sections
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2790
diff changeset
27 section .bss
1869
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
28 fpath rmb 1
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
29 rawpath rmb 1
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
30 parmptr rmb 2
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
31 cmdperms rmb 2
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
32 u0006 rmb 1
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
33 u0007 rmb 1
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
34 pathopts rmb 20
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
35 u001C rmb 2
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
36 u001E rmb 1
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
37 u001F rmb 9
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
38 u0028 rmb 32
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
39 filename rmb 32
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
40 fdesc rmb 16
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
41 u0078 rmb 46
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
42 endsect
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
43
2787
28b6ec8a14d5 Added 'extern' pragam, fixed up rules.mak, changed 'section text' to 'section code' in sources
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2783
diff changeset
44 section code
2782
aaba193af04f Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents: 1869
diff changeset
45 * psect tee_a,Prgrm+Objct,ReEnt+rev,edition,200,start
aaba193af04f Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents: 1869
diff changeset
46
aaba193af04f Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents: 1869
diff changeset
47
1869
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
48 IFNE DOHELP
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
49 HelpMsg fcb C$LF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
50 fcc "Use: Attr <pathname> {[-]<opts>}"
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
51 fcb C$LF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
52 fcc " opts: -d s r w e pr pw pe -a"
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
53 fcb C$CR
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
54 ENDC
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
55 NotOwner fcb C$LF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
56 fcc "You do not own that file."
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
57 fcb C$CR
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
58 UseMkDir fcb C$LF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
59 fcc "Use Makdir to create a directory"
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
60 fcb C$CR
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
61 DirNtEmt fcb C$LF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
62 fcc "ERROR; the directory is not empty"
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
63 fcb C$CR
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
64 Attrs fcc "dsewrewr"
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
65 fcb $FF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
66
2790
19517af71188 Added __start
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2787
diff changeset
67 __start stx parmptr save param ptr
1869
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
68 clr u0007
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
69 com u0007
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
70 * Open file at X as file
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
71 clra
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
72 os9 I$Open open file on commandline
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
73 bcc L00D9 branch if ok
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
74 * If error, try to open as directory with read permission
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
75 ldx parmptr get saved param ptr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
76 lda #DIR.+READ. load perms
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
77 os9 I$Open open as directory
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
78 bcc L00D9 branch if ok
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
79 * One last time, try open as directory only
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
80 ldx parmptr get param ptr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
81 lda #DIR. load different perms
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
82 os9 I$Open try one more time
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
83 bcs L0114 branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
84 L00D9 sta fpath save off path
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
85 stx cmdperms save updated parm ptr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
86 leax pathopts point X to buffer
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
87 ldb #SS.Opt load with status code
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
88 os9 I$GetStt get status
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
89 bcs L0114 branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
90 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
91 lda ,x get path type
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
92 cmpa #DT.RBF check if rbf path
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
93 lbne ShowHelp branch if not
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
94 ldx parmptr else get parm ptr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
95 leay filename point to buffer
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
96 lda ,x+ get file name character
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
97 cmpa #PDELIM path delimiter?
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
98 bne L0106 no
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
99 L00FA sta ,y+ else save char in Y
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
100 lda ,x+ get next file name char
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
101 cmpa #C$PERD period?
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
102 bcs L0106 branch if not
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
103 cmpa #PDELIM path delimiter?
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
104 bne L00FA branch if not
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
105 L0106 lda #PENTIR
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
106 ldb #C$SPAC
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
107 std ,y++
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
108 leax filename point X to filename
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
109 lda #READ.+WRITE. load perms
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
110 os9 I$Open open in raw mode
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
111 L0114 lbcs ShowHelp branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
112 sta rawpath
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
113 lda fpath
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
114 clr u001F
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
115 pshs u
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
116 ldx u001C get MS 16 bits
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
117 ldu u001E get LS 16 bits
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
118 lda rawpath get path
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
119 os9 I$Seek seek
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
120 puls u
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
121 bcs ShowHelp branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
122 leax fdesc point to buffer
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
123 ldy #FD.SEG
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
124 os9 I$Read
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
125 bcs ShowHelp
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
126 os9 F$ID get ID
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
127 cmpy #$0000 super user?
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
128 beq L014B branch if so
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
129 cmpy fdesc+FD.OWN is user same as file's owner?
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
130 bne L01C1 branch if not
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
131 L014B ldx cmdperms point to perms on cmd line
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
132 lbsr L021D
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
133 bcs L018B
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
134 L0152 lbsr L021D
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
135 bcc L0152
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
136 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
137 lda ,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
138 cmpa #C$CR
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
139 bne ShowHelp
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
140 pshs u
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
141 ldx u001C
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
142 ldu u001E
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
143 lda rawpath
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
144 os9 I$Seek seek
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
145 puls u
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
146 bcs ShowHelp branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
147 leax fdesc point to file desc
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
148 ldy #1 only 1 byte
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
149 os9 I$Write write out new attributes
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
150 bcs ShowHelp branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
151 os9 I$Close close file
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
152 bcs ShowHelp branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
153 lda fpath get file path
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
154 os9 I$Close close file
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
155 bcs ShowHelp branch if error
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
156 ldb u0007
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
157 beq L01BE
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
158 L018B ldb fdesc get attribute
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
159 leax >Attrs,pcr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
160 leay u0078
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
161 lda ,x+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
162 L0197 lslb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
163 bcs L019C
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
164 lda #'-
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
165 L019C sta ,y+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
166 lda ,x+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
167 bpl L0197
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
168 lda #C$CR
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
169 sta ,y+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
170 leax u0078
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
171 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
172 bra L01B0
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
173 ShowHelp equ *
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
174 IFNE DOHELP
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
175 leax >HelpMsg,pcr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
176 ELSE
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
177 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
178 bra L01BE
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
179 ENDC
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
180 L01B0 pshs b
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
181 lda #2
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
182 ldy #256
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
183 os9 I$WritLn
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
184 comb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
185 puls b
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
186 L01BE os9 F$Exit
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
187 L01C1 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
188 leax >NotOwner,pcr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
189 bra L01B0
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
190 L01C8 leax >UseMkDir,pcr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
191 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
192 bra L01B0
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
193 L01CF pshs u,y,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
194 lda fpath
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
195 ldx #$0000
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
196 ldu #DIR.SZ*2
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
197 os9 I$Seek
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
198 ldu $04,s
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
199 bcs L01BE
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
200 L01E0 leax u0028
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
201 ldy #DIR.SZ
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
202 os9 I$Read
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
203 bcs L01F7
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
204 tst ,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
205 beq L01E0
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
206 leax >DirNtEmt,pcr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
207 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
208 bra L01B0
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
209 L01F7 puls u,y,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
210 cmpb #E$EOF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
211 bne ShowHelp
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
212 rts
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
213 L01FE fdb $ff41
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
214 fdb $ff80,$44ff,$4053,$ff01,$52ff,$0257,$ff04,$45ff
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
215 fdb $0850,$52ff,$1050,$57ff,$2050,$45ff
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
216 fcb $00
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
217 L021D clr u0006
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
218 L021F lda ,x+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
219 cmpa #C$SPAC
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
220 beq L021F
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
221 cmpa #C$COMA
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
222 beq L021F
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
223 cmpa #'-
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
224 bne L0231
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
225 com u0006
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
226 lda ,x+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
227 L0231 leax -1,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
228 leay >L01FE,pcr
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
229 L0237 ldb ,y+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
230 pshs y,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
231 beq L027F
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
232 L023D lda ,x+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
233 eora ,y+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
234 anda #$DF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
235 beq L023D
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
236 lda -1,y
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
237 bmi L0251
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
238 puls y,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
239 L024B lda ,y+
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
240 bpl L024B
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
241 bra L0237
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
242 L0251 lda ,-x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
243 cmpa #$30
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
244 bcc L027F
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
245 cmpb #$FF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
246 beq L0278
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
247 bitb #$80
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
248 beq L0268
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
249 tst u0006
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
250 lbeq L01C8
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
251 lbsr L01CF
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
252 L0268 puls y,b,a
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
253 lda fdesc
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
254 eora u0006
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
255 ora -$01,y
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
256 eora u0006
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
257 sta fdesc
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
258 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
259 rts
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
260 L0278 eorb u0006
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
261 stb u0007
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
262 clrb
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
263 puls pc,y,b,a
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
264 L027F coma
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
265 puls pc,y,x
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
266
a51439f6b206 Massive checkin
boisy
parents:
diff changeset
267 endsect