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:
3.5 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 _obj8
|
---|
| 43 | .globl _clkrun
|
---|
| 44 | .globl _insmode
|
---|
| 45 | .globl _stccol
|
---|
| 46 | .globl _t_cur
|
---|
| 47 | .globl _et_snbt
|
---|
| 48 | .text
|
---|
| 49 | _et_snbt:
|
---|
| 50 | ~~et_snbt:
|
---|
| 51 | ~n=8
|
---|
| 52 | link R14,#0
|
---|
| 53 | movem.l R5-R7,-(sp)
|
---|
| 54 | ~curfr=R7
|
---|
| 55 | ~beat=R6
|
---|
| 56 | *line 42
|
---|
| 57 | *line 42
|
---|
| 58 | tst _clkrun
|
---|
| 59 | beq L2
|
---|
| 60 | *line 43
|
---|
| 61 | *line 44
|
---|
| 62 | clr _ebflag
|
---|
| 63 | *line 45
|
---|
| 64 | move #-1,R0
|
---|
| 65 | bra L1
|
---|
| 66 | *line 46
|
---|
| 67 | *line 47
|
---|
| 68 | L2:
|
---|
| 69 | *line 48
|
---|
| 70 | move.l _t_cur,R7
|
---|
| 71 | *line 49
|
---|
| 72 | move.l #$30,-(sp)
|
---|
| 73 | move.l R7,-(sp)
|
---|
| 74 | jsr ldiv
|
---|
| 75 | addq.l #8,sp
|
---|
| 76 | move.l R0,R6
|
---|
| 77 | *line 51
|
---|
| 78 | move.l R6,(sp)
|
---|
| 79 | move.l #L3,-(sp)
|
---|
| 80 | move.l #_ebuf,-(sp)
|
---|
| 81 | jsr _sprintf
|
---|
| 82 | addq.l #8,sp
|
---|
| 83 | *line 52
|
---|
| 84 | move #1,_ebflag
|
---|
| 85 | *line 54
|
---|
| 86 | clr R0
|
---|
| 87 | bra L1
|
---|
| 88 | L1:tst.l (sp)+
|
---|
| 89 | movem.l (sp)+,R6-R7
|
---|
| 90 | unlk R14
|
---|
| 91 | rts
|
---|
| 92 | .globl _ef_snbt
|
---|
| 93 | .text
|
---|
| 94 | _ef_snbt:
|
---|
| 95 | ~~ef_snbt:
|
---|
| 96 | ~n=8
|
---|
| 97 | link R14,#0
|
---|
| 98 | movem.l R5-R7,-(sp)
|
---|
| 99 | ~ival=R7
|
---|
| 100 | ~i=R6
|
---|
| 101 | *line 70
|
---|
| 102 | *line 71
|
---|
| 103 | tst _clkrun
|
---|
| 104 | beq L5
|
---|
| 105 | *line 71
|
---|
| 106 | move #-1,R0
|
---|
| 107 | bra L4
|
---|
| 108 | *line 72
|
---|
| 109 | L5:
|
---|
| 110 | *line 73
|
---|
| 111 | clr.l R7
|
---|
| 112 | *line 75
|
---|
| 113 | clr R6
|
---|
| 114 | bra L8
|
---|
| 115 | L9:
|
---|
| 116 | *line 76
|
---|
| 117 | move.l #$a,-(sp)
|
---|
| 118 | move.l R7,-(sp)
|
---|
| 119 | jsr lmul
|
---|
| 120 | addq.l #8,sp
|
---|
| 121 | move.l R0,R7
|
---|
| 122 | move.l #_ebuf,R8
|
---|
| 123 | move.b 0(R8,R6),R0
|
---|
| 124 | ext.w R0
|
---|
| 125 | add #-48,R0
|
---|
| 126 | ext.l R0
|
---|
| 127 | add.l R0,R7
|
---|
| 128 | L7:
|
---|
| 129 | *line 75
|
---|
| 130 | add #1,R6
|
---|
| 131 | L8:
|
---|
| 132 | *line 75
|
---|
| 133 | cmp #5,R6
|
---|
| 134 | blt L9
|
---|
| 135 | L6:
|
---|
| 136 | *line 78
|
---|
| 137 | clr _ebflag
|
---|
| 138 | *line 80
|
---|
| 139 | *line 80
|
---|
| 140 | tst _insmode
|
---|
| 141 | beq L10
|
---|
| 142 | *line 81
|
---|
| 143 | *line 82
|
---|
| 144 | jsr _icancel
|
---|
| 145 | *line 83
|
---|
| 146 | jsr _dsimode
|
---|
| 147 | *line 84
|
---|
| 148 | *line 85
|
---|
| 149 | L10:
|
---|
| 150 | *line 86
|
---|
| 151 | move.l #$30,-(sp)
|
---|
| 152 | move.l R7,-(sp)
|
---|
| 153 | jsr lmul
|
---|
| 154 | addq.l #8,sp
|
---|
| 155 | move.l R0,_fc_val
|
---|
| 156 | move.l R0,(sp)
|
---|
| 157 | jsr _sc_goto
|
---|
| 158 | *line 87
|
---|
| 159 | clr R0
|
---|
| 160 | bra L4
|
---|
| 161 | L4:tst.l (sp)+
|
---|
| 162 | movem.l (sp)+,R6-R7
|
---|
| 163 | unlk R14
|
---|
| 164 | rts
|
---|
| 165 | .globl _rd_snbt
|
---|
| 166 | .text
|
---|
| 167 | _rd_snbt:
|
---|
| 168 | ~~rd_snbt:
|
---|
| 169 | ~n=8
|
---|
| 170 | link R14,#-8
|
---|
| 171 | movem.l R5-R7,-(sp)
|
---|
| 172 | ~curfr=R7
|
---|
| 173 | ~beat=R6
|
---|
| 174 | ~buf=-8
|
---|
| 175 | *line 106
|
---|
| 176 | move.l _t_cur,R7
|
---|
| 177 | *line 107
|
---|
| 178 | move.l #$30,-(sp)
|
---|
| 179 | move.l R7,-(sp)
|
---|
| 180 | jsr ldiv
|
---|
| 181 | addq.l #8,sp
|
---|
| 182 | move.l R0,R6
|
---|
| 183 | *line 108
|
---|
| 184 | move.l R6,(sp)
|
---|
| 185 | move.l #L12,-(sp)
|
---|
| 186 | move.l R14,-(sp)
|
---|
| 187 | sub.l #8,(sp)
|
---|
| 188 | jsr _sprintf
|
---|
| 189 | addq.l #8,sp
|
---|
| 190 | *line 110
|
---|
| 191 | *line 111
|
---|
| 192 | clr R0
|
---|
| 193 | move 10+_v_regs,R0
|
---|
| 194 | and #384,R0
|
---|
| 195 | beq L13
|
---|
| 196 | *line 111
|
---|
| 197 | clr (sp)
|
---|
| 198 | jsr _vbank
|
---|
| 199 | *line 112
|
---|
| 200 | L13:
|
---|
| 201 | *line 113
|
---|
| 202 | move #19,(sp)
|
---|
| 203 | move.l R14,-(sp)
|
---|
| 204 | sub.l #8,(sp)
|
---|
| 205 | move #11,-(sp)
|
---|
| 206 | clr -(sp)
|
---|
| 207 | move.l _obj8,-(sp)
|
---|
| 208 | jsr _vputs
|
---|
| 209 | adda.l #12,sp
|
---|
| 210 | *line 115
|
---|
| 211 | clr R0
|
---|
| 212 | bra L11
|
---|
| 213 | L11:tst.l (sp)+
|
---|
| 214 | movem.l (sp)+,R6-R7
|
---|
| 215 | unlk R14
|
---|
| 216 | rts
|
---|
| 217 | .globl _nd_snbt
|
---|
| 218 | .text
|
---|
| 219 | _nd_snbt:
|
---|
| 220 | ~~nd_snbt:
|
---|
| 221 | ~n=R7
|
---|
| 222 | ~k=R6
|
---|
| 223 | link R14,#0
|
---|
| 224 | movem.l R4-R7,-(sp)
|
---|
| 225 | ~ec=R5
|
---|
| 226 | *line 133
|
---|
| 227 | move 8(R14),R7
|
---|
| 228 | *line 133
|
---|
| 229 | move 10(R14),R6
|
---|
| 230 | *line 133
|
---|
| 231 | *line 134
|
---|
| 232 | tst _clkrun
|
---|
| 233 | beq L15
|
---|
| 234 | *line 134
|
---|
| 235 | move #-1,R0
|
---|
| 236 | bra L14
|
---|
| 237 | *line 135
|
---|
| 238 | L15:
|
---|
| 239 | *line 136
|
---|
| 240 | move _stccol,R5
|
---|
| 241 | move.l _cfetp,R8
|
---|
| 242 | move 2(R8),R0
|
---|
| 243 | sub R0,R5
|
---|
| 244 | *line 137
|
---|
| 245 | move R6,R0
|
---|
| 246 | add #48,R0
|
---|
| 247 | move R5,R9
|
---|
| 248 | add.l #_ebuf,R9
|
---|
| 249 | move.b R0,(R9)
|
---|
| 250 | *line 139
|
---|
| 251 | *line 140
|
---|
| 252 | clr R0
|
---|
| 253 | move 10+_v_regs,R0
|
---|
| 254 | and #384,R0
|
---|
| 255 | beq L16
|
---|
| 256 | *line 140
|
---|
| 257 | clr (sp)
|
---|
| 258 | jsr _vbank
|
---|
| 259 | *line 141
|
---|
| 260 | L16:
|
---|
| 261 | *line 142
|
---|
| 262 | move #99,(sp)
|
---|
| 263 | move R6,-(sp)
|
---|
| 264 | add #48,(sp)
|
---|
| 265 | move _stccol,-(sp)
|
---|
| 266 | clr -(sp)
|
---|
| 267 | move.l _obj8,-(sp)
|
---|
| 268 | jsr _vputc
|
---|
| 269 | adda.l #10,sp
|
---|
| 270 | *line 143
|
---|
| 271 | jsr _advscur
|
---|
| 272 | *line 145
|
---|
| 273 | clr R0
|
---|
| 274 | bra L14
|
---|
| 275 | L14:tst.l (sp)+
|
---|
| 276 | movem.l (sp)+,R5-R7
|
---|
| 277 | unlk R14
|
---|
| 278 | rts
|
---|
| 279 | .data
|
---|
| 280 | L3:.dc.b $25,$30,$35,$6C,$64,$0
|
---|
| 281 | L12:.dc.b $25,$30,$35,$6C,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.