Last change
on this file since 526a993 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 _setwq
|
---|
2 | .text
|
---|
3 | _setwq:
|
---|
4 | ~~setwq:
|
---|
5 | ~qp=R13
|
---|
6 | ~qadr=12
|
---|
7 | ~qsiz=16
|
---|
8 | ~hi=18
|
---|
9 | ~lo=20
|
---|
10 | link R14,#0
|
---|
11 | movem.l R7-R7/R13-R13,-(sp)
|
---|
12 | *line 37
|
---|
13 | move.l 8(R14),R13
|
---|
14 | *line 37
|
---|
15 | *line 38
|
---|
16 | tst.l 12(R14)
|
---|
17 | bne L2
|
---|
18 | *line 38
|
---|
19 | clr 16(R14)
|
---|
20 | *line 39
|
---|
21 | L2:
|
---|
22 | *line 40
|
---|
23 | move.l 12(R14),12(R13)
|
---|
24 | *line 41
|
---|
25 | move 16(R14),(R13)
|
---|
26 | *line 42
|
---|
27 | clr 2(R13)
|
---|
28 | *line 43
|
---|
29 | clr 4(R13)
|
---|
30 | *line 44
|
---|
31 | clr 6(R13)
|
---|
32 | *line 45
|
---|
33 | move 18(R14),8(R13)
|
---|
34 | *line 46
|
---|
35 | move 20(R14),10(R13)
|
---|
36 | *line 48
|
---|
37 | clr R0
|
---|
38 | move 16(R14),R0
|
---|
39 | bra L1
|
---|
40 | L1:tst.l (sp)+
|
---|
41 | movem.l (sp)+,R13-R13
|
---|
42 | unlk R14
|
---|
43 | rts
|
---|
44 | .globl _putwq
|
---|
45 | .text
|
---|
46 | _putwq:
|
---|
47 | ~~putwq:
|
---|
48 | ~qp=R13
|
---|
49 | ~c=R7
|
---|
50 | link R14,#0
|
---|
51 | movem.l R6-R7/R13-R13,-(sp)
|
---|
52 | *line 77
|
---|
53 | move.l 8(R14),R13
|
---|
54 | *line 77
|
---|
55 | move 12(R14),R7
|
---|
56 | *line 77
|
---|
57 | *line 77
|
---|
58 | tst (R13)
|
---|
59 | beq L4
|
---|
60 | *line 78
|
---|
61 | *line 79
|
---|
62 | *line 80
|
---|
63 | clr R0
|
---|
64 | move 2(R13),R0
|
---|
65 | cmp (R13),R0
|
---|
66 | bne L5
|
---|
67 | *line 80
|
---|
68 | move #-1,R0
|
---|
69 | bra L3
|
---|
70 | *line 81
|
---|
71 | L5:
|
---|
72 | *line 82
|
---|
73 | clr R0
|
---|
74 | move 4(R13),R0
|
---|
75 | lsl #1,R0
|
---|
76 | swap R0
|
---|
77 | clr R0
|
---|
78 | swap R0
|
---|
79 | add.l 12(R13),R0
|
---|
80 | move.l R0,R8
|
---|
81 | move R7,(R8)
|
---|
82 | add #1,4(R13)
|
---|
83 | *line 83
|
---|
84 | *line 84
|
---|
85 | *line 85
|
---|
86 | clr R0
|
---|
87 | move 4(R13),R0
|
---|
88 | cmp (R13),R0
|
---|
89 | blo L6
|
---|
90 | *line 85
|
---|
91 | clr 4(R13)
|
---|
92 | *line 86
|
---|
93 | L6:
|
---|
94 | *line 87
|
---|
95 | *line 88
|
---|
96 | add #1,2(R13)
|
---|
97 | clr R0
|
---|
98 | move 2(R13),R0
|
---|
99 | cmp 8(R13),R0
|
---|
100 | bne L7
|
---|
101 | *line 88
|
---|
102 | move #1,R0
|
---|
103 | bra L3
|
---|
104 | *line 89
|
---|
105 | bra L8
|
---|
106 | L7:
|
---|
107 | *line 90
|
---|
108 | clr R0
|
---|
109 | bra L3
|
---|
110 | L8:
|
---|
111 | *line 91
|
---|
112 | bra L9
|
---|
113 | L4:
|
---|
114 | *line 92
|
---|
115 | *line 93
|
---|
116 | *line 94
|
---|
117 | move #-2,R0
|
---|
118 | bra L3
|
---|
119 | L9:L3:tst.l (sp)+
|
---|
120 | movem.l (sp)+,R7-R7/R13-R13
|
---|
121 | unlk R14
|
---|
122 | rts
|
---|
123 | .globl _getwq
|
---|
124 | .text
|
---|
125 | _getwq:
|
---|
126 | ~~getwq:
|
---|
127 | ~qp=R13
|
---|
128 | ~p=R12
|
---|
129 | link R14,#0
|
---|
130 | movem.l R7-R7/R12-R13,-(sp)
|
---|
131 | *line 124
|
---|
132 | move.l 8(R14),R13
|
---|
133 | *line 124
|
---|
134 | move.l 12(R14),R12
|
---|
135 | *line 124
|
---|
136 | *line 124
|
---|
137 | tst (R13)
|
---|
138 | beq L11
|
---|
139 | *line 125
|
---|
140 | *line 126
|
---|
141 | *line 126
|
---|
142 | tst 2(R13)
|
---|
143 | beq L12
|
---|
144 | *line 127
|
---|
145 | *line 128
|
---|
146 | clr R0
|
---|
147 | move 6(R13),R0
|
---|
148 | lsl #1,R0
|
---|
149 | swap R0
|
---|
150 | clr R0
|
---|
151 | swap R0
|
---|
152 | add.l 12(R13),R0
|
---|
153 | move.l R0,R8
|
---|
154 | move (R8),(R12)
|
---|
155 | add #1,6(R13)
|
---|
156 | *line 129
|
---|
157 | *line 130
|
---|
158 | *line 131
|
---|
159 | clr R0
|
---|
160 | move 6(R13),R0
|
---|
161 | cmp (R13),R0
|
---|
162 | blo L13
|
---|
163 | *line 131
|
---|
164 | clr 6(R13)
|
---|
165 | *line 132
|
---|
166 | L13:
|
---|
167 | *line 133
|
---|
168 | *line 134
|
---|
169 | sub #1,2(R13)
|
---|
170 | clr R0
|
---|
171 | move 2(R13),R0
|
---|
172 | cmp 10(R13),R0
|
---|
173 | bne L14
|
---|
174 | *line 134
|
---|
175 | move #1,R0
|
---|
176 | bra L10
|
---|
177 | *line 135
|
---|
178 | bra L15
|
---|
179 | L14:
|
---|
180 | *line 136
|
---|
181 | clr R0
|
---|
182 | bra L10
|
---|
183 | L15:
|
---|
184 | *line 137
|
---|
185 | bra L16
|
---|
186 | L12:
|
---|
187 | *line 138
|
---|
188 | *line 139
|
---|
189 | *line 140
|
---|
190 | move #-1,R0
|
---|
191 | bra L10
|
---|
192 | L16:
|
---|
193 | *line 141
|
---|
194 | *line 142
|
---|
195 | bra L17
|
---|
196 | L11:
|
---|
197 | *line 143
|
---|
198 | *line 144
|
---|
199 | *line 145
|
---|
200 | move #-2,R0
|
---|
201 | bra L10
|
---|
202 | L17:L10:tst.l (sp)+
|
---|
203 | movem.l (sp)+,R12-R13
|
---|
204 | unlk R14
|
---|
205 | rts
|
---|
206 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.