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.7 KB
|
Line | |
---|
1 | .globl _Cbuffs
|
---|
2 | .globl _Stdbufs
|
---|
3 | .globl _Stdbuf
|
---|
4 | .globl ___atab
|
---|
5 | .text
|
---|
6 | _pipc:
|
---|
7 | ~~pipc:
|
---|
8 | ~chars=8
|
---|
9 | ~length=12
|
---|
10 | link R14,#-6
|
---|
11 | ~i=-2
|
---|
12 | *line 47
|
---|
13 | clr -2(R14)
|
---|
14 | bra L5
|
---|
15 | L6:
|
---|
16 | *line 48
|
---|
17 | *line 49
|
---|
18 | move.l 8(R14),R8
|
---|
19 | move -2(R14),R9
|
---|
20 | add.l R9,R8
|
---|
21 | btst #7,(R8)
|
---|
22 | bne L7
|
---|
23 | move -2(R14),R8
|
---|
24 | move.l 8(R14),R9
|
---|
25 | move.b 0(R8,R9.l),R0
|
---|
26 | ext.w R0
|
---|
27 | and #255,R0
|
---|
28 | move R0,R8
|
---|
29 | move.l #___atab,R9
|
---|
30 | move.b 0(R8,R9.l),R0
|
---|
31 | ext.w R0
|
---|
32 | and #94,R0
|
---|
33 | beq L7
|
---|
34 | *line 49
|
---|
35 | move -2(R14),R8
|
---|
36 | move.l 8(R14),R9
|
---|
37 | move.b 0(R8,R9.l),R0
|
---|
38 | ext.w R0
|
---|
39 | move R0,(sp)
|
---|
40 | move.l #L8,-(sp)
|
---|
41 | jsr _printf
|
---|
42 | addq.l #4,sp
|
---|
43 | *line 50
|
---|
44 | bra L9
|
---|
45 | L7:
|
---|
46 | *line 51
|
---|
47 | move.l #L10,(sp)
|
---|
48 | jsr _printf
|
---|
49 | L9:L4:
|
---|
50 | *line 47
|
---|
51 | add #1,-2(R14)
|
---|
52 | L5:
|
---|
53 | *line 47
|
---|
54 | move -2(R14),R0
|
---|
55 | cmp 12(R14),R0
|
---|
56 | blt L6
|
---|
57 | L3:L2:unlk R14
|
---|
58 | rts
|
---|
59 | .globl _mdump
|
---|
60 | .text
|
---|
61 | _mdump:
|
---|
62 | ~~mdump:
|
---|
63 | ~begin=8
|
---|
64 | ~end=12
|
---|
65 | ~start=16
|
---|
66 | link R14,#-36
|
---|
67 | ~i=-4
|
---|
68 | ~ii=-8
|
---|
69 | ~j=-10
|
---|
70 | ~jj=-12
|
---|
71 | ~k=-14
|
---|
72 | ~c=-16
|
---|
73 | ~chars=-32
|
---|
74 | *line 71
|
---|
75 | clr.l -4(R14)
|
---|
76 | *line 72
|
---|
77 | move.l 16(R14),-8(R14)
|
---|
78 | *line 73
|
---|
79 | clr -10(R14)
|
---|
80 | *line 75
|
---|
81 | *line 76
|
---|
82 | move.l 8(R14),R0
|
---|
83 | cmp.l 12(R14),R0
|
---|
84 | bhi L11
|
---|
85 | *line 77
|
---|
86 | *line 78
|
---|
87 | bra L14
|
---|
88 | L13:
|
---|
89 | *line 79
|
---|
90 | *line 80
|
---|
91 | move.l 8(R14),R8
|
---|
92 | move.b (R8),-16(R14)
|
---|
93 | add.l #1,8(R14)
|
---|
94 | *line 81
|
---|
95 | *line 82
|
---|
96 | *line 82
|
---|
97 | move.l #$10,-(sp)
|
---|
98 | move.l -4(R14),-(sp)
|
---|
99 | jsr lrem
|
---|
100 | addq.l #8,sp
|
---|
101 | tst.l R0
|
---|
102 | bne L15
|
---|
103 | *line 83
|
---|
104 | *line 84
|
---|
105 | *line 84
|
---|
106 | tst.l -4(R14)
|
---|
107 | beq L16
|
---|
108 | *line 85
|
---|
109 | *line 86
|
---|
110 | clr -10(R14)
|
---|
111 | *line 87
|
---|
112 | move.l #L17,(sp)
|
---|
113 | jsr _printf
|
---|
114 | *line 88
|
---|
115 | move #16,(sp)
|
---|
116 | move.l R14,-(sp)
|
---|
117 | add.l #-32,(sp)
|
---|
118 | jsr _pipc
|
---|
119 | addq.l #4,sp
|
---|
120 | *line 89
|
---|
121 | *line 90
|
---|
122 | L16:
|
---|
123 | *line 91
|
---|
124 | move.l -8(R14),(sp)
|
---|
125 | move.l #L18,-(sp)
|
---|
126 | jsr _printf
|
---|
127 | addq.l #4,sp
|
---|
128 | *line 92
|
---|
129 | *line 93
|
---|
130 | L15:
|
---|
131 | *line 94
|
---|
132 | add.l #$1,-8(R14)
|
---|
133 | *line 95
|
---|
134 | add.l #$1,-4(R14)
|
---|
135 | *line 96
|
---|
136 | *line 97
|
---|
137 | move.b -16(R14),R0
|
---|
138 | ext.w R0
|
---|
139 | move R0,(sp)
|
---|
140 | and #255,(sp)
|
---|
141 | move.l #L19,-(sp)
|
---|
142 | jsr _printf
|
---|
143 | addq.l #4,sp
|
---|
144 | *line 98
|
---|
145 | move.l R14,R8
|
---|
146 | move -10(R14),R9
|
---|
147 | add.l R9,R8
|
---|
148 | move.b -16(R14),-32(R8)
|
---|
149 | add #1,-10(R14)
|
---|
150 | L14:
|
---|
151 | *line 99
|
---|
152 | move.l 8(R14),R0
|
---|
153 | cmp.l 12(R14),R0
|
---|
154 | bls L13
|
---|
155 | L12:
|
---|
156 | *line 101
|
---|
157 | *line 101
|
---|
158 | move.l #$10,-(sp)
|
---|
159 | move.l -4(R14),-(sp)
|
---|
160 | jsr lrem
|
---|
161 | addq.l #8,sp
|
---|
162 | move R0,-14(R14)
|
---|
163 | beq L20
|
---|
164 | *line 102
|
---|
165 | *line 103
|
---|
166 | move #16,R0
|
---|
167 | sub -14(R14),R0
|
---|
168 | move R0,-14(R14)
|
---|
169 | *line 104
|
---|
170 | *line 105
|
---|
171 | clr -12(R14)
|
---|
172 | bra L23
|
---|
173 | L24:
|
---|
174 | *line 106
|
---|
175 | move.l #L25,(sp)
|
---|
176 | jsr _printf
|
---|
177 | L22:
|
---|
178 | *line 105
|
---|
179 | add #1,-12(R14)
|
---|
180 | L23:
|
---|
181 | *line 105
|
---|
182 | move -14(R14),R0
|
---|
183 | muls #3,R0
|
---|
184 | cmp -12(R14),R0
|
---|
185 | bgt L24
|
---|
186 | L21:
|
---|
187 | *line 106
|
---|
188 | *line 107
|
---|
189 | *line 108
|
---|
190 | L20:
|
---|
191 | *line 109
|
---|
192 | move.l #L26,(sp)
|
---|
193 | jsr _printf
|
---|
194 | *line 110
|
---|
195 | move #16,(sp)
|
---|
196 | move.l R14,-(sp)
|
---|
197 | add.l #-32,(sp)
|
---|
198 | jsr _pipc
|
---|
199 | addq.l #4,sp
|
---|
200 | *line 111
|
---|
201 | move.l #L27,(sp)
|
---|
202 | jsr _printf
|
---|
203 | L11:unlk R14
|
---|
204 | rts
|
---|
205 | .data
|
---|
206 | L8:.dc.b $25,$63,$0
|
---|
207 | L10:.dc.b $2E,$0
|
---|
208 | L17:.dc.b $20,$20,$0
|
---|
209 | L18:.dc.b $A,$25,$30,$38,$6C,$58,$3A,$0
|
---|
210 | L19:.dc.b $20,$25,$30,$32,$2E,$32,$58,$0
|
---|
211 | L25:.dc.b $20,$0
|
---|
212 | L26:.dc.b $20,$20,$0
|
---|
213 | L27:.dc.b $A,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.