Last change
on this file since 0170798 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
5.8 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 _stcrow
|
---|
| 44 | .globl _stccol
|
---|
| 45 | .globl _curvce
|
---|
| 46 | .globl _idbox
|
---|
| 47 | .globl _dspbuf
|
---|
| 48 | .globl _vbufs
|
---|
| 49 | .globl _wslib
|
---|
| 50 | .globl _et_iwsn
|
---|
| 51 | .text
|
---|
| 52 | _et_iwsn:
|
---|
| 53 | ~~et_iwsn:
|
---|
| 54 | ~nn=8
|
---|
| 55 | link R14,#0
|
---|
| 56 | movem.l R6-R7,-(sp)
|
---|
| 57 | ~m=R7
|
---|
| 58 | *line 45
|
---|
| 59 | move 8(R14),R7
|
---|
| 60 | asr #8,R7
|
---|
| 61 | *line 47
|
---|
| 62 | *line 48
|
---|
| 63 | tst R7
|
---|
| 64 | beq L10000
|
---|
| 65 | move _curvce,R0
|
---|
| 66 | muls #3938,R0
|
---|
| 67 | move.l R0,R8
|
---|
| 68 | move.l #_vbufs,R9
|
---|
| 69 | move.b 73(R8,R9.l),R0
|
---|
| 70 | ext.w R0
|
---|
| 71 | move R0,(sp)
|
---|
| 72 | add #1,(sp)
|
---|
| 73 | bra L10002
|
---|
| 74 | L10000:move _curvce,R0
|
---|
| 75 | muls #3938,R0
|
---|
| 76 | move.l R0,R8
|
---|
| 77 | move.l #_vbufs,R9
|
---|
| 78 | move.b 72(R8,R9.l),R0
|
---|
| 79 | ext.w R0
|
---|
| 80 | move R0,(sp)
|
---|
| 81 | add #1,(sp)
|
---|
| 82 | L10002:move.l #L2,-(sp)
|
---|
| 83 | move.l #_ebuf,-(sp)
|
---|
| 84 | jsr _sprintf
|
---|
| 85 | addq.l #8,sp
|
---|
| 86 | *line 49
|
---|
| 87 | move #1,_ebflag
|
---|
| 88 | *line 51
|
---|
| 89 | clr R0
|
---|
| 90 | bra L1
|
---|
| 91 | L1:tst.l (sp)+
|
---|
| 92 | movem.l (sp)+,R7-R7
|
---|
| 93 | unlk R14
|
---|
| 94 | rts
|
---|
| 95 | .globl _ef_iwsn
|
---|
| 96 | .text
|
---|
| 97 | _ef_iwsn:
|
---|
| 98 | ~~ef_iwsn:
|
---|
| 99 | ~nn=8
|
---|
| 100 | link R14,#0
|
---|
| 101 | movem.l R4-R7/R13-R13,-(sp)
|
---|
| 102 | ~i=R7
|
---|
| 103 | ~tmpval=R6
|
---|
| 104 | ~m=R5
|
---|
| 105 | ~fpuws=R13
|
---|
| 106 | *line 70
|
---|
| 107 | move 8(R14),R5
|
---|
| 108 | asr #8,R5
|
---|
| 109 | *line 71
|
---|
| 110 | clr.b 2+_ebuf
|
---|
| 111 | *line 72
|
---|
| 112 | clr _ebflag
|
---|
| 113 | *line 74
|
---|
| 114 | clr R6
|
---|
| 115 | *line 76
|
---|
| 116 | clr R7
|
---|
| 117 | bra L6
|
---|
| 118 | L7:
|
---|
| 119 | *line 77
|
---|
| 120 | muls #10,R6
|
---|
| 121 | move.l #_ebuf,R8
|
---|
| 122 | move.b 0(R8,R7),R0
|
---|
| 123 | ext.w R0
|
---|
| 124 | add R0,R6
|
---|
| 125 | add #-48,R6
|
---|
| 126 | L5:
|
---|
| 127 | *line 76
|
---|
| 128 | add #1,R7
|
---|
| 129 | L6:
|
---|
| 130 | *line 76
|
---|
| 131 | cmp #2,R7
|
---|
| 132 | blt L7
|
---|
| 133 | L4:
|
---|
| 134 | *line 79
|
---|
| 135 | *line 80
|
---|
| 136 | tst R6
|
---|
| 137 | beq L10003
|
---|
| 138 | cmp #20,R6
|
---|
| 139 | ble L8
|
---|
| 140 | L10003:*line 80
|
---|
| 141 | move #-1,R0
|
---|
| 142 | bra L3
|
---|
| 143 | *line 81
|
---|
| 144 | L8:
|
---|
| 145 | *line 82
|
---|
| 146 | *line 82
|
---|
| 147 | tst R5
|
---|
| 148 | beq L9
|
---|
| 149 | *line 83
|
---|
| 150 | *line 84
|
---|
| 151 | *line 85
|
---|
| 152 | move R6,R0
|
---|
| 153 | sub #1,R0
|
---|
| 154 | move _curvce,R1
|
---|
| 155 | muls #3938,R1
|
---|
| 156 | add.l #_vbufs,R1
|
---|
| 157 | move.l R1,R9
|
---|
| 158 | move.b R0,73(R9)
|
---|
| 159 | *line 86
|
---|
| 160 | *line 87
|
---|
| 161 | *line 88
|
---|
| 162 | move #540,(sp)
|
---|
| 163 | move R6,R0
|
---|
| 164 | sub #1,R0
|
---|
| 165 | muls #1080,R0
|
---|
| 166 | add.l #_wslib,R0
|
---|
| 167 | move.l R0,-(sp)
|
---|
| 168 | move _curvce,R0
|
---|
| 169 | muls #3938,R0
|
---|
| 170 | add.l #_vbufs,R0
|
---|
| 171 | move.l R0,-(sp)
|
---|
| 172 | add.l #2858,(sp)
|
---|
| 173 | jsr _memcpyw
|
---|
| 174 | addq.l #8,sp
|
---|
| 175 | *line 89
|
---|
| 176 | *line 90
|
---|
| 177 | move _curvce,R0
|
---|
| 178 | move #9,R1
|
---|
| 179 | asl R1,R0
|
---|
| 180 | asl #1,R0
|
---|
| 181 | ext.l R0
|
---|
| 182 | move.l R0,R13
|
---|
| 183 | add.l #_io_fpu,R13
|
---|
| 184 | add.l #$2,R13
|
---|
| 185 | *line 91
|
---|
| 186 | *line 92
|
---|
| 187 | move #254,(sp)
|
---|
| 188 | move _curvce,R0
|
---|
| 189 | muls #3938,R0
|
---|
| 190 | add.l #_vbufs,R0
|
---|
| 191 | move.l R0,-(sp)
|
---|
| 192 | add.l #2858,(sp)
|
---|
| 193 | move.l R13,-(sp)
|
---|
| 194 | jsr _memcpyw
|
---|
| 195 | addq.l #8,sp
|
---|
| 196 | *line 93
|
---|
| 197 | *line 94
|
---|
| 198 | move _curvce,R0
|
---|
| 199 | muls #3938,R0
|
---|
| 200 | add.l #_vbufs,R0
|
---|
| 201 | move.l R0,R8
|
---|
| 202 | move 2858(R8),-2(R13)
|
---|
| 203 | *line 95
|
---|
| 204 | move _curvce,R0
|
---|
| 205 | muls #3938,R0
|
---|
| 206 | add.l #_vbufs,R0
|
---|
| 207 | move.l R0,R8
|
---|
| 208 | move 3364(R8),508(R13)
|
---|
| 209 | *line 96
|
---|
| 210 | bra L10
|
---|
| 211 | L9:
|
---|
| 212 | *line 97
|
---|
| 213 | *line 98
|
---|
| 214 | *line 99
|
---|
| 215 | *line 100
|
---|
| 216 | *line 101
|
---|
| 217 | move R6,R0
|
---|
| 218 | sub #1,R0
|
---|
| 219 | move _curvce,R1
|
---|
| 220 | muls #3938,R1
|
---|
| 221 | add.l #_vbufs,R1
|
---|
| 222 | move.l R1,R9
|
---|
| 223 | move.b R0,72(R9)
|
---|
| 224 | *line 102
|
---|
| 225 | *line 103
|
---|
| 226 | *line 104
|
---|
| 227 | move #540,(sp)
|
---|
| 228 | move R6,R0
|
---|
| 229 | sub #1,R0
|
---|
| 230 | muls #1080,R0
|
---|
| 231 | add.l #_wslib,R0
|
---|
| 232 | move.l R0,-(sp)
|
---|
| 233 | move _curvce,R0
|
---|
| 234 | muls #3938,R0
|
---|
| 235 | add.l #_vbufs,R0
|
---|
| 236 | move.l R0,-(sp)
|
---|
| 237 | add.l #1778,(sp)
|
---|
| 238 | jsr _memcpyw
|
---|
| 239 | addq.l #8,sp
|
---|
| 240 | *line 105
|
---|
| 241 | *line 106
|
---|
| 242 | move _curvce,R0
|
---|
| 243 | move #9,R1
|
---|
| 244 | asl R1,R0
|
---|
| 245 | asl #1,R0
|
---|
| 246 | ext.l R0
|
---|
| 247 | move.l R0,R13
|
---|
| 248 | add.l #_io_fpu,R13
|
---|
| 249 | add.l #$202,R13
|
---|
| 250 | *line 107
|
---|
| 251 | *line 108
|
---|
| 252 | move #254,(sp)
|
---|
| 253 | move _curvce,R0
|
---|
| 254 | muls #3938,R0
|
---|
| 255 | add.l #_vbufs,R0
|
---|
| 256 | move.l R0,-(sp)
|
---|
| 257 | add.l #1778,(sp)
|
---|
| 258 | move.l R13,-(sp)
|
---|
| 259 | jsr _memcpyw
|
---|
| 260 | addq.l #8,sp
|
---|
| 261 | *line 109
|
---|
| 262 | *line 110
|
---|
| 263 | move _curvce,R0
|
---|
| 264 | muls #3938,R0
|
---|
| 265 | add.l #_vbufs,R0
|
---|
| 266 | move.l R0,R8
|
---|
| 267 | move 1778(R8),-2(R13)
|
---|
| 268 | *line 111
|
---|
| 269 | move _curvce,R0
|
---|
| 270 | muls #3938,R0
|
---|
| 271 | add.l #_vbufs,R0
|
---|
| 272 | move.l R0,R8
|
---|
| 273 | move 2284(R8),508(R13)
|
---|
| 274 | L10:
|
---|
| 275 | *line 114
|
---|
| 276 | move #21,(sp)
|
---|
| 277 | jsr _dswin
|
---|
| 278 | *line 115
|
---|
| 279 | jsr _modinst
|
---|
| 280 | *line 116
|
---|
| 281 | clr R0
|
---|
| 282 | bra L3
|
---|
| 283 | L3:tst.l (sp)+
|
---|
| 284 | movem.l (sp)+,R5-R7/R13-R13
|
---|
| 285 | unlk R14
|
---|
| 286 | rts
|
---|
| 287 | .globl _rd_iwsn
|
---|
| 288 | .text
|
---|
| 289 | _rd_iwsn:
|
---|
| 290 | ~~rd_iwsn:
|
---|
| 291 | ~nn=8
|
---|
| 292 | link R14,#0
|
---|
| 293 | movem.l R5-R7,-(sp)
|
---|
| 294 | ~m=R7
|
---|
| 295 | ~n=R6
|
---|
| 296 | *line 134
|
---|
| 297 | move 8(R14),R7
|
---|
| 298 | asr #8,R7
|
---|
| 299 | and #255,R7
|
---|
| 300 | *line 135
|
---|
| 301 | move 8(R14),R6
|
---|
| 302 | and #255,R6
|
---|
| 303 | *line 137
|
---|
| 304 | *line 138
|
---|
| 305 | tst R7
|
---|
| 306 | beq L10004
|
---|
| 307 | move _curvce,R0
|
---|
| 308 | muls #3938,R0
|
---|
| 309 | move.l R0,R8
|
---|
| 310 | move.l #_vbufs,R9
|
---|
| 311 | move.b 73(R8,R9.l),R0
|
---|
| 312 | ext.w R0
|
---|
| 313 | move R0,(sp)
|
---|
| 314 | add #1,(sp)
|
---|
| 315 | bra L10006
|
---|
| 316 | L10004:move _curvce,R0
|
---|
| 317 | muls #3938,R0
|
---|
| 318 | move.l R0,R8
|
---|
| 319 | move.l #_vbufs,R9
|
---|
| 320 | move.b 72(R8,R9.l),R0
|
---|
| 321 | ext.w R0
|
---|
| 322 | move R0,(sp)
|
---|
| 323 | add #1,(sp)
|
---|
| 324 | L10006:move.l #L12,-(sp)
|
---|
| 325 | move.l #_dspbuf,-(sp)
|
---|
| 326 | jsr _sprintf
|
---|
| 327 | addq.l #8,sp
|
---|
| 328 | *line 140
|
---|
| 329 | clr (sp)
|
---|
| 330 | jsr _vbank
|
---|
| 331 | *line 142
|
---|
| 332 | *line 143
|
---|
| 333 | move #14,(sp)
|
---|
| 334 | move.l #_dspbuf,-(sp)
|
---|
| 335 | move.l _cfetp,R8
|
---|
| 336 | move 2(R8),-(sp)
|
---|
| 337 | move.l _cfetp,R8
|
---|
| 338 | move (R8),-(sp)
|
---|
| 339 | move R6,R0
|
---|
| 340 | asl #4,R0
|
---|
| 341 | ext.l R0
|
---|
| 342 | move.l R0,R8
|
---|
| 343 | move.l #_idbox,R9
|
---|
| 344 | move 10(R8,R9.l),-(sp)
|
---|
| 345 | tst R7
|
---|
| 346 | beq L10007
|
---|
| 347 | move #4,-(sp)
|
---|
| 348 | bra L10009
|
---|
| 349 | L10007:move #8,-(sp)
|
---|
| 350 | L10009:move #64,-(sp)
|
---|
| 351 | move.l _instob,-(sp)
|
---|
| 352 | jsr _vcputsv
|
---|
| 353 | adda.l #18,sp
|
---|
| 354 | *line 145
|
---|
| 355 | clr R0
|
---|
| 356 | bra L11
|
---|
| 357 | L11:tst.l (sp)+
|
---|
| 358 | movem.l (sp)+,R6-R7
|
---|
| 359 | unlk R14
|
---|
| 360 | rts
|
---|
| 361 | .globl _nd_iwsn
|
---|
| 362 | .text
|
---|
| 363 | _nd_iwsn:
|
---|
| 364 | ~~nd_iwsn:
|
---|
| 365 | ~k=R7
|
---|
| 366 | ~nn=8
|
---|
| 367 | link R14,#0
|
---|
| 368 | movem.l R3-R7,-(sp)
|
---|
| 369 | ~ec=R6
|
---|
| 370 | ~c=R5
|
---|
| 371 | ~n=R4
|
---|
| 372 | *line 164
|
---|
| 373 | move 10(R14),R7
|
---|
| 374 | *line 164
|
---|
| 375 | move 8(R14),R4
|
---|
| 376 | and #255,R4
|
---|
| 377 | *line 166
|
---|
| 378 | move _stccol,R6
|
---|
| 379 | move.l _cfetp,R8
|
---|
| 380 | move 2(R8),R0
|
---|
| 381 | sub R0,R6
|
---|
| 382 | *line 167
|
---|
| 383 | move R7,R0
|
---|
| 384 | add #48,R0
|
---|
| 385 | move R6,R9
|
---|
| 386 | add.l #_ebuf,R9
|
---|
| 387 | move.b R0,(R9)
|
---|
| 388 | *line 168
|
---|
| 389 | clr.b 2+_ebuf
|
---|
| 390 | *line 170
|
---|
| 391 | move R7,R0
|
---|
| 392 | add #48,R0
|
---|
| 393 | move.b R0,_dspbuf
|
---|
| 394 | *line 171
|
---|
| 395 | clr.b 1+_dspbuf
|
---|
| 396 | *line 173
|
---|
| 397 | clr (sp)
|
---|
| 398 | jsr _vbank
|
---|
| 399 | *line 174
|
---|
| 400 | move #14,(sp)
|
---|
| 401 | move.l #_dspbuf,-(sp)
|
---|
| 402 | move _stccol,-(sp)
|
---|
| 403 | move _stcrow,-(sp)
|
---|
| 404 | move R4,R0
|
---|
| 405 | asl #4,R0
|
---|
| 406 | ext.l R0
|
---|
| 407 | move.l R0,R8
|
---|
| 408 | move.l #_idbox,R9
|
---|
| 409 | move 10(R8,R9.l),-(sp)
|
---|
| 410 | move #10,-(sp)
|
---|
| 411 | move #64,-(sp)
|
---|
| 412 | move.l _instob,-(sp)
|
---|
| 413 | jsr _vcputsv
|
---|
| 414 | adda.l #18,sp
|
---|
| 415 | *line 176
|
---|
| 416 | jsr _advicur
|
---|
| 417 | *line 178
|
---|
| 418 | clr R0
|
---|
| 419 | bra L13
|
---|
| 420 | L13:tst.l (sp)+
|
---|
| 421 | movem.l (sp)+,R4-R7
|
---|
| 422 | unlk R14
|
---|
| 423 | rts
|
---|
| 424 | .data
|
---|
| 425 | L2:.dc.b $25,$30,$32,$64,$0
|
---|
| 426 | L12:.dc.b $25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.