Last change
on this file since ca867c1 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
6.0 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 _instob
|
---|
| 43 | .globl _vtcrow
|
---|
| 44 | .globl _vtccol
|
---|
| 45 | .globl _stccol
|
---|
| 46 | .globl _curinst
|
---|
| 47 | .globl _curvce
|
---|
| 48 | .globl _idcfsw
|
---|
| 49 | .globl _idintmp
|
---|
| 50 | .globl _editsw
|
---|
| 51 | .globl _curfunc
|
---|
| 52 | .globl _submenu
|
---|
| 53 | .globl _idbox
|
---|
| 54 | .globl _instmod
|
---|
| 55 | .globl _vce2grp
|
---|
| 56 | .globl _dspbuf
|
---|
| 57 | .globl _idefs
|
---|
| 58 | .globl _vbufs
|
---|
| 59 | .globl _et_idin
|
---|
| 60 | .text
|
---|
| 61 | _et_idin:
|
---|
| 62 | ~~et_idin:
|
---|
| 63 | ~n=8
|
---|
| 64 | link R14,#-4
|
---|
| 65 | *line 47
|
---|
| 66 | move _curinst,(sp)
|
---|
| 67 | move.l #L2,-(sp)
|
---|
| 68 | move.l #_ebuf,-(sp)
|
---|
| 69 | jsr _sprintf
|
---|
| 70 | addq.l #8,sp
|
---|
| 71 | *line 48
|
---|
| 72 | move #1,_ebflag
|
---|
| 73 | *line 50
|
---|
| 74 | clr R0
|
---|
| 75 | bra L1
|
---|
| 76 | L1:unlk R14
|
---|
| 77 | rts
|
---|
| 78 | .globl _ef_idin
|
---|
| 79 | .text
|
---|
| 80 | _ef_idin:
|
---|
| 81 | ~~ef_idin:
|
---|
| 82 | ~n=8
|
---|
| 83 | link R14,#0
|
---|
| 84 | movem.l R4-R7/R13-R13,-(sp)
|
---|
| 85 | ~i=R7
|
---|
| 86 | ~tmpval=R6
|
---|
| 87 | ~j=R5
|
---|
| 88 | ~ip=R13
|
---|
| 89 | *line 67
|
---|
| 90 | *line 67
|
---|
| 91 | tst _idcfsw
|
---|
| 92 | beq L4
|
---|
| 93 | *line 68
|
---|
| 94 | *line 69
|
---|
| 95 | *line 69
|
---|
| 96 | cmp #22,_vtcrow
|
---|
| 97 | bne L5
|
---|
| 98 | *line 70
|
---|
| 99 | *line 71
|
---|
| 100 | *line 71
|
---|
| 101 | cmp #35,_vtccol
|
---|
| 102 | bge L6
|
---|
| 103 | *line 72
|
---|
| 104 | *line 73
|
---|
| 105 | move _idintmp,(sp)
|
---|
| 106 | jsr _newinst
|
---|
| 107 | *line 74
|
---|
| 108 | move #1,(sp)
|
---|
| 109 | move _curinst,-(sp)
|
---|
| 110 | move _curvce,-(sp)
|
---|
| 111 | jsr _execins
|
---|
| 112 | addq.l #4,sp
|
---|
| 113 | *line 75
|
---|
| 114 | *line 76
|
---|
| 115 | *line 76
|
---|
| 116 | tst _editsw
|
---|
| 117 | bne L7
|
---|
| 118 | *line 77
|
---|
| 119 | *line 78
|
---|
| 120 | *line 78
|
---|
| 121 | move _curvce,R8
|
---|
| 122 | add.l R8,R8
|
---|
| 123 | add.l #_vce2grp,R8
|
---|
| 124 | move (R8),R7
|
---|
| 125 | ble L8
|
---|
| 126 | *line 79
|
---|
| 127 | *line 80
|
---|
| 128 | clr R5
|
---|
| 129 | bra L11
|
---|
| 130 | L12:
|
---|
| 131 | *line 81
|
---|
| 132 | *line 82
|
---|
| 133 | move R5,R8
|
---|
| 134 | add.l R8,R8
|
---|
| 135 | add.l #_vce2grp,R8
|
---|
| 136 | cmp (R8),R7
|
---|
| 137 | bne L13
|
---|
| 138 | *line 82
|
---|
| 139 | move #1,(sp)
|
---|
| 140 | move _curinst,-(sp)
|
---|
| 141 | move R5,-(sp)
|
---|
| 142 | jsr _execins
|
---|
| 143 | addq.l #4,sp
|
---|
| 144 | L13:L10:
|
---|
| 145 | *line 80
|
---|
| 146 | add #1,R5
|
---|
| 147 | L11:
|
---|
| 148 | *line 80
|
---|
| 149 | cmp #12,R5
|
---|
| 150 | blt L12
|
---|
| 151 | L9:
|
---|
| 152 | *line 83
|
---|
| 153 | L8:
|
---|
| 154 | *line 84
|
---|
| 155 | L7:
|
---|
| 156 | *line 85
|
---|
| 157 | *line 86
|
---|
| 158 | L6:
|
---|
| 159 | *line 87
|
---|
| 160 | move #14,(sp)
|
---|
| 161 | jsr _objclr
|
---|
| 162 | *line 88
|
---|
| 163 | jsr _idvlblc
|
---|
| 164 | *line 89
|
---|
| 165 | clr _idcfsw
|
---|
| 166 | *line 90
|
---|
| 167 | clr _submenu
|
---|
| 168 | *line 91
|
---|
| 169 | *line 92
|
---|
| 170 | *line 92
|
---|
| 171 | cmp #35,_vtccol
|
---|
| 172 | bge L14
|
---|
| 173 | *line 93
|
---|
| 174 | *line 94
|
---|
| 175 | jsr _allwins
|
---|
| 176 | *line 95
|
---|
| 177 | bra L15
|
---|
| 178 | L14:
|
---|
| 179 | *line 96
|
---|
| 180 | *line 97
|
---|
| 181 | *line 98
|
---|
| 182 | move #22,(sp)
|
---|
| 183 | jsr _dswin
|
---|
| 184 | *line 99
|
---|
| 185 | move #19,(sp)
|
---|
| 186 | jsr _dswin
|
---|
| 187 | L15:
|
---|
| 188 | *line 100
|
---|
| 189 | *line 101
|
---|
| 190 | *line 102
|
---|
| 191 | bra L16
|
---|
| 192 | L5:
|
---|
| 193 | *line 103
|
---|
| 194 | *line 103
|
---|
| 195 | cmp #23,_vtcrow
|
---|
| 196 | bne L17
|
---|
| 197 | *line 104
|
---|
| 198 | *line 105
|
---|
| 199 | *line 105
|
---|
| 200 | tst _idintmp
|
---|
| 201 | beq L18
|
---|
| 202 | *line 106
|
---|
| 203 | *line 107
|
---|
| 204 | *line 108
|
---|
| 205 | move #1969,(sp)
|
---|
| 206 | move _curvce,R0
|
---|
| 207 | muls #3938,R0
|
---|
| 208 | add.l #_vbufs,R0
|
---|
| 209 | move.l R0,-(sp)
|
---|
| 210 | move _idintmp,R0
|
---|
| 211 | muls #3938,R0
|
---|
| 212 | add.l #_idefs,R0
|
---|
| 213 | move.l R0,-(sp)
|
---|
| 214 | jsr _memcpyw
|
---|
| 215 | addq.l #8,sp
|
---|
| 216 | *line 109
|
---|
| 217 | *line 110
|
---|
| 218 | move _idintmp,_curinst
|
---|
| 219 | *line 111
|
---|
| 220 | move _curvce,R8
|
---|
| 221 | add.l R8,R8
|
---|
| 222 | add.l #_instmod,R8
|
---|
| 223 | clr (R8)
|
---|
| 224 | *line 112
|
---|
| 225 | *line 113
|
---|
| 226 | L18:
|
---|
| 227 | *line 114
|
---|
| 228 | move #14,(sp)
|
---|
| 229 | jsr _objclr
|
---|
| 230 | *line 115
|
---|
| 231 | jsr _idvlblc
|
---|
| 232 | *line 116
|
---|
| 233 | clr _idcfsw
|
---|
| 234 | *line 117
|
---|
| 235 | clr _submenu
|
---|
| 236 | *line 118
|
---|
| 237 | move #22,(sp)
|
---|
| 238 | jsr _dswin
|
---|
| 239 | *line 119
|
---|
| 240 | move #19,(sp)
|
---|
| 241 | jsr _dswin
|
---|
| 242 | *line 120
|
---|
| 243 | *line 121
|
---|
| 244 | *line 122
|
---|
| 245 | tst _idintmp
|
---|
| 246 | bne L19
|
---|
| 247 | *line 122
|
---|
| 248 | move #-1,R0
|
---|
| 249 | bra L3
|
---|
| 250 | *line 123
|
---|
| 251 | L19:
|
---|
| 252 | *line 124
|
---|
| 253 | bra L20
|
---|
| 254 | L17:
|
---|
| 255 | *line 125
|
---|
| 256 | move #-1,R0
|
---|
| 257 | bra L3
|
---|
| 258 | L20:L16:
|
---|
| 259 | *line 126
|
---|
| 260 | *line 127
|
---|
| 261 | clr R0
|
---|
| 262 | bra L3
|
---|
| 263 | *line 128
|
---|
| 264 | *line 129
|
---|
| 265 | bra L21
|
---|
| 266 | L4:
|
---|
| 267 | *line 130
|
---|
| 268 | *line 131
|
---|
| 269 | *line 132
|
---|
| 270 | clr.b 2+_ebuf
|
---|
| 271 | *line 133
|
---|
| 272 | clr _ebflag
|
---|
| 273 | *line 134
|
---|
| 274 | *line 135
|
---|
| 275 | clr R6
|
---|
| 276 | *line 136
|
---|
| 277 | *line 137
|
---|
| 278 | clr R7
|
---|
| 279 | bra L24
|
---|
| 280 | L25:
|
---|
| 281 | *line 138
|
---|
| 282 | muls #10,R6
|
---|
| 283 | move.l #_ebuf,R8
|
---|
| 284 | move.b 0(R8,R7),R0
|
---|
| 285 | ext.w R0
|
---|
| 286 | add R0,R6
|
---|
| 287 | add #-48,R6
|
---|
| 288 | L23:
|
---|
| 289 | *line 137
|
---|
| 290 | add #1,R7
|
---|
| 291 | L24:
|
---|
| 292 | *line 137
|
---|
| 293 | cmp #2,R7
|
---|
| 294 | blt L25
|
---|
| 295 | L22:
|
---|
| 296 | *line 138
|
---|
| 297 | *line 139
|
---|
| 298 | *line 140
|
---|
| 299 | *line 141
|
---|
| 300 | cmp #41,R6
|
---|
| 301 | blt L26
|
---|
| 302 | *line 141
|
---|
| 303 | move #-1,R0
|
---|
| 304 | bra L3
|
---|
| 305 | *line 142
|
---|
| 306 | L26:
|
---|
| 307 | *line 143
|
---|
| 308 | move R6,_idintmp
|
---|
| 309 | *line 144
|
---|
| 310 | jsr _idcpfch
|
---|
| 311 | *line 145
|
---|
| 312 | move #22,(sp)
|
---|
| 313 | jsr _dswin
|
---|
| 314 | *line 146
|
---|
| 315 | move #14,(sp)
|
---|
| 316 | move #2,-(sp)
|
---|
| 317 | jsr _SetPri
|
---|
| 318 | addq.l #2,sp
|
---|
| 319 | *line 147
|
---|
| 320 | move #17,(sp)
|
---|
| 321 | move #22,-(sp)
|
---|
| 322 | jsr _ttcpos
|
---|
| 323 | addq.l #2,sp
|
---|
| 324 | *line 148
|
---|
| 325 | move #1,_idcfsw
|
---|
| 326 | *line 149
|
---|
| 327 | move #1,_submenu
|
---|
| 328 | *line 150
|
---|
| 329 | clr R0
|
---|
| 330 | bra L3
|
---|
| 331 | L21:L3:tst.l (sp)+
|
---|
| 332 | movem.l (sp)+,R5-R7/R13-R13
|
---|
| 333 | unlk R14
|
---|
| 334 | rts
|
---|
| 335 | .globl _rd_idin
|
---|
| 336 | .text
|
---|
| 337 | _rd_idin:
|
---|
| 338 | ~~rd_idin:
|
---|
| 339 | ~n=8
|
---|
| 340 | link R14,#-4
|
---|
| 341 | *line 167
|
---|
| 342 | *line 168
|
---|
| 343 | tst _idcfsw
|
---|
| 344 | beq L28
|
---|
| 345 | *line 168
|
---|
| 346 | move #-1,R0
|
---|
| 347 | bra L27
|
---|
| 348 | *line 169
|
---|
| 349 | *line 170
|
---|
| 350 | *line 171
|
---|
| 351 | L28:
|
---|
| 352 | *line 172
|
---|
| 353 | move _curinst,(sp)
|
---|
| 354 | move.l #L29,-(sp)
|
---|
| 355 | move.l #_dspbuf,-(sp)
|
---|
| 356 | jsr _sprintf
|
---|
| 357 | addq.l #8,sp
|
---|
| 358 | *line 174
|
---|
| 359 | clr (sp)
|
---|
| 360 | jsr _vbank
|
---|
| 361 | *line 176
|
---|
| 362 | *line 177
|
---|
| 363 | move #14,(sp)
|
---|
| 364 | move.l #_dspbuf,-(sp)
|
---|
| 365 | move 8(R14),R0
|
---|
| 366 | asl #4,R0
|
---|
| 367 | ext.l R0
|
---|
| 368 | move.l R0,R8
|
---|
| 369 | move.l #_idbox,R9
|
---|
| 370 | move 14(R8,R9.l),-(sp)
|
---|
| 371 | add #14,(sp)
|
---|
| 372 | move 8(R14),R0
|
---|
| 373 | asl #4,R0
|
---|
| 374 | ext.l R0
|
---|
| 375 | move.l R0,R8
|
---|
| 376 | move.l #_idbox,R9
|
---|
| 377 | move 12(R8,R9.l),-(sp)
|
---|
| 378 | move 8(R14),R0
|
---|
| 379 | asl #4,R0
|
---|
| 380 | ext.l R0
|
---|
| 381 | move.l R0,R8
|
---|
| 382 | move.l #_idbox,R9
|
---|
| 383 | move 10(R8,R9.l),-(sp)
|
---|
| 384 | move _curvce,R8
|
---|
| 385 | add.l R8,R8
|
---|
| 386 | move.l #_instmod,R9
|
---|
| 387 | tst 0(R8,R9.l)
|
---|
| 388 | beq L10000
|
---|
| 389 | move #3,-(sp)
|
---|
| 390 | bra L10002
|
---|
| 391 | L10000:move 8(R14),R0
|
---|
| 392 | asl #4,R0
|
---|
| 393 | ext.l R0
|
---|
| 394 | move.l R0,R8
|
---|
| 395 | move.l #_idbox,R9
|
---|
| 396 | move 8(R8,R9.l),-(sp)
|
---|
| 397 | L10002:move #64,-(sp)
|
---|
| 398 | move.l _instob,-(sp)
|
---|
| 399 | jsr _vcputsv
|
---|
| 400 | adda.l #18,sp
|
---|
| 401 | *line 179
|
---|
| 402 | clr R0
|
---|
| 403 | bra L27
|
---|
| 404 | L27:unlk R14
|
---|
| 405 | rts
|
---|
| 406 | .globl _nd_idin
|
---|
| 407 | .text
|
---|
| 408 | _nd_idin:
|
---|
| 409 | ~~nd_idin:
|
---|
| 410 | ~k=R7
|
---|
| 411 | ~n=8
|
---|
| 412 | link R14,#0
|
---|
| 413 | movem.l R4-R7,-(sp)
|
---|
| 414 | ~ec=R6
|
---|
| 415 | ~c=R5
|
---|
| 416 | *line 198
|
---|
| 417 | move 10(R14),R7
|
---|
| 418 | *line 198
|
---|
| 419 | move _stccol,R6
|
---|
| 420 | move.l _cfetp,R8
|
---|
| 421 | move 2(R8),R0
|
---|
| 422 | sub R0,R6
|
---|
| 423 | *line 199
|
---|
| 424 | move R7,R0
|
---|
| 425 | add #48,R0
|
---|
| 426 | move R6,R9
|
---|
| 427 | add.l #_ebuf,R9
|
---|
| 428 | move.b R0,(R9)
|
---|
| 429 | *line 200
|
---|
| 430 | clr.b 2+_ebuf
|
---|
| 431 | *line 202
|
---|
| 432 | move R7,R0
|
---|
| 433 | add #48,R0
|
---|
| 434 | move.b R0,_dspbuf
|
---|
| 435 | *line 203
|
---|
| 436 | clr.b 1+_dspbuf
|
---|
| 437 | *line 205
|
---|
| 438 | clr (sp)
|
---|
| 439 | jsr _vbank
|
---|
| 440 | *line 207
|
---|
| 441 | *line 208
|
---|
| 442 | move #14,(sp)
|
---|
| 443 | move.l #_dspbuf,-(sp)
|
---|
| 444 | move _stccol,-(sp)
|
---|
| 445 | move 8(R14),R0
|
---|
| 446 | asl #4,R0
|
---|
| 447 | ext.l R0
|
---|
| 448 | move.l R0,R8
|
---|
| 449 | move.l #_idbox,R9
|
---|
| 450 | move 12(R8,R9.l),-(sp)
|
---|
| 451 | move 8(R14),R0
|
---|
| 452 | asl #4,R0
|
---|
| 453 | ext.l R0
|
---|
| 454 | move.l R0,R8
|
---|
| 455 | move.l #_idbox,R9
|
---|
| 456 | move 10(R8,R9.l),-(sp)
|
---|
| 457 | move #10,-(sp)
|
---|
| 458 | move #64,-(sp)
|
---|
| 459 | move.l _instob,-(sp)
|
---|
| 460 | jsr _vcputsv
|
---|
| 461 | adda.l #18,sp
|
---|
| 462 | *line 210
|
---|
| 463 | jsr _advicur
|
---|
| 464 | *line 212
|
---|
| 465 | clr R0
|
---|
| 466 | bra L30
|
---|
| 467 | L30:tst.l (sp)+
|
---|
| 468 | movem.l (sp)+,R5-R7
|
---|
| 469 | unlk R14
|
---|
| 470 | rts
|
---|
| 471 | .data
|
---|
| 472 | L2:.dc.b $25,$30,$32,$64,$0
|
---|
| 473 | L29:.dc.b $25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.