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