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:
5.1 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _ebflag
|
---|
| 2 | .globl _ebuf
|
---|
| 3 | .globl _curfet
|
---|
| 4 | .globl _cfetp
|
---|
| 5 | .globl _infetp
|
---|
| 6 | .globl _io_time
|
---|
| 7 | .globl _io_lcd
|
---|
| 8 | .globl _io_ser
|
---|
| 9 | .globl _io_midi
|
---|
| 10 | .globl _io_disk
|
---|
| 11 | .globl _io_tone
|
---|
| 12 | .globl _io_leds
|
---|
| 13 | .globl _io_kbrd
|
---|
| 14 | .globl _lcd_a0
|
---|
| 15 | .globl _lcd_a1
|
---|
| 16 | .globl _io_vreg
|
---|
| 17 | .globl _io_vraw
|
---|
| 18 | .globl _io_vram
|
---|
| 19 | .globl _io_fpu
|
---|
| 20 | .globl _v_regs
|
---|
| 21 | .globl _v_odtab
|
---|
| 22 | .globl _v_actab
|
---|
| 23 | .globl _v_ct0
|
---|
| 24 | .globl _v_gt1
|
---|
| 25 | .globl _v_score
|
---|
| 26 | .globl _v_cgtab
|
---|
| 27 | .globl _v_curs0
|
---|
| 28 | .globl _v_curs1
|
---|
| 29 | .globl _v_curs2
|
---|
| 30 | .globl _v_curs3
|
---|
| 31 | .globl _v_curs4
|
---|
| 32 | .globl _v_curs5
|
---|
| 33 | .globl _v_curs6
|
---|
| 34 | .globl _v_curs7
|
---|
| 35 | .globl _v_tcur
|
---|
| 36 | .globl _v_kbobj
|
---|
| 37 | .globl _v_lnobj
|
---|
| 38 | .globl _v_win0
|
---|
| 39 | .globl _v_cur
|
---|
| 40 | .globl _fc_sw
|
---|
| 41 | .globl _fc_val
|
---|
| 42 | .globl _asgob
|
---|
| 43 | .globl _curintp
|
---|
| 44 | .globl _stccol
|
---|
| 45 | .globl _stcrow
|
---|
| 46 | .globl _timemlt
|
---|
| 47 | .globl _dspbuf
|
---|
| 48 | .globl _vce2grp
|
---|
| 49 | .globl _grpdyn
|
---|
| 50 | .globl _dyntab
|
---|
| 51 | .globl _expbit
|
---|
| 52 | .globl _adbox
|
---|
| 53 | .globl _vbufs
|
---|
| 54 | .globl _et_adyn
|
---|
| 55 | .text
|
---|
| 56 | _et_adyn:
|
---|
| 57 | ~~et_adyn:
|
---|
| 58 | ~n=8
|
---|
| 59 | link R14,#0
|
---|
| 60 | movem.l R6-R7,-(sp)
|
---|
| 61 | ~grp=R7
|
---|
| 62 | *line 57
|
---|
| 63 | move 8(R14),R7
|
---|
| 64 | asr #8,R7
|
---|
| 65 | and #255,R7
|
---|
| 66 | *line 59
|
---|
| 67 | move R7,R8
|
---|
| 68 | add.l R8,R8
|
---|
| 69 | move.l #_grpdyn,R9
|
---|
| 70 | move 0(R8,R9.l),R0
|
---|
| 71 | add #48,R0
|
---|
| 72 | move.b R0,_ebuf
|
---|
| 73 | *line 60
|
---|
| 74 | clr.b 1+_ebuf
|
---|
| 75 | *line 62
|
---|
| 76 | move #1,_ebflag
|
---|
| 77 | *line 64
|
---|
| 78 | clr R0
|
---|
| 79 | bra L1
|
---|
| 80 | L1:tst.l (sp)+
|
---|
| 81 | movem.l (sp)+,R7-R7
|
---|
| 82 | unlk R14
|
---|
| 83 | rts
|
---|
| 84 | .globl _setdyn
|
---|
| 85 | .text
|
---|
| 86 | _setdyn:
|
---|
| 87 | ~~setdyn:
|
---|
| 88 | ~grp=8
|
---|
| 89 | ~dyn=10
|
---|
| 90 | link R14,#-8
|
---|
| 91 | movem.l R3-R7/R12-R13,-(sp)
|
---|
| 92 | ~g=R7
|
---|
| 93 | ~i=R6
|
---|
| 94 | ~val=R5
|
---|
| 95 | ~ltmp=R4
|
---|
| 96 | ~fpu=R13
|
---|
| 97 | ~fp=R12
|
---|
| 98 | ~fpmant=-2
|
---|
| 99 | ~fpexp=-4
|
---|
| 100 | ~oldsr=-6
|
---|
| 101 | ~nop=-8
|
---|
| 102 | *line 87
|
---|
| 103 | move 8(R14),R8
|
---|
| 104 | add.l R8,R8
|
---|
| 105 | add.l #_grpdyn,R8
|
---|
| 106 | move 10(R14),(R8)
|
---|
| 107 | *line 88
|
---|
| 108 | move 10(R14),R8
|
---|
| 109 | add.l R8,R8
|
---|
| 110 | add.l #_dyntab,R8
|
---|
| 111 | move (R8),R5
|
---|
| 112 | *line 89
|
---|
| 113 | move 8(R14),R7
|
---|
| 114 | add #1,R7
|
---|
| 115 | *line 91
|
---|
| 116 | *line 92
|
---|
| 117 | move _timemlt,R0
|
---|
| 118 | ext.l R0
|
---|
| 119 | and.l #$ffff,R0
|
---|
| 120 | move.l R0,-(sp)
|
---|
| 121 | clr.l R0
|
---|
| 122 | move _curintp,R0
|
---|
| 123 | and.l #$fff0,R0
|
---|
| 124 | move.l R0,-(sp)
|
---|
| 125 | jsr lmul
|
---|
| 126 | addq.l #8,sp
|
---|
| 127 | move.l #$f,R1
|
---|
| 128 | asr.l R1,R0
|
---|
| 129 | move R0,-2(R14)
|
---|
| 130 | *line 94
|
---|
| 131 | clr R0
|
---|
| 132 | move _curintp,R0
|
---|
| 133 | and #15,R0
|
---|
| 134 | lsl #1,R0
|
---|
| 135 | swap R0
|
---|
| 136 | clr R0
|
---|
| 137 | swap R0
|
---|
| 138 | add.l #_expbit,R0
|
---|
| 139 | move.l R0,R8
|
---|
| 140 | move (R8),-4(R14)
|
---|
| 141 | *line 98
|
---|
| 142 | clr R6
|
---|
| 143 | bra L5
|
---|
| 144 | L6:
|
---|
| 145 | *line 99
|
---|
| 146 | *line 99
|
---|
| 147 | move R6,R8
|
---|
| 148 | add.l R8,R8
|
---|
| 149 | add.l #_vce2grp,R8
|
---|
| 150 | cmp (R8),R7
|
---|
| 151 | bne L7
|
---|
| 152 | *line 100
|
---|
| 153 | *line 101
|
---|
| 154 | move R6,R0
|
---|
| 155 | muls #3938,R0
|
---|
| 156 | move.l R0,R12
|
---|
| 157 | add.l #_vbufs,R12
|
---|
| 158 | add.l #182,R12
|
---|
| 159 | *line 102
|
---|
| 160 | move R6,R0
|
---|
| 161 | asl #8,R0
|
---|
| 162 | asl #1,R0
|
---|
| 163 | ext.l R0
|
---|
| 164 | move.l R0,R13
|
---|
| 165 | add.l #_io_fpu,R13
|
---|
| 166 | add.l #$4100,R13
|
---|
| 167 | *line 103
|
---|
| 168 | *line 104
|
---|
| 169 | move #8704,(sp)
|
---|
| 170 | jsr _setsr
|
---|
| 171 | move R0,-6(R14)
|
---|
| 172 | *line 105
|
---|
| 173 | *line 106
|
---|
| 174 | *line 107
|
---|
| 175 | *line 108
|
---|
| 176 | eor.b #24,7(R12)
|
---|
| 177 | *line 109
|
---|
| 178 | move.l R13,R8
|
---|
| 179 | add.l #$14,R8
|
---|
| 180 | move -2(R14),(R8)
|
---|
| 181 | *line 110
|
---|
| 182 | add #1,-8(R14)
|
---|
| 183 | *line 110
|
---|
| 184 | add #1,-8(R14)
|
---|
| 185 | *line 110
|
---|
| 186 | add #1,-8(R14)
|
---|
| 187 | *line 111
|
---|
| 188 | move.l R13,R8
|
---|
| 189 | add.l #$16,R8
|
---|
| 190 | move -4(R14),(R8)
|
---|
| 191 | *line 112
|
---|
| 192 | add #1,-8(R14)
|
---|
| 193 | *line 112
|
---|
| 194 | add #1,-8(R14)
|
---|
| 195 | *line 112
|
---|
| 196 | add #1,-8(R14)
|
---|
| 197 | *line 113
|
---|
| 198 | *line 114
|
---|
| 199 | *line 115
|
---|
| 200 | btst #3,7(R12)
|
---|
| 201 | beq L8
|
---|
| 202 | *line 115
|
---|
| 203 | move.l R13,R8
|
---|
| 204 | add.l #$1c,R8
|
---|
| 205 | move R5,(R8)
|
---|
| 206 | *line 116
|
---|
| 207 | bra L9
|
---|
| 208 | L8:
|
---|
| 209 | *line 117
|
---|
| 210 | move.l R13,R8
|
---|
| 211 | add.l #$2,R8
|
---|
| 212 | move R5,(R8)
|
---|
| 213 | L9:
|
---|
| 214 | *line 118
|
---|
| 215 | *line 119
|
---|
| 216 | add #1,-8(R14)
|
---|
| 217 | *line 119
|
---|
| 218 | add #1,-8(R14)
|
---|
| 219 | *line 119
|
---|
| 220 | add #1,-8(R14)
|
---|
| 221 | *line 120
|
---|
| 222 | *line 121
|
---|
| 223 | *line 122
|
---|
| 224 | move.b 7(R12),R0
|
---|
| 225 | ext.w R0
|
---|
| 226 | and #28,R0
|
---|
| 227 | or #1,R0
|
---|
| 228 | move R0,(R13)
|
---|
| 229 | *line 123
|
---|
| 230 | *line 124
|
---|
| 231 | move -6(R14),(sp)
|
---|
| 232 | jsr _setsr
|
---|
| 233 | *line 125
|
---|
| 234 | *line 126
|
---|
| 235 | *line 127
|
---|
| 236 | *line 128
|
---|
| 237 | L7:L4:
|
---|
| 238 | *line 98
|
---|
| 239 | add #1,R6
|
---|
| 240 | L5:
|
---|
| 241 | *line 98
|
---|
| 242 | cmp #12,R6
|
---|
| 243 | blt L6
|
---|
| 244 | L3:L2:tst.l (sp)+
|
---|
| 245 | movem.l (sp)+,R4-R7/R12-R13
|
---|
| 246 | unlk R14
|
---|
| 247 | rts
|
---|
| 248 | .globl _ef_adyn
|
---|
| 249 | .text
|
---|
| 250 | _ef_adyn:
|
---|
| 251 | ~~ef_adyn:
|
---|
| 252 | ~n=8
|
---|
| 253 | link R14,#0
|
---|
| 254 | movem.l R5-R7,-(sp)
|
---|
| 255 | ~dyn=R7
|
---|
| 256 | ~grp=R6
|
---|
| 257 | *line 146
|
---|
| 258 | move 8(R14),R6
|
---|
| 259 | asr #8,R6
|
---|
| 260 | and #255,R6
|
---|
| 261 | *line 148
|
---|
| 262 | clr.b 1+_ebuf
|
---|
| 263 | *line 149
|
---|
| 264 | clr _ebflag
|
---|
| 265 | *line 151
|
---|
| 266 | move.b _ebuf,R7
|
---|
| 267 | ext.w R7
|
---|
| 268 | add #-48,R7
|
---|
| 269 | *line 153
|
---|
| 270 | move R7,(sp)
|
---|
| 271 | move R6,-(sp)
|
---|
| 272 | jsr _setdyn
|
---|
| 273 | addq.l #2,sp
|
---|
| 274 | *line 154
|
---|
| 275 | jsr _modasg
|
---|
| 276 | *line 155
|
---|
| 277 | clr R0
|
---|
| 278 | bra L10
|
---|
| 279 | L10:tst.l (sp)+
|
---|
| 280 | movem.l (sp)+,R6-R7
|
---|
| 281 | unlk R14
|
---|
| 282 | rts
|
---|
| 283 | .globl _rd_adyn
|
---|
| 284 | .text
|
---|
| 285 | _rd_adyn:
|
---|
| 286 | ~~rd_adyn:
|
---|
| 287 | ~nn=8
|
---|
| 288 | link R14,#0
|
---|
| 289 | movem.l R5-R7,-(sp)
|
---|
| 290 | ~n=R7
|
---|
| 291 | ~grp=R6
|
---|
| 292 | *line 173
|
---|
| 293 | move 8(R14),R7
|
---|
| 294 | and #255,R7
|
---|
| 295 | *line 174
|
---|
| 296 | move 8(R14),R6
|
---|
| 297 | asr #8,R6
|
---|
| 298 | and #255,R6
|
---|
| 299 | *line 176
|
---|
| 300 | move R6,R8
|
---|
| 301 | add.l R8,R8
|
---|
| 302 | move.l #_grpdyn,R9
|
---|
| 303 | move 0(R8,R9.l),R0
|
---|
| 304 | add #48,R0
|
---|
| 305 | move.b R0,_dspbuf
|
---|
| 306 | *line 177
|
---|
| 307 | clr.b 1+_dspbuf
|
---|
| 308 | *line 179
|
---|
| 309 | clr (sp)
|
---|
| 310 | jsr _vbank
|
---|
| 311 | *line 180
|
---|
| 312 | *line 181
|
---|
| 313 | move #14,(sp)
|
---|
| 314 | move.l #_dspbuf,-(sp)
|
---|
| 315 | move.l _cfetp,R8
|
---|
| 316 | move 2(R8),-(sp)
|
---|
| 317 | move.l _cfetp,R8
|
---|
| 318 | move (R8),-(sp)
|
---|
| 319 | move R7,R0
|
---|
| 320 | asl #4,R0
|
---|
| 321 | ext.l R0
|
---|
| 322 | move.l R0,R8
|
---|
| 323 | move.l #_adbox,R9
|
---|
| 324 | move 10(R8,R9.l),-(sp)
|
---|
| 325 | move R7,R0
|
---|
| 326 | asl #4,R0
|
---|
| 327 | ext.l R0
|
---|
| 328 | move.l R0,R8
|
---|
| 329 | move.l #_adbox,R9
|
---|
| 330 | move 8(R8,R9.l),-(sp)
|
---|
| 331 | move #64,-(sp)
|
---|
| 332 | move.l _asgob,-(sp)
|
---|
| 333 | jsr _vcputsv
|
---|
| 334 | adda.l #18,sp
|
---|
| 335 | *line 183
|
---|
| 336 | clr R0
|
---|
| 337 | bra L11
|
---|
| 338 | L11:tst.l (sp)+
|
---|
| 339 | movem.l (sp)+,R6-R7
|
---|
| 340 | unlk R14
|
---|
| 341 | rts
|
---|
| 342 | .globl _nd_adyn
|
---|
| 343 | .text
|
---|
| 344 | _nd_adyn:
|
---|
| 345 | ~~nd_adyn:
|
---|
| 346 | ~k=R7
|
---|
| 347 | ~nn=8
|
---|
| 348 | link R14,#0
|
---|
| 349 | movem.l R5-R7,-(sp)
|
---|
| 350 | ~n=R6
|
---|
| 351 | *line 199
|
---|
| 352 | move 10(R14),R7
|
---|
| 353 | *line 199
|
---|
| 354 | move 8(R14),R6
|
---|
| 355 | and #255,R6
|
---|
| 356 | *line 201
|
---|
| 357 | move R7,R0
|
---|
| 358 | add #48,R0
|
---|
| 359 | move.b R0,_ebuf
|
---|
| 360 | move.b R0,_dspbuf
|
---|
| 361 | *line 202
|
---|
| 362 | clr R0
|
---|
| 363 | move.b R0,1+_ebuf
|
---|
| 364 | move.b R0,1+_dspbuf
|
---|
| 365 | *line 204
|
---|
| 366 | clr (sp)
|
---|
| 367 | jsr _vbank
|
---|
| 368 | *line 205
|
---|
| 369 | move #14,(sp)
|
---|
| 370 | move.l #_dspbuf,-(sp)
|
---|
| 371 | move _stccol,-(sp)
|
---|
| 372 | move _stcrow,-(sp)
|
---|
| 373 | move R6,R0
|
---|
| 374 | asl #4,R0
|
---|
| 375 | ext.l R0
|
---|
| 376 | move.l R0,R8
|
---|
| 377 | move.l #_adbox,R9
|
---|
| 378 | move 10(R8,R9.l),-(sp)
|
---|
| 379 | move #12,-(sp)
|
---|
| 380 | move #64,-(sp)
|
---|
| 381 | move.l _asgob,-(sp)
|
---|
| 382 | jsr _vcputsv
|
---|
| 383 | adda.l #18,sp
|
---|
| 384 | *line 207
|
---|
| 385 | clr R0
|
---|
| 386 | bra L12
|
---|
| 387 | L12:tst.l (sp)+
|
---|
| 388 | movem.l (sp)+,R6-R7
|
---|
| 389 | unlk R14
|
---|
| 390 | rts
|
---|
| 391 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.