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