Last change
on this file since 0170798 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
2.5 KB
|
Line | |
---|
1 | .globl _errno
|
---|
2 | .globl _chantab
|
---|
3 | .globl _Wrkbuf
|
---|
4 | .globl __fatmod
|
---|
5 | .globl __dirmod
|
---|
6 | .globl __thebpb
|
---|
7 | .globl __thedir
|
---|
8 | .globl __thefat
|
---|
9 | .globl __clsfat
|
---|
10 | .text
|
---|
11 | __clsfat:
|
---|
12 | ~~_clsfat:
|
---|
13 | link R14,#-4
|
---|
14 | *line 34
|
---|
15 | *line 35
|
---|
16 | clr (sp)
|
---|
17 | move.l __thebpb,R8
|
---|
18 | move 10(R8),-(sp)
|
---|
19 | move.l __thebpb,R8
|
---|
20 | move 8(R8),-(sp)
|
---|
21 | move.l #__thefat,-(sp)
|
---|
22 | move #1,-(sp)
|
---|
23 | move #4,-(sp)
|
---|
24 | jsr _trap13
|
---|
25 | adda.l #12,sp
|
---|
26 | *line 39
|
---|
27 | *line 40
|
---|
28 | clr (sp)
|
---|
29 | move.l __thebpb,R8
|
---|
30 | move 10(R8),-(sp)
|
---|
31 | move.l __thebpb,R8
|
---|
32 | clr R0
|
---|
33 | move 8(R8),R0
|
---|
34 | sub R0,(sp)
|
---|
35 | move.l __thebpb,R8
|
---|
36 | move 8(R8),-(sp)
|
---|
37 | move.l #__thefat,-(sp)
|
---|
38 | move #1,-(sp)
|
---|
39 | move #4,-(sp)
|
---|
40 | jsr _trap13
|
---|
41 | adda.l #12,sp
|
---|
42 | *line 42
|
---|
43 | clr __fatmod
|
---|
44 | L1:unlk R14
|
---|
45 | rts
|
---|
46 | .globl __clsdir
|
---|
47 | .text
|
---|
48 | __clsdir:
|
---|
49 | ~~_clsdir:
|
---|
50 | link R14,#-4
|
---|
51 | *line 55
|
---|
52 | *line 56
|
---|
53 | clr (sp)
|
---|
54 | move.l __thebpb,R8
|
---|
55 | move 10(R8),-(sp)
|
---|
56 | move.l __thebpb,R8
|
---|
57 | clr R0
|
---|
58 | move 8(R8),R0
|
---|
59 | add R0,(sp)
|
---|
60 | move.l __thebpb,R8
|
---|
61 | move 6(R8),-(sp)
|
---|
62 | move.l #__thedir,-(sp)
|
---|
63 | move #1,-(sp)
|
---|
64 | move #4,-(sp)
|
---|
65 | jsr _trap13
|
---|
66 | adda.l #12,sp
|
---|
67 | *line 58
|
---|
68 | clr __dirmod
|
---|
69 | L2:unlk R14
|
---|
70 | rts
|
---|
71 | .globl _close
|
---|
72 | .text
|
---|
73 | _close:
|
---|
74 | ~~close:
|
---|
75 | ~fd=8
|
---|
76 | link R14,#0
|
---|
77 | movem.l R6-R7/R13-R13,-(sp)
|
---|
78 | ~chp=R13
|
---|
79 | ~rc=R7
|
---|
80 | *line 77
|
---|
81 | *line 77
|
---|
82 | tst 8(R14)
|
---|
83 | blt L10000
|
---|
84 | cmp #11,8(R14)
|
---|
85 | ble L4
|
---|
86 | L10000:*line 78
|
---|
87 | *line 79
|
---|
88 | move #9,_errno
|
---|
89 | *line 80
|
---|
90 | move #-1,R0
|
---|
91 | bra L3
|
---|
92 | *line 81
|
---|
93 | *line 82
|
---|
94 | L4:
|
---|
95 | *line 83
|
---|
96 | move 8(R14),R0
|
---|
97 | muls #12,R0
|
---|
98 | move.l R0,R13
|
---|
99 | add.l #_chantab,R13
|
---|
100 | *line 85
|
---|
101 | move.l 8(R13),-(sp)
|
---|
102 | move.l 4(R13),R8
|
---|
103 | jsr (R8)
|
---|
104 | addq.l #4,sp
|
---|
105 | move R0,R7
|
---|
106 | *line 87
|
---|
107 | clr.b (R13)
|
---|
108 | *line 88
|
---|
109 | clr.b 1(R13)
|
---|
110 | *line 89
|
---|
111 | clr.b 2(R13)
|
---|
112 | *line 90
|
---|
113 | clr.b 3(R13)
|
---|
114 | *line 91
|
---|
115 | move.l #__badfd,4(R13)
|
---|
116 | *line 93
|
---|
117 | *line 94
|
---|
118 | tst __fatmod
|
---|
119 | beq L5
|
---|
120 | *line 94
|
---|
121 | jsr __clsfat
|
---|
122 | *line 95
|
---|
123 | L5:
|
---|
124 | *line 96
|
---|
125 | *line 97
|
---|
126 | tst __dirmod
|
---|
127 | beq L6
|
---|
128 | *line 97
|
---|
129 | jsr __clsdir
|
---|
130 | *line 98
|
---|
131 | L6:
|
---|
132 | *line 99
|
---|
133 | move R7,R0
|
---|
134 | bra L3
|
---|
135 | L3:tst.l (sp)+
|
---|
136 | movem.l (sp)+,R7-R7/R13-R13
|
---|
137 | unlk R14
|
---|
138 | rts
|
---|
139 | .globl __filecl
|
---|
140 | .text
|
---|
141 | __filecl:
|
---|
142 | ~~_filecl:
|
---|
143 | ~fp=R13
|
---|
144 | link R14,#0
|
---|
145 | movem.l R6-R7/R13-R13,-(sp)
|
---|
146 | ~rc=R7
|
---|
147 | *line 117
|
---|
148 | move.l 8(R14),R13
|
---|
149 | *line 117
|
---|
150 | move.l R13,(sp)
|
---|
151 | jsr _ClsFile
|
---|
152 | move R0,R7
|
---|
153 | *line 118
|
---|
154 | clr 32(R13)
|
---|
155 | *line 119
|
---|
156 | move R7,R0
|
---|
157 | bra L7
|
---|
158 | L7:tst.l (sp)+
|
---|
159 | movem.l (sp)+,R7-R7/R13-R13
|
---|
160 | unlk R14
|
---|
161 | rts
|
---|
162 | .globl __fd_cls
|
---|
163 | .text
|
---|
164 | __fd_cls:
|
---|
165 | ~~_fd_cls:
|
---|
166 | link R14,#0
|
---|
167 | movem.l R6-R7,-(sp)
|
---|
168 | ~fd=R7
|
---|
169 | *line 132
|
---|
170 | clr R7
|
---|
171 | bra L11
|
---|
172 | L12:
|
---|
173 | *line 133
|
---|
174 | *line 134
|
---|
175 | move R7,R0
|
---|
176 | muls #12,R0
|
---|
177 | move.l R0,R8
|
---|
178 | move.l #_chantab,R9
|
---|
179 | move.l 4(R8,R9.l),R0
|
---|
180 | cmp.l #__badfd,R0
|
---|
181 | beq L13
|
---|
182 | *line 134
|
---|
183 | move R7,(sp)
|
---|
184 | jsr _close
|
---|
185 | *line 135
|
---|
186 | L13:L10:
|
---|
187 | *line 132
|
---|
188 | add #1,R7
|
---|
189 | L11:
|
---|
190 | *line 132
|
---|
191 | cmp #11,R7
|
---|
192 | blt L12
|
---|
193 | L9:
|
---|
194 | *line 136
|
---|
195 | jsr __clsvol
|
---|
196 | L8:tst.l (sp)+
|
---|
197 | movem.l (sp)+,R7-R7
|
---|
198 | unlk R14
|
---|
199 | rts
|
---|
200 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.