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:
4.1 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _ebflag
|
---|
| 2 | .globl _ebuf
|
---|
| 3 | .globl _curfet
|
---|
| 4 | .globl _cfetp
|
---|
| 5 | .globl _infetp
|
---|
| 6 | .globl _instob
|
---|
| 7 | .globl _stccol
|
---|
| 8 | .globl _subj
|
---|
| 9 | .globl _curvce
|
---|
| 10 | .globl _curfunc
|
---|
| 11 | .globl _curpnt
|
---|
| 12 | .globl _idbox
|
---|
| 13 | .globl _dspbuf
|
---|
| 14 | .globl _vbufs
|
---|
| 15 | .globl _pntptr
|
---|
| 16 | .globl _et_ipnt
|
---|
| 17 | .text
|
---|
| 18 | _et_ipnt:
|
---|
| 19 | ~~et_ipnt:
|
---|
| 20 | ~n=8
|
---|
| 21 | link R14,#-4
|
---|
| 22 | *line 46
|
---|
| 23 | move _subj,(sp)
|
---|
| 24 | move.l #L2,-(sp)
|
---|
| 25 | move.l #_ebuf,-(sp)
|
---|
| 26 | jsr _sprintf
|
---|
| 27 | addq.l #8,sp
|
---|
| 28 | *line 47
|
---|
| 29 | move #1,_ebflag
|
---|
| 30 | *line 49
|
---|
| 31 | clr R0
|
---|
| 32 | bra L1
|
---|
| 33 | L1:unlk R14
|
---|
| 34 | rts
|
---|
| 35 | .globl _ef_ipnt
|
---|
| 36 | .text
|
---|
| 37 | _ef_ipnt:
|
---|
| 38 | ~~ef_ipnt:
|
---|
| 39 | ~n=8
|
---|
| 40 | link R14,#0
|
---|
| 41 | movem.l R3-R7/R12-R13,-(sp)
|
---|
| 42 | ~i=R7
|
---|
| 43 | ~tmpval=R6
|
---|
| 44 | ~endpnt=R5
|
---|
| 45 | ~basept=R4
|
---|
| 46 | ~fp=R13
|
---|
| 47 | ~ip=R12
|
---|
| 48 | *line 69
|
---|
| 49 | move _curvce,R0
|
---|
| 50 | muls #3938,R0
|
---|
| 51 | move.l R0,R12
|
---|
| 52 | add.l #_vbufs,R12
|
---|
| 53 | *line 70
|
---|
| 54 | move.l R12,R13
|
---|
| 55 | move _curfunc,R0
|
---|
| 56 | muls #12,R0
|
---|
| 57 | add.l R0,R13
|
---|
| 58 | add.l #86,R13
|
---|
| 59 | *line 72
|
---|
| 60 | clr.b 2+_ebuf
|
---|
| 61 | *line 73
|
---|
| 62 | clr _ebflag
|
---|
| 63 | *line 75
|
---|
| 64 | clr R6
|
---|
| 65 | *line 77
|
---|
| 66 | clr R7
|
---|
| 67 | bra L6
|
---|
| 68 | L7:
|
---|
| 69 | *line 78
|
---|
| 70 | muls #10,R6
|
---|
| 71 | move.l #_ebuf,R8
|
---|
| 72 | move.b 0(R8,R7),R0
|
---|
| 73 | ext.w R0
|
---|
| 74 | add R0,R6
|
---|
| 75 | add #-48,R6
|
---|
| 76 | L5:
|
---|
| 77 | *line 77
|
---|
| 78 | add #1,R7
|
---|
| 79 | L6:
|
---|
| 80 | *line 77
|
---|
| 81 | cmp #2,R7
|
---|
| 82 | blt L7
|
---|
| 83 | L4:
|
---|
| 84 | *line 80
|
---|
| 85 | move.b 6(R13),R4
|
---|
| 86 | ext.w R4
|
---|
| 87 | *line 81
|
---|
| 88 | move.b 6(R13),R5
|
---|
| 89 | ext.w R5
|
---|
| 90 | move.b 5(R13),R0
|
---|
| 91 | ext.w R0
|
---|
| 92 | add R0,R5
|
---|
| 93 | sub #1,R5
|
---|
| 94 | *line 86
|
---|
| 95 | *line 86
|
---|
| 96 | move.b 5(R13),R0
|
---|
| 97 | ext.w R0
|
---|
| 98 | cmp R0,R6
|
---|
| 99 | blt L8
|
---|
| 100 | *line 87
|
---|
| 101 | *line 88
|
---|
| 102 | *line 88
|
---|
| 103 | cmp.b #100,5(R13)
|
---|
| 104 | bne L9
|
---|
| 105 | *line 89
|
---|
| 106 | *line 90
|
---|
| 107 | move #1,(sp)
|
---|
| 108 | jsr _showpt
|
---|
| 109 | *line 91
|
---|
| 110 | move #-1,R0
|
---|
| 111 | bra L3
|
---|
| 112 | *line 92
|
---|
| 113 | *line 95
|
---|
| 114 | L9:
|
---|
| 115 | *line 96
|
---|
| 116 | *line 96
|
---|
| 117 | move R5,(sp)
|
---|
| 118 | move _curfunc,-(sp)
|
---|
| 119 | move.l R12,-(sp)
|
---|
| 120 | jsr _inspnt
|
---|
| 121 | addq.l #6,sp
|
---|
| 122 | tst R0
|
---|
| 123 | bne L10
|
---|
| 124 | *line 99
|
---|
| 125 | *line 100
|
---|
| 126 | move #1,(sp)
|
---|
| 127 | jsr _showpt
|
---|
| 128 | *line 101
|
---|
| 129 | move #-1,R0
|
---|
| 130 | bra L3
|
---|
| 131 | *line 102
|
---|
| 132 | bra L11
|
---|
| 133 | L10:
|
---|
| 134 | *line 103
|
---|
| 135 | *line 104
|
---|
| 136 | *line 105
|
---|
| 137 | move.b 5(R13),R0
|
---|
| 138 | ext.w R0
|
---|
| 139 | sub #1,R0
|
---|
| 140 | move R0,_subj
|
---|
| 141 | *line 106
|
---|
| 142 | jsr _pntsel
|
---|
| 143 | *line 107
|
---|
| 144 | move #12,(sp)
|
---|
| 145 | clr -(sp)
|
---|
| 146 | move.l _pntptr,-(sp)
|
---|
| 147 | jsr _memset
|
---|
| 148 | addq.l #6,sp
|
---|
| 149 | *line 108
|
---|
| 150 | move.l _pntptr,R8
|
---|
| 151 | move.l _pntptr,R9
|
---|
| 152 | move -10(R9),2(R8)
|
---|
| 153 | *line 109
|
---|
| 154 | move _subj,(sp)
|
---|
| 155 | sub #1,(sp)
|
---|
| 156 | move _curfunc,-(sp)
|
---|
| 157 | jsr _timeto
|
---|
| 158 | addq.l #2,sp
|
---|
| 159 | move R0,(sp)
|
---|
| 160 | add #1,(sp)
|
---|
| 161 | move _subj,-(sp)
|
---|
| 162 | jsr _setseg
|
---|
| 163 | addq.l #2,sp
|
---|
| 164 | *line 110
|
---|
| 165 | move #1,(sp)
|
---|
| 166 | jsr _showpt
|
---|
| 167 | *line 114
|
---|
| 168 | *line 115
|
---|
| 169 | jsr _modinst
|
---|
| 170 | *line 116
|
---|
| 171 | clr R0
|
---|
| 172 | bra L3
|
---|
| 173 | L11:
|
---|
| 174 | *line 117
|
---|
| 175 | *line 118
|
---|
| 176 | bra L12
|
---|
| 177 | L8:
|
---|
| 178 | *line 119
|
---|
| 179 | *line 122
|
---|
| 180 | *line 123
|
---|
| 181 | *line 124
|
---|
| 182 | move R6,R0
|
---|
| 183 | add R4,R0
|
---|
| 184 | cmp R0,R5
|
---|
| 185 | bge L13
|
---|
| 186 | *line 124
|
---|
| 187 | move #-1,R0
|
---|
| 188 | bra L3
|
---|
| 189 | *line 125
|
---|
| 190 | L13:
|
---|
| 191 | *line 126
|
---|
| 192 | move R6,_subj
|
---|
| 193 | *line 127
|
---|
| 194 | jsr _pntsel
|
---|
| 195 | *line 128
|
---|
| 196 | move #1,(sp)
|
---|
| 197 | jsr _showpt
|
---|
| 198 | *line 132
|
---|
| 199 | *line 133
|
---|
| 200 | clr R0
|
---|
| 201 | bra L3
|
---|
| 202 | L12:L3:tst.l (sp)+
|
---|
| 203 | movem.l (sp)+,R4-R7/R12-R13
|
---|
| 204 | unlk R14
|
---|
| 205 | rts
|
---|
| 206 | .globl _rd_ipnt
|
---|
| 207 | .text
|
---|
| 208 | _rd_ipnt:
|
---|
| 209 | ~~rd_ipnt:
|
---|
| 210 | ~n=8
|
---|
| 211 | link R14,#-4
|
---|
| 212 | *line 150
|
---|
| 213 | move _subj,(sp)
|
---|
| 214 | move.l #L15,-(sp)
|
---|
| 215 | move.l #_dspbuf,-(sp)
|
---|
| 216 | jsr _sprintf
|
---|
| 217 | addq.l #8,sp
|
---|
| 218 | *line 152
|
---|
| 219 | clr (sp)
|
---|
| 220 | jsr _vbank
|
---|
| 221 | *line 154
|
---|
| 222 | *line 155
|
---|
| 223 | move #14,(sp)
|
---|
| 224 | move.l #_dspbuf,-(sp)
|
---|
| 225 | move 8(R14),R0
|
---|
| 226 | asl #4,R0
|
---|
| 227 | ext.l R0
|
---|
| 228 | move.l R0,R8
|
---|
| 229 | move.l #_idbox,R9
|
---|
| 230 | move 14(R8,R9.l),-(sp)
|
---|
| 231 | move 8(R14),R0
|
---|
| 232 | asl #4,R0
|
---|
| 233 | ext.l R0
|
---|
| 234 | move.l R0,R8
|
---|
| 235 | move.l #_idbox,R9
|
---|
| 236 | move 12(R8,R9.l),-(sp)
|
---|
| 237 | add #1,(sp)
|
---|
| 238 | move 8(R14),R0
|
---|
| 239 | asl #4,R0
|
---|
| 240 | ext.l R0
|
---|
| 241 | move.l R0,R8
|
---|
| 242 | move.l #_idbox,R9
|
---|
| 243 | move 10(R8,R9.l),-(sp)
|
---|
| 244 | move 8(R14),R0
|
---|
| 245 | asl #4,R0
|
---|
| 246 | ext.l R0
|
---|
| 247 | move.l R0,R8
|
---|
| 248 | move.l #_idbox,R9
|
---|
| 249 | move 8(R8,R9.l),-(sp)
|
---|
| 250 | move #64,-(sp)
|
---|
| 251 | move.l _instob,-(sp)
|
---|
| 252 | jsr _vcputsv
|
---|
| 253 | adda.l #18,sp
|
---|
| 254 | *line 157
|
---|
| 255 | clr R0
|
---|
| 256 | bra L14
|
---|
| 257 | L14:unlk R14
|
---|
| 258 | rts
|
---|
| 259 | .globl _nd_ipnt
|
---|
| 260 | .text
|
---|
| 261 | _nd_ipnt:
|
---|
| 262 | ~~nd_ipnt:
|
---|
| 263 | ~k=R7
|
---|
| 264 | ~n=8
|
---|
| 265 | link R14,#0
|
---|
| 266 | movem.l R5-R7,-(sp)
|
---|
| 267 | ~ec=R6
|
---|
| 268 | *line 176
|
---|
| 269 | move 10(R14),R7
|
---|
| 270 | *line 176
|
---|
| 271 | move _stccol,R6
|
---|
| 272 | move.l _cfetp,R8
|
---|
| 273 | move 2(R8),R0
|
---|
| 274 | sub R0,R6
|
---|
| 275 | *line 177
|
---|
| 276 | move R7,R0
|
---|
| 277 | add #48,R0
|
---|
| 278 | move R6,R9
|
---|
| 279 | add.l #_ebuf,R9
|
---|
| 280 | move.b R0,(R9)
|
---|
| 281 | *line 178
|
---|
| 282 | clr.b 2+_ebuf
|
---|
| 283 | *line 180
|
---|
| 284 | move R7,R0
|
---|
| 285 | add #48,R0
|
---|
| 286 | move.b R0,_dspbuf
|
---|
| 287 | *line 181
|
---|
| 288 | clr.b 1+_dspbuf
|
---|
| 289 | *line 183
|
---|
| 290 | clr (sp)
|
---|
| 291 | jsr _vbank
|
---|
| 292 | *line 185
|
---|
| 293 | *line 186
|
---|
| 294 | move #14,(sp)
|
---|
| 295 | move.l #_dspbuf,-(sp)
|
---|
| 296 | move _stccol,-(sp)
|
---|
| 297 | move 8(R14),R0
|
---|
| 298 | asl #4,R0
|
---|
| 299 | ext.l R0
|
---|
| 300 | move.l R0,R8
|
---|
| 301 | move.l #_idbox,R9
|
---|
| 302 | move 12(R8,R9.l),-(sp)
|
---|
| 303 | add #1,(sp)
|
---|
| 304 | move 8(R14),R0
|
---|
| 305 | asl #4,R0
|
---|
| 306 | ext.l R0
|
---|
| 307 | move.l R0,R8
|
---|
| 308 | move.l #_idbox,R9
|
---|
| 309 | move 10(R8,R9.l),-(sp)
|
---|
| 310 | move #10,-(sp)
|
---|
| 311 | move #64,-(sp)
|
---|
| 312 | move.l _instob,-(sp)
|
---|
| 313 | jsr _vcputsv
|
---|
| 314 | adda.l #18,sp
|
---|
| 315 | *line 188
|
---|
| 316 | jsr _advicur
|
---|
| 317 | *line 190
|
---|
| 318 | clr R0
|
---|
| 319 | bra L16
|
---|
| 320 | L16:tst.l (sp)+
|
---|
| 321 | movem.l (sp)+,R6-R7
|
---|
| 322 | unlk R14
|
---|
| 323 | rts
|
---|
| 324 | .data
|
---|
| 325 | L2:.dc.b $25,$30,$32,$64,$0
|
---|
| 326 | L15:.dc.b $25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.