Last change
on this file since 0580615 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
5.0 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _Cbuffs
|
---|
| 2 | .globl _Stdbufs
|
---|
| 3 | .globl _Stdbuf
|
---|
| 4 | .globl _io_time
|
---|
| 5 | .globl _io_lcd
|
---|
| 6 | .globl _io_ser
|
---|
| 7 | .globl _io_midi
|
---|
| 8 | .globl _io_disk
|
---|
| 9 | .globl _io_tone
|
---|
| 10 | .globl _io_leds
|
---|
| 11 | .globl _io_kbrd
|
---|
| 12 | .globl _lcd_a0
|
---|
| 13 | .globl _lcd_a1
|
---|
| 14 | .globl _io_vreg
|
---|
| 15 | .globl _io_vraw
|
---|
| 16 | .globl _io_vram
|
---|
| 17 | .globl _io_fpu
|
---|
| 18 | .globl _v_regs
|
---|
| 19 | .globl _v_odtab
|
---|
| 20 | .globl _v_actab
|
---|
| 21 | .globl _v_ct0
|
---|
| 22 | .globl _v_gt1
|
---|
| 23 | .globl _v_score
|
---|
| 24 | .globl _v_cgtab
|
---|
| 25 | .globl _v_curs0
|
---|
| 26 | .globl _v_curs1
|
---|
| 27 | .globl _v_curs2
|
---|
| 28 | .globl _v_curs3
|
---|
| 29 | .globl _v_curs4
|
---|
| 30 | .globl _v_curs5
|
---|
| 31 | .globl _v_curs6
|
---|
| 32 | .globl _v_curs7
|
---|
| 33 | .globl _v_tcur
|
---|
| 34 | .globl _v_kbobj
|
---|
| 35 | .globl _v_lnobj
|
---|
| 36 | .globl _v_win0
|
---|
| 37 | .globl _v_cur
|
---|
| 38 | .globl _fc_sw
|
---|
| 39 | .globl _fc_val
|
---|
| 40 | .globl _stmptr
|
---|
| 41 | .globl _defptr
|
---|
| 42 | .globl _patches
|
---|
| 43 | .globl _defents
|
---|
| 44 | .globl _seqtab
|
---|
| 45 | .globl _seqflag
|
---|
| 46 | .globl _seqline
|
---|
| 47 | .globl _seqstim
|
---|
| 48 | .globl _seqtime
|
---|
| 49 | .globl _sregval
|
---|
| 50 | .globl _trstate
|
---|
| 51 | .globl _filecat
|
---|
| 52 | .globl _sqsizer
|
---|
| 53 | .text
|
---|
| 54 | _sqsizer:
|
---|
| 55 | ~~sqsizer:
|
---|
| 56 | link R14,#0
|
---|
| 57 | movem.l R4-R7,-(sp)
|
---|
| 58 | ~i=R7
|
---|
| 59 | ~na=R6
|
---|
| 60 | ~nb=R5
|
---|
| 61 | *line 42
|
---|
| 62 | clr.l R5
|
---|
| 63 | *line 44
|
---|
| 64 | clr R7
|
---|
| 65 | bra L4
|
---|
| 66 | L5:
|
---|
| 67 | *line 45
|
---|
| 68 | *line 46
|
---|
| 69 | clr R6
|
---|
| 70 | *line 47
|
---|
| 71 | *line 48
|
---|
| 72 | *line 49
|
---|
| 73 | move R7,R0
|
---|
| 74 | muls #14,R0
|
---|
| 75 | move.l R0,R8
|
---|
| 76 | move.l #_seqtab,R9
|
---|
| 77 | tst 0(R8,R9.l)
|
---|
| 78 | beq L6
|
---|
| 79 | *line 49
|
---|
| 80 | add #2,R6
|
---|
| 81 | *line 50
|
---|
| 82 | L6:
|
---|
| 83 | *line 51
|
---|
| 84 | *line 52
|
---|
| 85 | move R7,R0
|
---|
| 86 | muls #14,R0
|
---|
| 87 | move.l R0,R8
|
---|
| 88 | move.l #_seqtab,R9
|
---|
| 89 | tst 2(R8,R9.l)
|
---|
| 90 | beq L7
|
---|
| 91 | *line 52
|
---|
| 92 | add #4,R6
|
---|
| 93 | *line 53
|
---|
| 94 | L7:
|
---|
| 95 | *line 54
|
---|
| 96 | *line 55
|
---|
| 97 | move R7,R0
|
---|
| 98 | muls #14,R0
|
---|
| 99 | move.l R0,R8
|
---|
| 100 | move.l #_seqtab,R9
|
---|
| 101 | tst 6(R8,R9.l)
|
---|
| 102 | beq L8
|
---|
| 103 | *line 55
|
---|
| 104 | add #4,R6
|
---|
| 105 | *line 56
|
---|
| 106 | L8:
|
---|
| 107 | *line 57
|
---|
| 108 | *line 58
|
---|
| 109 | move R7,R0
|
---|
| 110 | muls #14,R0
|
---|
| 111 | move.l R0,R8
|
---|
| 112 | move.l #_seqtab,R9
|
---|
| 113 | tst 10(R8,R9.l)
|
---|
| 114 | beq L9
|
---|
| 115 | *line 58
|
---|
| 116 | add #4,R6
|
---|
| 117 | *line 59
|
---|
| 118 | L9:
|
---|
| 119 | *line 60
|
---|
| 120 | *line 61
|
---|
| 121 | tst R6
|
---|
| 122 | beq L10
|
---|
| 123 | *line 61
|
---|
| 124 | move R6,R0
|
---|
| 125 | add #3,R0
|
---|
| 126 | ext.l R0
|
---|
| 127 | add.l R0,R5
|
---|
| 128 | L10:L3:
|
---|
| 129 | *line 44
|
---|
| 130 | add #1,R7
|
---|
| 131 | L4:
|
---|
| 132 | *line 44
|
---|
| 133 | cmp #1000,R7
|
---|
| 134 | blt L5
|
---|
| 135 | L2:
|
---|
| 136 | *line 64
|
---|
| 137 | *line 65
|
---|
| 138 | tst.l R5
|
---|
| 139 | beq L11
|
---|
| 140 | *line 65
|
---|
| 141 | add.l #$1,R5
|
---|
| 142 | *line 66
|
---|
| 143 | *line 70
|
---|
| 144 | *line 71
|
---|
| 145 | L11:
|
---|
| 146 | *line 72
|
---|
| 147 | move.l R5,R0
|
---|
| 148 | bra L1
|
---|
| 149 | L1:tst.l (sp)+
|
---|
| 150 | movem.l (sp)+,R5-R7
|
---|
| 151 | unlk R14
|
---|
| 152 | rts
|
---|
| 153 | .globl _sqwrite
|
---|
| 154 | .text
|
---|
| 155 | _sqwrite:
|
---|
| 156 | ~~sqwrite:
|
---|
| 157 | ~fp=R13
|
---|
| 158 | link R14,#-54
|
---|
| 159 | movem.l R7-R7/R13-R13,-(sp)
|
---|
| 160 | ~seq=-2
|
---|
| 161 | ~cb=-4
|
---|
| 162 | ~zero=-6
|
---|
| 163 | ~scid=-54
|
---|
| 164 | *line 97
|
---|
| 165 | move.l 8(R14),R13
|
---|
| 166 | *line 97
|
---|
| 167 | clr.b -6(R14)
|
---|
| 168 | *line 99
|
---|
| 169 | *line 100
|
---|
| 170 | move #9,(sp)
|
---|
| 171 | move #12,-(sp)
|
---|
| 172 | move.l #L14,-(sp)
|
---|
| 173 | clr.l -(sp)
|
---|
| 174 | move.l #L13,-(sp)
|
---|
| 175 | jsr _ldwmsg
|
---|
| 176 | adda.l #14,sp
|
---|
| 177 | *line 102
|
---|
| 178 | clr -2(R14)
|
---|
| 179 | bra L17
|
---|
| 180 | L18:
|
---|
| 181 | *line 103
|
---|
| 182 | *line 104
|
---|
| 183 | clr.b -4(R14)
|
---|
| 184 | *line 105
|
---|
| 185 | *line 106
|
---|
| 186 | *line 107
|
---|
| 187 | move -2(R14),R0
|
---|
| 188 | muls #14,R0
|
---|
| 189 | move.l R0,R8
|
---|
| 190 | move.l #_seqtab,R9
|
---|
| 191 | tst 0(R8,R9.l)
|
---|
| 192 | beq L19
|
---|
| 193 | *line 107
|
---|
| 194 | or.b #8,-4(R14)
|
---|
| 195 | *line 108
|
---|
| 196 | L19:
|
---|
| 197 | *line 109
|
---|
| 198 | *line 110
|
---|
| 199 | move -2(R14),R0
|
---|
| 200 | muls #14,R0
|
---|
| 201 | move.l R0,R8
|
---|
| 202 | move.l #_seqtab,R9
|
---|
| 203 | tst 2(R8,R9.l)
|
---|
| 204 | beq L20
|
---|
| 205 | *line 110
|
---|
| 206 | or.b #4,-4(R14)
|
---|
| 207 | *line 111
|
---|
| 208 | L20:
|
---|
| 209 | *line 112
|
---|
| 210 | *line 113
|
---|
| 211 | move -2(R14),R0
|
---|
| 212 | muls #14,R0
|
---|
| 213 | move.l R0,R8
|
---|
| 214 | move.l #_seqtab,R9
|
---|
| 215 | tst 6(R8,R9.l)
|
---|
| 216 | beq L21
|
---|
| 217 | *line 113
|
---|
| 218 | or.b #2,-4(R14)
|
---|
| 219 | *line 114
|
---|
| 220 | L21:
|
---|
| 221 | *line 115
|
---|
| 222 | *line 116
|
---|
| 223 | move -2(R14),R0
|
---|
| 224 | muls #14,R0
|
---|
| 225 | move.l R0,R8
|
---|
| 226 | move.l #_seqtab,R9
|
---|
| 227 | tst 10(R8,R9.l)
|
---|
| 228 | beq L22
|
---|
| 229 | *line 116
|
---|
| 230 | or.b #1,-4(R14)
|
---|
| 231 | *line 117
|
---|
| 232 | L22:
|
---|
| 233 | *line 118
|
---|
| 234 | *line 119
|
---|
| 235 | tst.b -4(R14)
|
---|
| 236 | beq L16
|
---|
| 237 | *line 120
|
---|
| 238 | *line 121
|
---|
| 239 | *line 122
|
---|
| 240 | move.l #$1,(sp)
|
---|
| 241 | move.l R14,-(sp)
|
---|
| 242 | sub.l #4,(sp)
|
---|
| 243 | move.l R13,-(sp)
|
---|
| 244 | jsr _wr_ec
|
---|
| 245 | addq.l #8,sp
|
---|
| 246 | tst R0
|
---|
| 247 | beq L23
|
---|
| 248 | *line 122
|
---|
| 249 | move #-1,R0
|
---|
| 250 | bra L12
|
---|
| 251 | *line 123
|
---|
| 252 | L23:
|
---|
| 253 | *line 124
|
---|
| 254 | *line 125
|
---|
| 255 | move.l #$2,(sp)
|
---|
| 256 | move.l R14,-(sp)
|
---|
| 257 | sub.l #2,(sp)
|
---|
| 258 | move.l R13,-(sp)
|
---|
| 259 | jsr _wr_ec
|
---|
| 260 | addq.l #8,sp
|
---|
| 261 | tst R0
|
---|
| 262 | beq L24
|
---|
| 263 | *line 125
|
---|
| 264 | move #-1,R0
|
---|
| 265 | bra L12
|
---|
| 266 | *line 126
|
---|
| 267 | L24:
|
---|
| 268 | *line 127
|
---|
| 269 | *line 128
|
---|
| 270 | btst #3,-4(R14)
|
---|
| 271 | beq L25
|
---|
| 272 | *line 128
|
---|
| 273 | *line 129
|
---|
| 274 | move.l #$2,(sp)
|
---|
| 275 | move -2(R14),R0
|
---|
| 276 | muls #14,R0
|
---|
| 277 | add.l #_seqtab,R0
|
---|
| 278 | move.l R0,-(sp)
|
---|
| 279 | move.l R13,-(sp)
|
---|
| 280 | jsr _wr_ec
|
---|
| 281 | addq.l #8,sp
|
---|
| 282 | tst R0
|
---|
| 283 | beq L26
|
---|
| 284 | *line 129
|
---|
| 285 | move #-1,R0
|
---|
| 286 | bra L12
|
---|
| 287 | *line 130
|
---|
| 288 | L26:L25:
|
---|
| 289 | *line 131
|
---|
| 290 | *line 132
|
---|
| 291 | btst #2,-4(R14)
|
---|
| 292 | beq L27
|
---|
| 293 | *line 132
|
---|
| 294 | *line 133
|
---|
| 295 | move.l #$4,(sp)
|
---|
| 296 | move -2(R14),R0
|
---|
| 297 | muls #14,R0
|
---|
| 298 | add.l #_seqtab,R0
|
---|
| 299 | move.l R0,-(sp)
|
---|
| 300 | add.l #2,(sp)
|
---|
| 301 | move.l R13,-(sp)
|
---|
| 302 | jsr _wr_ec
|
---|
| 303 | addq.l #8,sp
|
---|
| 304 | tst R0
|
---|
| 305 | beq L28
|
---|
| 306 | *line 133
|
---|
| 307 | move #-1,R0
|
---|
| 308 | bra L12
|
---|
| 309 | *line 134
|
---|
| 310 | L28:L27:
|
---|
| 311 | *line 135
|
---|
| 312 | *line 136
|
---|
| 313 | btst #1,-4(R14)
|
---|
| 314 | beq L29
|
---|
| 315 | *line 136
|
---|
| 316 | *line 137
|
---|
| 317 | move.l #$4,(sp)
|
---|
| 318 | move -2(R14),R0
|
---|
| 319 | muls #14,R0
|
---|
| 320 | add.l #_seqtab,R0
|
---|
| 321 | move.l R0,-(sp)
|
---|
| 322 | add.l #6,(sp)
|
---|
| 323 | move.l R13,-(sp)
|
---|
| 324 | jsr _wr_ec
|
---|
| 325 | addq.l #8,sp
|
---|
| 326 | tst R0
|
---|
| 327 | beq L30
|
---|
| 328 | *line 137
|
---|
| 329 | move #-1,R0
|
---|
| 330 | bra L12
|
---|
| 331 | *line 138
|
---|
| 332 | L30:L29:
|
---|
| 333 | *line 139
|
---|
| 334 | *line 140
|
---|
| 335 | btst #0,-4(R14)
|
---|
| 336 | beq L31
|
---|
| 337 | *line 140
|
---|
| 338 | *line 141
|
---|
| 339 | move.l #$4,(sp)
|
---|
| 340 | move -2(R14),R0
|
---|
| 341 | muls #14,R0
|
---|
| 342 | add.l #_seqtab,R0
|
---|
| 343 | move.l R0,-(sp)
|
---|
| 344 | add.l #10,(sp)
|
---|
| 345 | move.l R13,-(sp)
|
---|
| 346 | jsr _wr_ec
|
---|
| 347 | addq.l #8,sp
|
---|
| 348 | tst R0
|
---|
| 349 | beq L32
|
---|
| 350 | *line 141
|
---|
| 351 | move #-1,R0
|
---|
| 352 | bra L12
|
---|
| 353 | L32:L31:L16:
|
---|
| 354 | *line 102
|
---|
| 355 | add #1,-2(R14)
|
---|
| 356 | L17:
|
---|
| 357 | *line 102
|
---|
| 358 | cmp #1000,-2(R14)
|
---|
| 359 | blt L18
|
---|
| 360 | L15:
|
---|
| 361 | *line 144
|
---|
| 362 | *line 145
|
---|
| 363 | move.l #$1,(sp)
|
---|
| 364 | move.l R14,-(sp)
|
---|
| 365 | sub.l #6,(sp)
|
---|
| 366 | move.l R13,-(sp)
|
---|
| 367 | jsr _wr_ec
|
---|
| 368 | addq.l #8,sp
|
---|
| 369 | tst R0
|
---|
| 370 | beq L33
|
---|
| 371 | *line 145
|
---|
| 372 | move #-1,R0
|
---|
| 373 | bra L12
|
---|
| 374 | *line 146
|
---|
| 375 | *line 150
|
---|
| 376 | *line 151
|
---|
| 377 | L33:
|
---|
| 378 | *line 152
|
---|
| 379 | clr R0
|
---|
| 380 | bra L12
|
---|
| 381 | L12:tst.l (sp)+
|
---|
| 382 | movem.l (sp)+,R13-R13
|
---|
| 383 | unlk R14
|
---|
| 384 | rts
|
---|
| 385 | .data
|
---|
| 386 | L13:.dc.b $42,$75,$73,$79,$20,$2D,$2D,$20,$50,$6C,$65,$61,$73,$65,$20,$73,$74,$61,$6E,$64,$20,$62,$79,$0
|
---|
| 387 | L14:.dc.b $20,$20,$77,$72,$69,$74,$69,$6E,$67,$20,$73,$65,$71,$75,$65,$6E,$63,$65,$73,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.