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:
4.8 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 _ac_code
|
---|
| 43 | .globl _scname
|
---|
| 44 | .globl _se_chg
|
---|
| 45 | .globl _curscor
|
---|
| 46 | .globl _cursect
|
---|
| 47 | .globl _se1_cnt
|
---|
| 48 | .globl _se2_cnt
|
---|
| 49 | .globl _se3_cnt
|
---|
| 50 | .globl _spool
|
---|
| 51 | .globl _pspool
|
---|
| 52 | .globl _spcount
|
---|
| 53 | .globl _frags
|
---|
| 54 | .globl _t_bak
|
---|
| 55 | .globl _t_cur
|
---|
| 56 | .globl _t_ctr
|
---|
| 57 | .globl _t_fwd
|
---|
| 58 | .globl _size1
|
---|
| 59 | .globl _size2
|
---|
| 60 | .globl _size3
|
---|
| 61 | .globl _scores
|
---|
| 62 | .globl _scp
|
---|
| 63 | .globl _seclist
|
---|
| 64 | .globl _hplist
|
---|
| 65 | .globl _p_bak
|
---|
| 66 | .globl _p_cur
|
---|
| 67 | .globl _p_ctr
|
---|
| 68 | .globl _p_fwd
|
---|
| 69 | .globl _obj8
|
---|
| 70 | .globl _ctrsw
|
---|
| 71 | .globl _recsw
|
---|
| 72 | .globl _stccol
|
---|
| 73 | .globl _grpmode
|
---|
| 74 | .globl _grpstat
|
---|
| 75 | .globl _ins2grp
|
---|
| 76 | .globl _gdstbc
|
---|
| 77 | .globl _et_inst
|
---|
| 78 | .text
|
---|
| 79 | _et_inst:
|
---|
| 80 | ~~et_inst:
|
---|
| 81 | ~n=8
|
---|
| 82 | link R14,#-4
|
---|
| 83 | *line 43
|
---|
| 84 | move 8(R14),R8
|
---|
| 85 | add.l R8,R8
|
---|
| 86 | move.l #_ins2grp,R9
|
---|
| 87 | move 0(R8,R9.l),(sp)
|
---|
| 88 | and #255,(sp)
|
---|
| 89 | move.l #L2,-(sp)
|
---|
| 90 | move.l #_ebuf,-(sp)
|
---|
| 91 | jsr _sprintf
|
---|
| 92 | addq.l #8,sp
|
---|
| 93 | *line 44
|
---|
| 94 | move #1,_ebflag
|
---|
| 95 | *line 46
|
---|
| 96 | clr R0
|
---|
| 97 | bra L1
|
---|
| 98 | L1:unlk R14
|
---|
| 99 | rts
|
---|
| 100 | .globl _ef_inst
|
---|
| 101 | .text
|
---|
| 102 | _ef_inst:
|
---|
| 103 | ~~ef_inst:
|
---|
| 104 | ~n=8
|
---|
| 105 | link R14,#0
|
---|
| 106 | movem.l R6-R7/R13-R13,-(sp)
|
---|
| 107 | ~ival=R7
|
---|
| 108 | ~ep=R13
|
---|
| 109 | *line 65
|
---|
| 110 | clr.b 2+_ebuf
|
---|
| 111 | *line 66
|
---|
| 112 | move.b _ebuf,R7
|
---|
| 113 | ext.w R7
|
---|
| 114 | add #-48,R7
|
---|
| 115 | muls #10,R7
|
---|
| 116 | move.b 1+_ebuf,R0
|
---|
| 117 | ext.w R0
|
---|
| 118 | add R0,R7
|
---|
| 119 | add #-48,R7
|
---|
| 120 | *line 67
|
---|
| 121 | clr _ebflag
|
---|
| 122 | *line 69
|
---|
| 123 | *line 70
|
---|
| 124 | cmp #41,R7
|
---|
| 125 | blt L4
|
---|
| 126 | *line 70
|
---|
| 127 | move #-1,R0
|
---|
| 128 | bra L3
|
---|
| 129 | *line 71
|
---|
| 130 | L4:
|
---|
| 131 | *line 72
|
---|
| 132 | move R7,R0
|
---|
| 133 | move 8(R14),R9
|
---|
| 134 | add.l R9,R9
|
---|
| 135 | add.l #_ins2grp,R9
|
---|
| 136 | move (R9),R1
|
---|
| 137 | and #-256,R1
|
---|
| 138 | or R1,R0
|
---|
| 139 | move 8(R14),R9
|
---|
| 140 | add.l R9,R9
|
---|
| 141 | add.l #_ins2grp,R9
|
---|
| 142 | move R0,(R9)
|
---|
| 143 | *line 73
|
---|
| 144 | move 8(R14),(sp)
|
---|
| 145 | jsr _setv2gi
|
---|
| 146 | *line 74
|
---|
| 147 | jsr _setinst
|
---|
| 148 | *line 76
|
---|
| 149 | *line 76
|
---|
| 150 | tst _recsw
|
---|
| 151 | beq L5
|
---|
| 152 | move 8(R14),R8
|
---|
| 153 | add.l R8,R8
|
---|
| 154 | move.l #_grpstat,R9
|
---|
| 155 | tst 0(R8,R9.l)
|
---|
| 156 | beq L5
|
---|
| 157 | move 8(R14),R8
|
---|
| 158 | add.l R8,R8
|
---|
| 159 | add.l #_grpmode,R8
|
---|
| 160 | cmp #2,(R8)
|
---|
| 161 | bne L5
|
---|
| 162 | *line 77
|
---|
| 163 | *line 78
|
---|
| 164 | *line 78
|
---|
| 165 | move #-1,(sp)
|
---|
| 166 | move 8(R14),-(sp)
|
---|
| 167 | move #4,-(sp)
|
---|
| 168 | move.l _t_cur,-(sp)
|
---|
| 169 | move.l _p_cur,-(sp)
|
---|
| 170 | jsr _findev
|
---|
| 171 | adda.l #12,sp
|
---|
| 172 | move.l R0,R13
|
---|
| 173 | move.l R13,R0
|
---|
| 174 | beq L6
|
---|
| 175 | *line 79
|
---|
| 176 | *line 80
|
---|
| 177 | move.b R7,7(R13)
|
---|
| 178 | *line 81
|
---|
| 179 | bra L7
|
---|
| 180 | L6:
|
---|
| 181 | *line 82
|
---|
| 182 | *line 82
|
---|
| 183 | move #6,(sp)
|
---|
| 184 | jsr _e_alc
|
---|
| 185 | move.l R0,R13
|
---|
| 186 | move.l R13,R0
|
---|
| 187 | beq L8
|
---|
| 188 | *line 83
|
---|
| 189 | *line 84
|
---|
| 190 | move.b #4,5(R13)
|
---|
| 191 | *line 85
|
---|
| 192 | move 8(R14),R0
|
---|
| 193 | move.b R0,6(R13)
|
---|
| 194 | *line 86
|
---|
| 195 | move.b R7,7(R13)
|
---|
| 196 | *line 87
|
---|
| 197 | move.l _t_cur,(R13)
|
---|
| 198 | *line 88
|
---|
| 199 | move.l _t_cur,(sp)
|
---|
| 200 | clr -(sp)
|
---|
| 201 | move.l _p_cur,-(sp)
|
---|
| 202 | jsr _ep_adj
|
---|
| 203 | addq.l #6,sp
|
---|
| 204 | move.l R0,(sp)
|
---|
| 205 | move.l R13,-(sp)
|
---|
| 206 | jsr _e_ins
|
---|
| 207 | addq.l #4,sp
|
---|
| 208 | move.l R0,R8
|
---|
| 209 | move.l 12(R8),_p_cur
|
---|
| 210 | *line 89
|
---|
| 211 | clr (sp)
|
---|
| 212 | move.l R13,-(sp)
|
---|
| 213 | jsr _eh_ins
|
---|
| 214 | addq.l #4,sp
|
---|
| 215 | *line 90
|
---|
| 216 | move #1,_ctrsw
|
---|
| 217 | *line 91
|
---|
| 218 | move #1,(sp)
|
---|
| 219 | move.l #_gdstbc,-(sp)
|
---|
| 220 | clr -(sp)
|
---|
| 221 | move.l R13,-(sp)
|
---|
| 222 | jsr _se_disp
|
---|
| 223 | adda.l #10,sp
|
---|
| 224 | *line 92
|
---|
| 225 | jsr _scupd
|
---|
| 226 | *line 93
|
---|
| 227 | L8:L7:
|
---|
| 228 | *line 94
|
---|
| 229 | *line 95
|
---|
| 230 | L5:
|
---|
| 231 | *line 96
|
---|
| 232 | clr R0
|
---|
| 233 | bra L3
|
---|
| 234 | L3:tst.l (sp)+
|
---|
| 235 | movem.l (sp)+,R7-R7/R13-R13
|
---|
| 236 | unlk R14
|
---|
| 237 | rts
|
---|
| 238 | .globl _rd_inst
|
---|
| 239 | .text
|
---|
| 240 | _rd_inst:
|
---|
| 241 | ~~rd_inst:
|
---|
| 242 | ~n=8
|
---|
| 243 | link R14,#-8
|
---|
| 244 | ~buf=-4
|
---|
| 245 | *line 114
|
---|
| 246 | move 8(R14),R8
|
---|
| 247 | add.l R8,R8
|
---|
| 248 | move.l #_ins2grp,R9
|
---|
| 249 | move 0(R8,R9.l),(sp)
|
---|
| 250 | and #255,(sp)
|
---|
| 251 | move.l #L10,-(sp)
|
---|
| 252 | move.l R14,-(sp)
|
---|
| 253 | sub.l #4,(sp)
|
---|
| 254 | jsr _sprintf
|
---|
| 255 | addq.l #8,sp
|
---|
| 256 | *line 116
|
---|
| 257 | *line 117
|
---|
| 258 | clr R0
|
---|
| 259 | move 10+_v_regs,R0
|
---|
| 260 | and #384,R0
|
---|
| 261 | beq L11
|
---|
| 262 | *line 117
|
---|
| 263 | clr (sp)
|
---|
| 264 | jsr _vbank
|
---|
| 265 | *line 118
|
---|
| 266 | L11:
|
---|
| 267 | *line 119
|
---|
| 268 | move #18,(sp)
|
---|
| 269 | move.l R14,-(sp)
|
---|
| 270 | sub.l #4,(sp)
|
---|
| 271 | move 8(R14),R0
|
---|
| 272 | muls #5,R0
|
---|
| 273 | move R0,-(sp)
|
---|
| 274 | add #7,(sp)
|
---|
| 275 | move #2,-(sp)
|
---|
| 276 | move.l _obj8,-(sp)
|
---|
| 277 | jsr _vputs
|
---|
| 278 | adda.l #12,sp
|
---|
| 279 | *line 121
|
---|
| 280 | clr R0
|
---|
| 281 | bra L9
|
---|
| 282 | L9:unlk R14
|
---|
| 283 | rts
|
---|
| 284 | .globl _ds_inst
|
---|
| 285 | .text
|
---|
| 286 | _ds_inst:
|
---|
| 287 | ~~ds_inst:
|
---|
| 288 | link R14,#0
|
---|
| 289 | movem.l R6-R7,-(sp)
|
---|
| 290 | ~i=R7
|
---|
| 291 | *line 134
|
---|
| 292 | clr R7
|
---|
| 293 | bra L15
|
---|
| 294 | L16:
|
---|
| 295 | *line 135
|
---|
| 296 | move R7,(sp)
|
---|
| 297 | jsr _rd_inst
|
---|
| 298 | L14:
|
---|
| 299 | *line 134
|
---|
| 300 | add #1,R7
|
---|
| 301 | L15:
|
---|
| 302 | *line 134
|
---|
| 303 | cmp #12,R7
|
---|
| 304 | blt L16
|
---|
| 305 | L13:L12:tst.l (sp)+
|
---|
| 306 | movem.l (sp)+,R7-R7
|
---|
| 307 | unlk R14
|
---|
| 308 | rts
|
---|
| 309 | .globl _nd_inst
|
---|
| 310 | .text
|
---|
| 311 | _nd_inst:
|
---|
| 312 | ~~nd_inst:
|
---|
| 313 | ~n=R7
|
---|
| 314 | ~k=R6
|
---|
| 315 | link R14,#0
|
---|
| 316 | movem.l R4-R7,-(sp)
|
---|
| 317 | ~ec=R5
|
---|
| 318 | *line 153
|
---|
| 319 | move 8(R14),R7
|
---|
| 320 | *line 153
|
---|
| 321 | move 10(R14),R6
|
---|
| 322 | *line 153
|
---|
| 323 | move _stccol,R5
|
---|
| 324 | move.l _cfetp,R8
|
---|
| 325 | move 2(R8),R0
|
---|
| 326 | sub R0,R5
|
---|
| 327 | *line 154
|
---|
| 328 | move R6,R0
|
---|
| 329 | add #48,R0
|
---|
| 330 | move R5,R9
|
---|
| 331 | add.l #_ebuf,R9
|
---|
| 332 | move.b R0,(R9)
|
---|
| 333 | *line 156
|
---|
| 334 | *line 157
|
---|
| 335 | clr R0
|
---|
| 336 | move 10+_v_regs,R0
|
---|
| 337 | and #384,R0
|
---|
| 338 | beq L18
|
---|
| 339 | *line 157
|
---|
| 340 | clr (sp)
|
---|
| 341 | jsr _vbank
|
---|
| 342 | *line 158
|
---|
| 343 | L18:
|
---|
| 344 | *line 159
|
---|
| 345 | move #98,(sp)
|
---|
| 346 | move R6,-(sp)
|
---|
| 347 | add #48,(sp)
|
---|
| 348 | move _stccol,-(sp)
|
---|
| 349 | move #2,-(sp)
|
---|
| 350 | move.l _obj8,-(sp)
|
---|
| 351 | jsr _vputc
|
---|
| 352 | adda.l #10,sp
|
---|
| 353 | *line 160
|
---|
| 354 | jsr _advscur
|
---|
| 355 | *line 162
|
---|
| 356 | clr R0
|
---|
| 357 | bra L17
|
---|
| 358 | L17:tst.l (sp)+
|
---|
| 359 | movem.l (sp)+,R5-R7
|
---|
| 360 | unlk R14
|
---|
| 361 | rts
|
---|
| 362 | .data
|
---|
| 363 | L2:.dc.b $25,$30,$32,$2E,$32,$64,$0
|
---|
| 364 | L10:.dc.b $25,$30,$32,$2E,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.