annotate level1/cmds/attr.asm @ 1678:40322608e006

tmode is now made from xmode, dsave modified to handle new tmode parameter
author boisy
date Thu, 29 Jul 2004 19:04:12 +0000
parents 20841f236e32
children 028161cd3535
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 * Attr - Modify file attributes
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 921
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 921
diff changeset
7 * Comment
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 921
diff changeset
9 * 11 ????/??/??
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 921
diff changeset
10 * From Tandy OS-9 Level Two VR 02.00.01.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12 nam Attr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 ttl Modify file attributes
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 * Disassembled 98/09/11 11:44:51 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
17 ifp1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18 use defsfile
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
19 endc
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20
921
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 873
diff changeset
21 DOHELP set 0
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 873
diff changeset
22
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
23 tylg set Prgrm+Objct
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 atrv set ReEnt+rev
1325
84ea83668304 Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents: 921
diff changeset
25 rev set $00
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
26 edition set 11
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 fpath rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 rawpath rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 parmptr rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 cmdperms rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 u0006 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 u0007 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 pathopts rmb 20
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 u001C rmb 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 u001E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 u001F rmb 9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 u0028 rmb 32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 filename rmb 32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 fdesc rmb 16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 u0078 rmb 46
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 u00A6 rmb 414
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 name fcs /Attr/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49
846
c6e6cf68e03e Optimized
boisy
parents: 226
diff changeset
50 IFNE DOHELP
c6e6cf68e03e Optimized
boisy
parents: 226
diff changeset
51 HelpMsg fcb C$LF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 fcc "Use: Attr <pathname> {[-]<opts>}"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 fcb C$LF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 fcc " opts: -d s r w e pr pw pe -a"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 fcb C$CR
846
c6e6cf68e03e Optimized
boisy
parents: 226
diff changeset
56 ENDC
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
57 NotOwner fcb C$LF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 fcc "You do not own that file."
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 fcb C$CR
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
60 UseMkDir fcb C$LF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 fcc "Use Makdir to create a directory"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 fcb C$CR
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
63 DirNtEmt fcb C$LF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 fcc "ERROR; the directory is not empty"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 fcb C$CR
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
66 Attrs fcc "dsewrewr"
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
67 fcb $FF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
69 start stx <parmptr save param ptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 clr <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 com <u0007
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
72 * Open file at X as file
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 clra
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
74 os9 I$Open open file on commandline
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
75 bcc L00D9 branch if ok
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
76 * If error, try to open as directory with read permission
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
77 ldx <parmptr get saved param ptr
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
78 lda #DIR.!READ. load perms
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
79 os9 I$Open open as directory
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
80 bcc L00D9 branch if ok
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
81 * One last time, try open as directory only
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
82 ldx <parmptr get param ptr
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
83 lda #DIR. load different perms
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
84 os9 I$Open try one more time
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
85 bcs L0114 branch if error
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
86 L00D9 sta <fpath save off path
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
87 stx <cmdperms save updated parm ptr
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
88 leax pathopts,u point X to buffer
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
89 ldb #SS.Opt load with status code
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
90 os9 I$GetStt get status
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
91 bcs L0114 branch if error
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
92 clrb
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
93 lda ,x get path type
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
94 cmpa #DT.RBF check if rbf path
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
95 lbne ShowHelp branch if not
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
96 ldx <parmptr else get parm ptr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 leay <filename,u point to buffer
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
98 lda ,x+ get file name character
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
99 cmpa #PDELIM path delimiter?
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
100 bne L0106 no
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
101 L00FA sta ,y+ else save char in Y
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
102 lda ,x+ get next file name char
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
103 cmpa #C$PERD period?
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
104 bcs L0106 branch if not
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
105 cmpa #PDELIM path delimiter?
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
106 bne L00FA branch if not
226
1659ca4836e7 Slight source improvements
boisy
parents: 200
diff changeset
107 L0106 lda #PENTIR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108 ldb #C$SPAC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 std ,y++
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
110 leax <filename,u point X to filename
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
111 lda #READ.!WRITE. load perms
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
112 os9 I$Open open in raw mode
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
113 L0114 lbcs ShowHelp branch if error
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
114 sta <rawpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
115 lda <fpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
116 clr <u001F,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
117 pshs u
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
118 ldx <u001C,u get MS 16 bits
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
119 ldu <u001E,u get LS 16 bits
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
120 lda <rawpath get path
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
121 os9 I$Seek seek
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
122 puls u
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
123 bcs ShowHelp branch if error
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
124 leax <fdesc,u point to buffer
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
125 ldy #FD.SEG
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
126 os9 I$Read
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
127 bcs ShowHelp
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
128 os9 F$ID get ID
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
129 cmpy #$0000 super user?
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
130 beq L014B branch if so
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
131 cmpy <fdesc+FD.OWN,u is user same as file's owner?
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
132 bne L01C1 branch if not
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
133 L014B ldx <cmdperms point to perms on cmd line
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
134 lbsr L021D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
135 bcs L018B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
136 L0152 lbsr L021D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
137 bcc L0152
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
138 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
139 lda ,x
226
1659ca4836e7 Slight source improvements
boisy
parents: 200
diff changeset
140 cmpa #C$CR
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
141 bne ShowHelp
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
142 pshs u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
143 ldx <u001C,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
144 ldu <u001E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
145 lda <rawpath
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
146 os9 I$Seek seek
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
147 puls u
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
148 bcs ShowHelp branch if error
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
149 leax <fdesc,u point to file desc
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
150 ldy #1 only 1 byte
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
151 os9 I$Write write out new attributes
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
152 bcs ShowHelp branch if error
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
153 os9 I$Close close file
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
154 bcs ShowHelp branch if error
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
155 lda <fpath get file path
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
156 os9 I$Close close file
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
157 bcs ShowHelp branch if error
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
158 ldb <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
159 beq L01BE
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
160 L018B ldb <fdesc,u get attribute
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
161 leax >Attrs,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
162 leay <u0078,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
163 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
164 L0197 lslb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
165 bcs L019C
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
166 lda #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
167 L019C sta ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
168 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
169 bpl L0197
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
170 lda #C$CR
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
171 sta ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
172 leax <u0078,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
173 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
174 bra L01B0
921
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 873
diff changeset
175 ShowHelp equ *
846
c6e6cf68e03e Optimized
boisy
parents: 226
diff changeset
176 IFNE DOHELP
921
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 873
diff changeset
177 leax >HelpMsg,pcr
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 873
diff changeset
178 ELSE
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 873
diff changeset
179 clrb
617c1b90e623 Added DOHELP conditionals, set all to zero to eliminate help from commands
boisy
parents: 873
diff changeset
180 bra L01BE
846
c6e6cf68e03e Optimized
boisy
parents: 226
diff changeset
181 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
182 L01B0 pshs b
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
183 lda #2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
184 ldy #256
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
185 os9 I$WritLn
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
186 comb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
187 puls b
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
188 L01BE os9 F$Exit
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
189 L01C1 clrb
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
190 leax >NotOwner,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
191 bra L01B0
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
192 L01C8 leax >UseMkDir,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
193 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
194 bra L01B0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
195 L01CF pshs u,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
196 lda <fpath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
197 ldx #$0000
226
1659ca4836e7 Slight source improvements
boisy
parents: 200
diff changeset
198 ldu #DIR.SZ*2
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
199 os9 I$Seek
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
200 ldu $04,s
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
201 bcs L01BE
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
202 L01E0 leax <u0028,u
226
1659ca4836e7 Slight source improvements
boisy
parents: 200
diff changeset
203 ldy #DIR.SZ
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
204 os9 I$Read
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
205 bcs L01F7
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
206 tst ,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
207 beq L01E0
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
208 leax >DirNtEmt,pcr
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
209 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
210 bra L01B0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
211 L01F7 puls u,y,x
226
1659ca4836e7 Slight source improvements
boisy
parents: 200
diff changeset
212 cmpb #E$EOF
873
c70da2076f02 Added comments
boisy
parents: 846
diff changeset
213 bne ShowHelp
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
214 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
215 L01FE fdb $ff41
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
216 fdb $ff80,$44ff,$4053,$ff01,$52ff,$0257,$ff04,$45ff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
217 fdb $0850,$52ff,$1050,$57ff,$2050,$45ff
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
218 fcb $00
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
219 L021D clr <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
220 L021F lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
221 cmpa #C$SPAC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
222 beq L021F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
223 cmpa #C$COMA
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
224 beq L021F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
225 cmpa #'-
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
226 bne L0231
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
227 com <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
228 lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
229 L0231 leax -1,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
230 leay >L01FE,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
231 L0237 ldb ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
232 pshs y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
233 beq L027F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
234 L023D lda ,x+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
235 eora ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
236 anda #$DF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
237 beq L023D
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
238 lda -1,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
239 bmi L0251
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
240 puls y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
241 L024B lda ,y+
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
242 bpl L024B
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
243 bra L0237
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
244 L0251 lda ,-x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
245 cmpa #$30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
246 bcc L027F
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
247 cmpb #$FF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
248 beq L0278
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
249 bitb #$80
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
250 beq L0268
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
251 tst <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
252 lbeq L01C8
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
253 lbsr L01CF
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
254 L0268 puls y,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
255 lda <fdesc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
256 eora <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
257 ora -$01,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
258 eora <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
259 sta <fdesc,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
260 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
261 rts
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
262 L0278 eorb <u0006
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
263 stb <u0007
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
264 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
265 puls pc,y,b,a
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
266 L027F coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
267 puls pc,y,x
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
268
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
269 emod
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
270 eom equ *
187
0d02be492d77 Brought up to same attr command in OS-9 Level Two, which is the same exact
boisy
parents: 0
diff changeset
271 end