Last change
on this file since 4810254 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
3.7 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 _stccol
|
---|
| 44 | .globl _curvce
|
---|
| 45 | .globl _idbox
|
---|
| 46 | .globl _dspbuf
|
---|
| 47 | .globl _vbufs
|
---|
| 48 | .globl _et_icnf
|
---|
| 49 | .text
|
---|
| 50 | _et_icnf:
|
---|
| 51 | ~~et_icnf:
|
---|
| 52 | ~n=8
|
---|
| 53 | link R14,#-4
|
---|
| 54 | *line 43
|
---|
| 55 | move _curvce,R0
|
---|
| 56 | muls #3938,R0
|
---|
| 57 | move.l R0,R8
|
---|
| 58 | move.l #_vbufs,R9
|
---|
| 59 | move.b 70(R8,R9.l),R0
|
---|
| 60 | ext.w R0
|
---|
| 61 | move R0,(sp)
|
---|
| 62 | move.l #L2,-(sp)
|
---|
| 63 | move.l #_ebuf,-(sp)
|
---|
| 64 | jsr _sprintf
|
---|
| 65 | addq.l #8,sp
|
---|
| 66 | *line 44
|
---|
| 67 | move #1,_ebflag
|
---|
| 68 | *line 46
|
---|
| 69 | clr R0
|
---|
| 70 | bra L1
|
---|
| 71 | L1:unlk R14
|
---|
| 72 | rts
|
---|
| 73 | .globl _ef_icnf
|
---|
| 74 | .text
|
---|
| 75 | _ef_icnf:
|
---|
| 76 | ~~ef_icnf:
|
---|
| 77 | ~n=8
|
---|
| 78 | link R14,#0
|
---|
| 79 | movem.l R5-R7,-(sp)
|
---|
| 80 | ~i=R7
|
---|
| 81 | ~tmpval=R6
|
---|
| 82 | *line 64
|
---|
| 83 | clr.b 2+_ebuf
|
---|
| 84 | *line 65
|
---|
| 85 | clr _ebflag
|
---|
| 86 | *line 67
|
---|
| 87 | clr R6
|
---|
| 88 | *line 69
|
---|
| 89 | clr R7
|
---|
| 90 | bra L6
|
---|
| 91 | L7:
|
---|
| 92 | *line 70
|
---|
| 93 | muls #10,R6
|
---|
| 94 | move.l #_ebuf,R8
|
---|
| 95 | move.b 0(R8,R7),R0
|
---|
| 96 | ext.w R0
|
---|
| 97 | add R0,R6
|
---|
| 98 | add #-48,R6
|
---|
| 99 | L5:
|
---|
| 100 | *line 69
|
---|
| 101 | add #1,R7
|
---|
| 102 | L6:
|
---|
| 103 | *line 69
|
---|
| 104 | cmp #2,R7
|
---|
| 105 | blt L7
|
---|
| 106 | L4:
|
---|
| 107 | *line 72
|
---|
| 108 | *line 73
|
---|
| 109 | cmp #12,R6
|
---|
| 110 | blt L8
|
---|
| 111 | *line 73
|
---|
| 112 | move #-1,R0
|
---|
| 113 | bra L3
|
---|
| 114 | *line 74
|
---|
| 115 | L8:
|
---|
| 116 | *line 75
|
---|
| 117 | move R6,R0
|
---|
| 118 | move _curvce,R1
|
---|
| 119 | muls #3938,R1
|
---|
| 120 | add.l #_vbufs,R1
|
---|
| 121 | move.l R1,R9
|
---|
| 122 | move.b R0,70(R9)
|
---|
| 123 | *line 76
|
---|
| 124 | move _curvce,(sp)
|
---|
| 125 | jsr _dosync
|
---|
| 126 | *line 77
|
---|
| 127 | move R6,(sp)
|
---|
| 128 | jsr _showcfg
|
---|
| 129 | *line 78
|
---|
| 130 | jsr _modinst
|
---|
| 131 | *line 79
|
---|
| 132 | clr R0
|
---|
| 133 | bra L3
|
---|
| 134 | L3:tst.l (sp)+
|
---|
| 135 | movem.l (sp)+,R6-R7
|
---|
| 136 | unlk R14
|
---|
| 137 | rts
|
---|
| 138 | .globl _rd_icnf
|
---|
| 139 | .text
|
---|
| 140 | _rd_icnf:
|
---|
| 141 | ~~rd_icnf:
|
---|
| 142 | ~n=8
|
---|
| 143 | link R14,#-4
|
---|
| 144 | *line 95
|
---|
| 145 | move _curvce,R0
|
---|
| 146 | muls #3938,R0
|
---|
| 147 | move.l R0,R8
|
---|
| 148 | move.l #_vbufs,R9
|
---|
| 149 | move.b 70(R8,R9.l),R0
|
---|
| 150 | ext.w R0
|
---|
| 151 | move R0,(sp)
|
---|
| 152 | move.l #L10,-(sp)
|
---|
| 153 | move.l #_dspbuf,-(sp)
|
---|
| 154 | jsr _sprintf
|
---|
| 155 | addq.l #8,sp
|
---|
| 156 | *line 97
|
---|
| 157 | *line 98
|
---|
| 158 | clr R0
|
---|
| 159 | move 10+_v_regs,R0
|
---|
| 160 | and #384,R0
|
---|
| 161 | beq L11
|
---|
| 162 | *line 98
|
---|
| 163 | clr (sp)
|
---|
| 164 | jsr _vbank
|
---|
| 165 | *line 99
|
---|
| 166 | L11:
|
---|
| 167 | *line 100
|
---|
| 168 | *line 101
|
---|
| 169 | move #14,(sp)
|
---|
| 170 | move.l #_dspbuf,-(sp)
|
---|
| 171 | move 8(R14),R0
|
---|
| 172 | asl #4,R0
|
---|
| 173 | ext.l R0
|
---|
| 174 | move.l R0,R8
|
---|
| 175 | move.l #_idbox,R9
|
---|
| 176 | move 14(R8,R9.l),-(sp)
|
---|
| 177 | add #10,(sp)
|
---|
| 178 | move 8(R14),R0
|
---|
| 179 | asl #4,R0
|
---|
| 180 | ext.l R0
|
---|
| 181 | move.l R0,R8
|
---|
| 182 | move.l #_idbox,R9
|
---|
| 183 | move 12(R8,R9.l),-(sp)
|
---|
| 184 | move 8(R14),R0
|
---|
| 185 | asl #4,R0
|
---|
| 186 | ext.l R0
|
---|
| 187 | move.l R0,R8
|
---|
| 188 | move.l #_idbox,R9
|
---|
| 189 | move 10(R8,R9.l),-(sp)
|
---|
| 190 | move 8(R14),R0
|
---|
| 191 | asl #4,R0
|
---|
| 192 | ext.l R0
|
---|
| 193 | move.l R0,R8
|
---|
| 194 | move.l #_idbox,R9
|
---|
| 195 | move 8(R8,R9.l),-(sp)
|
---|
| 196 | move #64,-(sp)
|
---|
| 197 | move.l _instob,-(sp)
|
---|
| 198 | jsr _vcputsv
|
---|
| 199 | adda.l #18,sp
|
---|
| 200 | *line 103
|
---|
| 201 | clr R0
|
---|
| 202 | bra L9
|
---|
| 203 | L9:unlk R14
|
---|
| 204 | rts
|
---|
| 205 | .globl _nd_icnf
|
---|
| 206 | .text
|
---|
| 207 | _nd_icnf:
|
---|
| 208 | ~~nd_icnf:
|
---|
| 209 | ~k=R7
|
---|
| 210 | ~n=8
|
---|
| 211 | link R14,#0
|
---|
| 212 | movem.l R4-R7,-(sp)
|
---|
| 213 | ~ec=R6
|
---|
| 214 | ~c=R5
|
---|
| 215 | *line 122
|
---|
| 216 | move 10(R14),R7
|
---|
| 217 | *line 122
|
---|
| 218 | move _stccol,R6
|
---|
| 219 | move.l _cfetp,R8
|
---|
| 220 | move 2(R8),R0
|
---|
| 221 | sub R0,R6
|
---|
| 222 | *line 123
|
---|
| 223 | move R7,R0
|
---|
| 224 | add #48,R0
|
---|
| 225 | move R6,R9
|
---|
| 226 | add.l #_ebuf,R9
|
---|
| 227 | move.b R0,(R9)
|
---|
| 228 | *line 124
|
---|
| 229 | clr.b 2+_ebuf
|
---|
| 230 | *line 126
|
---|
| 231 | move R7,R0
|
---|
| 232 | add #48,R0
|
---|
| 233 | move.b R0,_dspbuf
|
---|
| 234 | *line 127
|
---|
| 235 | clr.b 1+_dspbuf
|
---|
| 236 | *line 129
|
---|
| 237 | *line 130
|
---|
| 238 | clr R0
|
---|
| 239 | move 10+_v_regs,R0
|
---|
| 240 | and #384,R0
|
---|
| 241 | beq L13
|
---|
| 242 | *line 130
|
---|
| 243 | clr (sp)
|
---|
| 244 | jsr _vbank
|
---|
| 245 | *line 131
|
---|
| 246 | *line 132
|
---|
| 247 | *line 133
|
---|
| 248 | L13:
|
---|
| 249 | *line 134
|
---|
| 250 | *line 135
|
---|
| 251 | move #14,(sp)
|
---|
| 252 | move.l #_dspbuf,-(sp)
|
---|
| 253 | move _stccol,-(sp)
|
---|
| 254 | move 8(R14),R0
|
---|
| 255 | asl #4,R0
|
---|
| 256 | ext.l R0
|
---|
| 257 | move.l R0,R8
|
---|
| 258 | move.l #_idbox,R9
|
---|
| 259 | move 12(R8,R9.l),-(sp)
|
---|
| 260 | move 8(R14),R0
|
---|
| 261 | asl #4,R0
|
---|
| 262 | ext.l R0
|
---|
| 263 | move.l R0,R8
|
---|
| 264 | move.l #_idbox,R9
|
---|
| 265 | move 10(R8,R9.l),-(sp)
|
---|
| 266 | move #10,-(sp)
|
---|
| 267 | move #64,-(sp)
|
---|
| 268 | move.l _instob,-(sp)
|
---|
| 269 | jsr _vcputsv
|
---|
| 270 | adda.l #18,sp
|
---|
| 271 | *line 137
|
---|
| 272 | jsr _advicur
|
---|
| 273 | *line 139
|
---|
| 274 | clr R0
|
---|
| 275 | bra L12
|
---|
| 276 | L12:tst.l (sp)+
|
---|
| 277 | movem.l (sp)+,R5-R7
|
---|
| 278 | unlk R14
|
---|
| 279 | rts
|
---|
| 280 | .data
|
---|
| 281 | L2:.dc.b $25,$30,$32,$64,$0
|
---|
| 282 | L10:.dc.b $25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.