Last change
on this file since 4810254 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
4.8 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 _pecase
|
---|
| 13 | .globl _npts
|
---|
| 14 | .globl _temin
|
---|
| 15 | .globl _temax
|
---|
| 16 | .globl _pntsv
|
---|
| 17 | .globl _idbox
|
---|
| 18 | .globl _dspbuf
|
---|
| 19 | .globl _vbufs
|
---|
| 20 | .globl _pntptr
|
---|
| 21 | .globl _et_itim
|
---|
| 22 | .text
|
---|
| 23 | _et_itim:
|
---|
| 24 | ~~et_itim:
|
---|
| 25 | ~n=8
|
---|
| 26 | link R14,#0
|
---|
| 27 | movem.l R3-R7,-(sp)
|
---|
| 28 | ~th=R7
|
---|
| 29 | ~tl=R6
|
---|
| 30 | ~tt=R5
|
---|
| 31 | ~sc=R4
|
---|
| 32 | *line 50
|
---|
| 33 | jsr _pntsel
|
---|
| 34 | *line 52
|
---|
| 35 | move.l #$3e8,R4
|
---|
| 36 | *line 53
|
---|
| 37 | move _subj,(sp)
|
---|
| 38 | move _curfunc,-(sp)
|
---|
| 39 | jsr _timeto
|
---|
| 40 | addq.l #2,sp
|
---|
| 41 | ext.l R0
|
---|
| 42 | move.l R0,R5
|
---|
| 43 | *line 54
|
---|
| 44 | move.l R4,-(sp)
|
---|
| 45 | move.l R5,-(sp)
|
---|
| 46 | jsr ldiv
|
---|
| 47 | addq.l #8,sp
|
---|
| 48 | move R0,R7
|
---|
| 49 | *line 55
|
---|
| 50 | move R7,R0
|
---|
| 51 | ext.l R0
|
---|
| 52 | move.l R0,-(sp)
|
---|
| 53 | move.l R4,-(sp)
|
---|
| 54 | jsr lmul
|
---|
| 55 | addq.l #8,sp
|
---|
| 56 | move.l R0,-(sp)
|
---|
| 57 | move.l R5,R0
|
---|
| 58 | sub.l (sp)+,R0
|
---|
| 59 | move R0,R6
|
---|
| 60 | *line 57
|
---|
| 61 | move R6,(sp)
|
---|
| 62 | move R7,-(sp)
|
---|
| 63 | move.l #L2,-(sp)
|
---|
| 64 | move.l #_ebuf,-(sp)
|
---|
| 65 | jsr _sprintf
|
---|
| 66 | adda.l #10,sp
|
---|
| 67 | *line 58
|
---|
| 68 | move #1,_ebflag
|
---|
| 69 | *line 65
|
---|
| 70 | clr R0
|
---|
| 71 | bra L1
|
---|
| 72 | L1:tst.l (sp)+
|
---|
| 73 | movem.l (sp)+,R4-R7
|
---|
| 74 | unlk R14
|
---|
| 75 | rts
|
---|
| 76 | .globl _ef_itim
|
---|
| 77 | .text
|
---|
| 78 | _ef_itim:
|
---|
| 79 | ~~ef_itim:
|
---|
| 80 | ~n=8
|
---|
| 81 | link R14,#0
|
---|
| 82 | movem.l R3-R7/R12-R13,-(sp)
|
---|
| 83 | ~i=R7
|
---|
| 84 | ~endpnt=R6
|
---|
| 85 | ~basept=R5
|
---|
| 86 | ~tmpval=R4
|
---|
| 87 | ~fp=R13
|
---|
| 88 | ~ip=R12
|
---|
| 89 | *line 86
|
---|
| 90 | move _curvce,R0
|
---|
| 91 | muls #3938,R0
|
---|
| 92 | move.l R0,R12
|
---|
| 93 | add.l #_vbufs,R12
|
---|
| 94 | *line 87
|
---|
| 95 | move.l R12,R13
|
---|
| 96 | move _curfunc,R0
|
---|
| 97 | muls #12,R0
|
---|
| 98 | add.l R0,R13
|
---|
| 99 | add.l #86,R13
|
---|
| 100 | *line 89
|
---|
| 101 | move.b #46,2+_ebuf
|
---|
| 102 | *line 90
|
---|
| 103 | clr.b 6+_ebuf
|
---|
| 104 | *line 91
|
---|
| 105 | clr _ebflag
|
---|
| 106 | *line 96
|
---|
| 107 | clr R4
|
---|
| 108 | *line 98
|
---|
| 109 | clr R7
|
---|
| 110 | bra L6
|
---|
| 111 | L7:
|
---|
| 112 | *line 99
|
---|
| 113 | mulu #10,R4
|
---|
| 114 | move.l #_ebuf,R8
|
---|
| 115 | move.b 0(R8,R7),R0
|
---|
| 116 | ext.w R0
|
---|
| 117 | add R0,R4
|
---|
| 118 | add #-48,R4
|
---|
| 119 | L5:
|
---|
| 120 | *line 98
|
---|
| 121 | add #1,R7
|
---|
| 122 | L6:
|
---|
| 123 | *line 98
|
---|
| 124 | cmp #2,R7
|
---|
| 125 | blt L7
|
---|
| 126 | L4:
|
---|
| 127 | *line 101
|
---|
| 128 | move #3,R7
|
---|
| 129 | bra L10
|
---|
| 130 | L11:
|
---|
| 131 | *line 102
|
---|
| 132 | mulu #10,R4
|
---|
| 133 | move.l #_ebuf,R8
|
---|
| 134 | move.b 0(R8,R7),R0
|
---|
| 135 | ext.w R0
|
---|
| 136 | add R0,R4
|
---|
| 137 | add #-48,R4
|
---|
| 138 | L9:
|
---|
| 139 | *line 101
|
---|
| 140 | add #1,R7
|
---|
| 141 | L10:
|
---|
| 142 | *line 101
|
---|
| 143 | cmp #6,R7
|
---|
| 144 | blt L11
|
---|
| 145 | L8:
|
---|
| 146 | *line 107
|
---|
| 147 | *line 108
|
---|
| 148 | cmp _temax,R4
|
---|
| 149 | bls L12
|
---|
| 150 | *line 108
|
---|
| 151 | move #-1,R0
|
---|
| 152 | bra L3
|
---|
| 153 | *line 109
|
---|
| 154 | L12:
|
---|
| 155 | *line 110
|
---|
| 156 | *line 111
|
---|
| 157 | cmp _temin,R4
|
---|
| 158 | bcc L13
|
---|
| 159 | *line 111
|
---|
| 160 | move #-1,R0
|
---|
| 161 | bra L3
|
---|
| 162 | *line 112
|
---|
| 163 | L13:
|
---|
| 164 | *line 113
|
---|
| 165 | move R4,(sp)
|
---|
| 166 | move _subj,-(sp)
|
---|
| 167 | jsr _setseg
|
---|
| 168 | addq.l #2,sp
|
---|
| 169 | *line 115
|
---|
| 170 | *line 116
|
---|
| 171 | cmp #2,_pecase
|
---|
| 172 | bne L14
|
---|
| 173 | *line 116
|
---|
| 174 | move _temax,(sp)
|
---|
| 175 | move _subj,-(sp)
|
---|
| 176 | add #1,(sp)
|
---|
| 177 | jsr _setseg
|
---|
| 178 | addq.l #2,sp
|
---|
| 179 | *line 120
|
---|
| 180 | L14:
|
---|
| 181 | *line 121
|
---|
| 182 | jsr _modinst
|
---|
| 183 | *line 122
|
---|
| 184 | clr R0
|
---|
| 185 | bra L3
|
---|
| 186 | L3:tst.l (sp)+
|
---|
| 187 | movem.l (sp)+,R4-R7/R12-R13
|
---|
| 188 | unlk R14
|
---|
| 189 | rts
|
---|
| 190 | .globl _rd_itim
|
---|
| 191 | .text
|
---|
| 192 | _rd_itim:
|
---|
| 193 | ~~rd_itim:
|
---|
| 194 | ~n=8
|
---|
| 195 | link R14,#0
|
---|
| 196 | movem.l R3-R7,-(sp)
|
---|
| 197 | ~th=R7
|
---|
| 198 | ~tl=R6
|
---|
| 199 | ~tt=R5
|
---|
| 200 | ~sc=R4
|
---|
| 201 | *line 141
|
---|
| 202 | move.l #$3e8,R4
|
---|
| 203 | *line 142
|
---|
| 204 | move _subj,(sp)
|
---|
| 205 | move _curfunc,-(sp)
|
---|
| 206 | jsr _timeto
|
---|
| 207 | addq.l #2,sp
|
---|
| 208 | ext.l R0
|
---|
| 209 | move.l R0,R5
|
---|
| 210 | *line 143
|
---|
| 211 | move.l R4,-(sp)
|
---|
| 212 | move.l R5,-(sp)
|
---|
| 213 | jsr ldiv
|
---|
| 214 | addq.l #8,sp
|
---|
| 215 | move R0,R7
|
---|
| 216 | *line 144
|
---|
| 217 | move R7,R0
|
---|
| 218 | ext.l R0
|
---|
| 219 | move.l R0,-(sp)
|
---|
| 220 | move.l R4,-(sp)
|
---|
| 221 | jsr lmul
|
---|
| 222 | addq.l #8,sp
|
---|
| 223 | move.l R0,-(sp)
|
---|
| 224 | move.l R5,R0
|
---|
| 225 | sub.l (sp)+,R0
|
---|
| 226 | move R0,R6
|
---|
| 227 | *line 146
|
---|
| 228 | move R6,(sp)
|
---|
| 229 | move R7,-(sp)
|
---|
| 230 | move.l #L16,-(sp)
|
---|
| 231 | move.l #_dspbuf,-(sp)
|
---|
| 232 | jsr _sprintf
|
---|
| 233 | adda.l #10,sp
|
---|
| 234 | *line 148
|
---|
| 235 | clr (sp)
|
---|
| 236 | jsr _vbank
|
---|
| 237 | *line 150
|
---|
| 238 | *line 151
|
---|
| 239 | move #14,(sp)
|
---|
| 240 | move.l #_dspbuf,-(sp)
|
---|
| 241 | move 8(R14),R0
|
---|
| 242 | asl #4,R0
|
---|
| 243 | ext.l R0
|
---|
| 244 | move.l R0,R8
|
---|
| 245 | move.l #_idbox,R9
|
---|
| 246 | move 14(R8,R9.l),-(sp)
|
---|
| 247 | move 8(R14),R0
|
---|
| 248 | asl #4,R0
|
---|
| 249 | ext.l R0
|
---|
| 250 | move.l R0,R8
|
---|
| 251 | move.l #_idbox,R9
|
---|
| 252 | move 12(R8,R9.l),-(sp)
|
---|
| 253 | add #1,(sp)
|
---|
| 254 | move 8(R14),R0
|
---|
| 255 | asl #4,R0
|
---|
| 256 | ext.l R0
|
---|
| 257 | move.l R0,R8
|
---|
| 258 | move.l #_idbox,R9
|
---|
| 259 | move 10(R8,R9.l),-(sp)
|
---|
| 260 | move 8(R14),R0
|
---|
| 261 | asl #4,R0
|
---|
| 262 | ext.l R0
|
---|
| 263 | move.l R0,R8
|
---|
| 264 | move.l #_idbox,R9
|
---|
| 265 | move 8(R8,R9.l),-(sp)
|
---|
| 266 | move #64,-(sp)
|
---|
| 267 | move.l _instob,-(sp)
|
---|
| 268 | jsr _vcputsv
|
---|
| 269 | adda.l #18,sp
|
---|
| 270 | *line 153
|
---|
| 271 | move _curfunc,(sp)
|
---|
| 272 | jsr _edfunc
|
---|
| 273 | *line 154
|
---|
| 274 | clr R0
|
---|
| 275 | bra L15
|
---|
| 276 | L15:tst.l (sp)+
|
---|
| 277 | movem.l (sp)+,R4-R7
|
---|
| 278 | unlk R14
|
---|
| 279 | rts
|
---|
| 280 | .globl _nd_itim
|
---|
| 281 | .text
|
---|
| 282 | _nd_itim:
|
---|
| 283 | ~~nd_itim:
|
---|
| 284 | ~k=R7
|
---|
| 285 | ~n=8
|
---|
| 286 | link R14,#0
|
---|
| 287 | movem.l R5-R7,-(sp)
|
---|
| 288 | ~ec=R6
|
---|
| 289 | *line 173
|
---|
| 290 | move 10(R14),R7
|
---|
| 291 | *line 173
|
---|
| 292 | move _stccol,R6
|
---|
| 293 | move.l _cfetp,R8
|
---|
| 294 | move 2(R8),R0
|
---|
| 295 | sub R0,R6
|
---|
| 296 | *line 175
|
---|
| 297 | *line 176
|
---|
| 298 | cmp #2,R6
|
---|
| 299 | bne L18
|
---|
| 300 | *line 176
|
---|
| 301 | move #-1,R0
|
---|
| 302 | bra L17
|
---|
| 303 | *line 177
|
---|
| 304 | L18:
|
---|
| 305 | *line 178
|
---|
| 306 | move R7,R0
|
---|
| 307 | add #48,R0
|
---|
| 308 | move R6,R9
|
---|
| 309 | add.l #_ebuf,R9
|
---|
| 310 | move.b R0,(R9)
|
---|
| 311 | *line 179
|
---|
| 312 | move.b #46,2+_ebuf
|
---|
| 313 | *line 180
|
---|
| 314 | clr.b 6+_ebuf
|
---|
| 315 | *line 182
|
---|
| 316 | move R7,R0
|
---|
| 317 | add #48,R0
|
---|
| 318 | move.b R0,_dspbuf
|
---|
| 319 | *line 183
|
---|
| 320 | clr.b 1+_dspbuf
|
---|
| 321 | *line 185
|
---|
| 322 | clr (sp)
|
---|
| 323 | jsr _vbank
|
---|
| 324 | *line 187
|
---|
| 325 | *line 188
|
---|
| 326 | move #14,(sp)
|
---|
| 327 | move.l #_dspbuf,-(sp)
|
---|
| 328 | move _stccol,-(sp)
|
---|
| 329 | move 8(R14),R0
|
---|
| 330 | asl #4,R0
|
---|
| 331 | ext.l R0
|
---|
| 332 | move.l R0,R8
|
---|
| 333 | move.l #_idbox,R9
|
---|
| 334 | move 12(R8,R9.l),-(sp)
|
---|
| 335 | add #1,(sp)
|
---|
| 336 | move 8(R14),R0
|
---|
| 337 | asl #4,R0
|
---|
| 338 | ext.l R0
|
---|
| 339 | move.l R0,R8
|
---|
| 340 | move.l #_idbox,R9
|
---|
| 341 | move 10(R8,R9.l),-(sp)
|
---|
| 342 | move #10,-(sp)
|
---|
| 343 | move #64,-(sp)
|
---|
| 344 | move.l _instob,-(sp)
|
---|
| 345 | jsr _vcputsv
|
---|
| 346 | adda.l #18,sp
|
---|
| 347 | *line 190
|
---|
| 348 | jsr _advicur
|
---|
| 349 | *line 192
|
---|
| 350 | *line 193
|
---|
| 351 | move 8(R14),R0
|
---|
| 352 | asl #4,R0
|
---|
| 353 | ext.l R0
|
---|
| 354 | move.l R0,R8
|
---|
| 355 | move.l #_idbox,R9
|
---|
| 356 | move 14(R8,R9.l),R0
|
---|
| 357 | add #2,R0
|
---|
| 358 | cmp _stccol,R0
|
---|
| 359 | bne L19
|
---|
| 360 | *line 193
|
---|
| 361 | jsr _advicur
|
---|
| 362 | *line 194
|
---|
| 363 | L19:
|
---|
| 364 | *line 195
|
---|
| 365 | clr R0
|
---|
| 366 | bra L17
|
---|
| 367 | L17:tst.l (sp)+
|
---|
| 368 | movem.l (sp)+,R6-R7
|
---|
| 369 | unlk R14
|
---|
| 370 | rts
|
---|
| 371 | .data
|
---|
| 372 | L2:.dc.b $25,$30,$32,$64,$2E,$25,$30,$33,$64,$0
|
---|
| 373 | L16:.dc.b $25,$30,$32,$64,$2E,$25,$30,$33,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.