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:
3.9 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _io_time
|
---|
| 2 | .globl _io_lcd
|
---|
| 3 | .globl _io_ser
|
---|
| 4 | .globl _io_midi
|
---|
| 5 | .globl _io_disk
|
---|
| 6 | .globl _io_tone
|
---|
| 7 | .globl _io_leds
|
---|
| 8 | .globl _io_kbrd
|
---|
| 9 | .globl _lcd_a0
|
---|
| 10 | .globl _lcd_a1
|
---|
| 11 | .globl _io_vreg
|
---|
| 12 | .globl _io_vraw
|
---|
| 13 | .globl _io_vram
|
---|
| 14 | .globl _io_fpu
|
---|
| 15 | .globl _v_regs
|
---|
| 16 | .globl _v_odtab
|
---|
| 17 | .globl _v_actab
|
---|
| 18 | .globl _v_ct0
|
---|
| 19 | .globl _v_gt1
|
---|
| 20 | .globl _v_score
|
---|
| 21 | .globl _v_cgtab
|
---|
| 22 | .globl _v_curs0
|
---|
| 23 | .globl _v_curs1
|
---|
| 24 | .globl _v_curs2
|
---|
| 25 | .globl _v_curs3
|
---|
| 26 | .globl _v_curs4
|
---|
| 27 | .globl _v_curs5
|
---|
| 28 | .globl _v_curs6
|
---|
| 29 | .globl _v_curs7
|
---|
| 30 | .globl _v_tcur
|
---|
| 31 | .globl _v_kbobj
|
---|
| 32 | .globl _v_lnobj
|
---|
| 33 | .globl _v_win0
|
---|
| 34 | .globl _v_cur
|
---|
| 35 | .globl _fc_sw
|
---|
| 36 | .globl _fc_val
|
---|
| 37 | .globl _ebflag
|
---|
| 38 | .globl _ebuf
|
---|
| 39 | .globl _curfet
|
---|
| 40 | .globl _cfetp
|
---|
| 41 | .globl _infetp
|
---|
| 42 | .globl _instob
|
---|
| 43 | .globl _stcrow
|
---|
| 44 | .globl _stccol
|
---|
| 45 | .globl _curvce
|
---|
| 46 | .globl _curfunc
|
---|
| 47 | .globl _idbox
|
---|
| 48 | .globl _dspbuf
|
---|
| 49 | .globl _vbufs
|
---|
| 50 | .globl _pntptr
|
---|
| 51 | .globl _rsntab
|
---|
| 52 | .data
|
---|
| 53 | _rsntab:
|
---|
| 54 | .dc.w $0
|
---|
| 55 | .dc.w $DC0
|
---|
| 56 | .dc.w $1B80
|
---|
| 57 | .dc.w $2940
|
---|
| 58 | .dc.w $3700
|
---|
| 59 | .dc.w $44C0
|
---|
| 60 | .dc.w $5280
|
---|
| 61 | .dc.w $6040
|
---|
| 62 | .dc.w $6E00
|
---|
| 63 | .dc.w $7D00
|
---|
| 64 | .globl _et_ires
|
---|
| 65 | .text
|
---|
| 66 | _et_ires:
|
---|
| 67 | ~~et_ires:
|
---|
| 68 | ~n=8
|
---|
| 69 | link R14,#-4
|
---|
| 70 | *line 59
|
---|
| 71 | *line 60
|
---|
| 72 | cmp #4,_curfunc
|
---|
| 73 | beq L2
|
---|
| 74 | *line 60
|
---|
| 75 | move #-1,R0
|
---|
| 76 | bra L1
|
---|
| 77 | *line 61
|
---|
| 78 | L2:
|
---|
| 79 | *line 62
|
---|
| 80 | move _curvce,R0
|
---|
| 81 | muls #3938,R0
|
---|
| 82 | add.l #_vbufs,R0
|
---|
| 83 | move.l R0,R8
|
---|
| 84 | move.b 143(R8),R0
|
---|
| 85 | ext.w R0
|
---|
| 86 | add #48,R0
|
---|
| 87 | move.b R0,_ebuf
|
---|
| 88 | *line 63
|
---|
| 89 | clr.b 1+_ebuf
|
---|
| 90 | *line 64
|
---|
| 91 | move #1,_ebflag
|
---|
| 92 | *line 65
|
---|
| 93 | clr R0
|
---|
| 94 | bra L1
|
---|
| 95 | L1:unlk R14
|
---|
| 96 | rts
|
---|
| 97 | .globl _ef_ires
|
---|
| 98 | .text
|
---|
| 99 | _ef_ires:
|
---|
| 100 | ~~ef_ires:
|
---|
| 101 | ~n=8
|
---|
| 102 | link R14,#0
|
---|
| 103 | movem.l R6-R7,-(sp)
|
---|
| 104 | ~tmpval=R7
|
---|
| 105 | *line 80
|
---|
| 106 | *line 81
|
---|
| 107 | cmp #4,_curfunc
|
---|
| 108 | beq L4
|
---|
| 109 | *line 81
|
---|
| 110 | move #-1,R0
|
---|
| 111 | bra L3
|
---|
| 112 | *line 82
|
---|
| 113 | L4:
|
---|
| 114 | *line 83
|
---|
| 115 | clr.b 1+_ebuf
|
---|
| 116 | *line 84
|
---|
| 117 | clr _ebflag
|
---|
| 118 | *line 85
|
---|
| 119 | move.b _ebuf,R7
|
---|
| 120 | ext.w R7
|
---|
| 121 | add #-48,R7
|
---|
| 122 | *line 86
|
---|
| 123 | move R7,R0
|
---|
| 124 | move _curvce,R1
|
---|
| 125 | muls #3938,R1
|
---|
| 126 | add.l #_vbufs,R1
|
---|
| 127 | move.l R1,R9
|
---|
| 128 | move.b R0,143(R9)
|
---|
| 129 | *line 87
|
---|
| 130 | move R7,R8
|
---|
| 131 | add.l R8,R8
|
---|
| 132 | move.l #_rsntab,R9
|
---|
| 133 | move 0(R8,R9.l),(sp)
|
---|
| 134 | move #6,-(sp)
|
---|
| 135 | move _curvce,-(sp)
|
---|
| 136 | jsr _sendval
|
---|
| 137 | addq.l #4,sp
|
---|
| 138 | *line 88
|
---|
| 139 | jsr _modinst
|
---|
| 140 | *line 89
|
---|
| 141 | clr R0
|
---|
| 142 | bra L3
|
---|
| 143 | L3:tst.l (sp)+
|
---|
| 144 | movem.l (sp)+,R7-R7
|
---|
| 145 | unlk R14
|
---|
| 146 | rts
|
---|
| 147 | .globl _rd_ires
|
---|
| 148 | .text
|
---|
| 149 | _rd_ires:
|
---|
| 150 | ~~rd_ires:
|
---|
| 151 | ~n=8
|
---|
| 152 | link R14,#0
|
---|
| 153 | movem.l R7-R7/R13-R13,-(sp)
|
---|
| 154 | ~fp=R13
|
---|
| 155 | *line 107
|
---|
| 156 | move _curvce,R0
|
---|
| 157 | muls #3938,R0
|
---|
| 158 | move.l R0,R13
|
---|
| 159 | add.l #_vbufs,R13
|
---|
| 160 | add.l #134,R13
|
---|
| 161 | *line 109
|
---|
| 162 | *line 110
|
---|
| 163 | cmp #4,_curfunc
|
---|
| 164 | beq L6
|
---|
| 165 | *line 110
|
---|
| 166 | move #-1,R0
|
---|
| 167 | bra L5
|
---|
| 168 | *line 111
|
---|
| 169 | L6:
|
---|
| 170 | *line 112
|
---|
| 171 | move.b 9(R13),R0
|
---|
| 172 | ext.w R0
|
---|
| 173 | add #48,R0
|
---|
| 174 | move.b R0,_dspbuf
|
---|
| 175 | *line 113
|
---|
| 176 | clr.b 1+_dspbuf
|
---|
| 177 | *line 115
|
---|
| 178 | *line 116
|
---|
| 179 | clr R0
|
---|
| 180 | move 10+_v_regs,R0
|
---|
| 181 | and #384,R0
|
---|
| 182 | beq L7
|
---|
| 183 | *line 116
|
---|
| 184 | clr (sp)
|
---|
| 185 | jsr _vbank
|
---|
| 186 | *line 117
|
---|
| 187 | L7:
|
---|
| 188 | *line 118
|
---|
| 189 | *line 119
|
---|
| 190 | move #14,(sp)
|
---|
| 191 | move.l #_dspbuf,-(sp)
|
---|
| 192 | move 8(R14),R0
|
---|
| 193 | asl #4,R0
|
---|
| 194 | ext.l R0
|
---|
| 195 | move.l R0,R8
|
---|
| 196 | move.l #_idbox,R9
|
---|
| 197 | move 14(R8,R9.l),-(sp)
|
---|
| 198 | add #8,(sp)
|
---|
| 199 | move 8(R14),R0
|
---|
| 200 | asl #4,R0
|
---|
| 201 | ext.l R0
|
---|
| 202 | move.l R0,R8
|
---|
| 203 | move.l #_idbox,R9
|
---|
| 204 | move 12(R8,R9.l),-(sp)
|
---|
| 205 | add #1,(sp)
|
---|
| 206 | move 8(R14),R0
|
---|
| 207 | asl #4,R0
|
---|
| 208 | ext.l R0
|
---|
| 209 | move.l R0,R8
|
---|
| 210 | move.l #_idbox,R9
|
---|
| 211 | move 10(R8,R9.l),-(sp)
|
---|
| 212 | btst #0,7(R13)
|
---|
| 213 | beq L10000
|
---|
| 214 | move 8(R14),R0
|
---|
| 215 | asl #4,R0
|
---|
| 216 | ext.l R0
|
---|
| 217 | move.l R0,R8
|
---|
| 218 | move.l #_idbox,R9
|
---|
| 219 | move 8(R8,R9.l),-(sp)
|
---|
| 220 | bra L10002
|
---|
| 221 | L10000:move #2,-(sp)
|
---|
| 222 | L10002:move #64,-(sp)
|
---|
| 223 | move.l _instob,-(sp)
|
---|
| 224 | jsr _vcputsv
|
---|
| 225 | adda.l #18,sp
|
---|
| 226 | *line 121
|
---|
| 227 | clr R0
|
---|
| 228 | bra L5
|
---|
| 229 | L5:tst.l (sp)+
|
---|
| 230 | movem.l (sp)+,R13-R13
|
---|
| 231 | unlk R14
|
---|
| 232 | rts
|
---|
| 233 | .globl _nd_ires
|
---|
| 234 | .text
|
---|
| 235 | _nd_ires:
|
---|
| 236 | ~~nd_ires:
|
---|
| 237 | ~k=R7
|
---|
| 238 | ~n=8
|
---|
| 239 | link R14,#0
|
---|
| 240 | movem.l R6-R7,-(sp)
|
---|
| 241 | *line 138
|
---|
| 242 | move 10(R14),R7
|
---|
| 243 | *line 138
|
---|
| 244 | *line 139
|
---|
| 245 | cmp #4,_curfunc
|
---|
| 246 | beq L9
|
---|
| 247 | *line 139
|
---|
| 248 | move #-1,R0
|
---|
| 249 | bra L8
|
---|
| 250 | *line 140
|
---|
| 251 | L9:
|
---|
| 252 | *line 141
|
---|
| 253 | move R7,R0
|
---|
| 254 | add #48,R0
|
---|
| 255 | move.b R0,_ebuf
|
---|
| 256 | move.b R0,_dspbuf
|
---|
| 257 | *line 142
|
---|
| 258 | clr R0
|
---|
| 259 | move.b R0,1+_ebuf
|
---|
| 260 | move.b R0,1+_dspbuf
|
---|
| 261 | *line 144
|
---|
| 262 | *line 145
|
---|
| 263 | clr R0
|
---|
| 264 | move 10+_v_regs,R0
|
---|
| 265 | and #384,R0
|
---|
| 266 | beq L10
|
---|
| 267 | *line 145
|
---|
| 268 | clr (sp)
|
---|
| 269 | jsr _vbank
|
---|
| 270 | *line 146
|
---|
| 271 | L10:
|
---|
| 272 | *line 147
|
---|
| 273 | move #14,(sp)
|
---|
| 274 | move.l #_dspbuf,-(sp)
|
---|
| 275 | move _stccol,-(sp)
|
---|
| 276 | move _stcrow,-(sp)
|
---|
| 277 | move 8(R14),R0
|
---|
| 278 | asl #4,R0
|
---|
| 279 | ext.l R0
|
---|
| 280 | move.l R0,R8
|
---|
| 281 | move.l #_idbox,R9
|
---|
| 282 | move 10(R8,R9.l),-(sp)
|
---|
| 283 | move #10,-(sp)
|
---|
| 284 | move #64,-(sp)
|
---|
| 285 | move.l _instob,-(sp)
|
---|
| 286 | jsr _vcputsv
|
---|
| 287 | adda.l #18,sp
|
---|
| 288 | *line 148
|
---|
| 289 | clr R0
|
---|
| 290 | bra L8
|
---|
| 291 | L8:tst.l (sp)+
|
---|
| 292 | movem.l (sp)+,R7-R7
|
---|
| 293 | unlk R14
|
---|
| 294 | rts
|
---|
| 295 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.