Last change
on this file since b28c09e was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
4.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 _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 _grpdyn
|
---|
| 74 | .globl _grpmode
|
---|
| 75 | .globl _grpstat
|
---|
| 76 | .globl _gdstbc
|
---|
| 77 | .globl _et_dyn
|
---|
| 78 | .text
|
---|
| 79 | _et_dyn:
|
---|
| 80 | ~~et_dyn:
|
---|
| 81 | ~n=8
|
---|
| 82 | link R14,#-4
|
---|
| 83 | *line 39
|
---|
| 84 | move 8(R14),R8
|
---|
| 85 | add.l R8,R8
|
---|
| 86 | move.l #_grpdyn,R9
|
---|
| 87 | move 0(R8,R9.l),R0
|
---|
| 88 | add #48,R0
|
---|
| 89 | move.b R0,_ebuf
|
---|
| 90 | *line 40
|
---|
| 91 | clr.b 1+_ebuf
|
---|
| 92 | *line 41
|
---|
| 93 | move #1,_ebflag
|
---|
| 94 | *line 42
|
---|
| 95 | clr R0
|
---|
| 96 | bra L1
|
---|
| 97 | L1:unlk R14
|
---|
| 98 | rts
|
---|
| 99 | .globl _ef_dyn
|
---|
| 100 | .text
|
---|
| 101 | _ef_dyn:
|
---|
| 102 | ~~ef_dyn:
|
---|
| 103 | ~n=8
|
---|
| 104 | link R14,#0
|
---|
| 105 | movem.l R6-R7/R13-R13,-(sp)
|
---|
| 106 | ~ival=R7
|
---|
| 107 | ~ep=R13
|
---|
| 108 | *line 61
|
---|
| 109 | clr.b 1+_ebuf
|
---|
| 110 | *line 62
|
---|
| 111 | move.b _ebuf,R7
|
---|
| 112 | ext.w R7
|
---|
| 113 | add #-48,R7
|
---|
| 114 | *line 63
|
---|
| 115 | clr _ebflag
|
---|
| 116 | *line 65
|
---|
| 117 | move R7,(sp)
|
---|
| 118 | move 8(R14),-(sp)
|
---|
| 119 | jsr _setdyn
|
---|
| 120 | addq.l #2,sp
|
---|
| 121 | *line 67
|
---|
| 122 | *line 67
|
---|
| 123 | tst _recsw
|
---|
| 124 | beq L3
|
---|
| 125 | move 8(R14),R8
|
---|
| 126 | add.l R8,R8
|
---|
| 127 | move.l #_grpmode,R9
|
---|
| 128 | tst 0(R8,R9.l)
|
---|
| 129 | beq L3
|
---|
| 130 | move 8(R14),R8
|
---|
| 131 | add.l R8,R8
|
---|
| 132 | add.l #_grpmode,R8
|
---|
| 133 | cmp #2,(R8)
|
---|
| 134 | bne L3
|
---|
| 135 | *line 68
|
---|
| 136 | *line 69
|
---|
| 137 | *line 69
|
---|
| 138 | move #-1,(sp)
|
---|
| 139 | move 8(R14),-(sp)
|
---|
| 140 | move #13,-(sp)
|
---|
| 141 | move.l _t_cur,-(sp)
|
---|
| 142 | move.l _p_cur,-(sp)
|
---|
| 143 | jsr _findev
|
---|
| 144 | adda.l #12,sp
|
---|
| 145 | move.l R0,R13
|
---|
| 146 | move.l R13,R0
|
---|
| 147 | beq L4
|
---|
| 148 | *line 70
|
---|
| 149 | *line 71
|
---|
| 150 | move.b R7,7(R13)
|
---|
| 151 | *line 72
|
---|
| 152 | bra L5
|
---|
| 153 | L4:
|
---|
| 154 | *line 73
|
---|
| 155 | *line 73
|
---|
| 156 | move #6,(sp)
|
---|
| 157 | jsr _e_alc
|
---|
| 158 | move.l R0,R13
|
---|
| 159 | move.l R13,R0
|
---|
| 160 | beq L6
|
---|
| 161 | *line 74
|
---|
| 162 | *line 75
|
---|
| 163 | move.b #13,5(R13)
|
---|
| 164 | *line 76
|
---|
| 165 | move 8(R14),R0
|
---|
| 166 | move.b R0,6(R13)
|
---|
| 167 | *line 77
|
---|
| 168 | move.b R7,7(R13)
|
---|
| 169 | *line 78
|
---|
| 170 | move.l _t_cur,(R13)
|
---|
| 171 | *line 79
|
---|
| 172 | move.l _t_cur,(sp)
|
---|
| 173 | clr -(sp)
|
---|
| 174 | move.l _p_cur,-(sp)
|
---|
| 175 | jsr _ep_adj
|
---|
| 176 | addq.l #6,sp
|
---|
| 177 | move.l R0,(sp)
|
---|
| 178 | move.l R13,-(sp)
|
---|
| 179 | jsr _e_ins
|
---|
| 180 | addq.l #4,sp
|
---|
| 181 | move.l R0,R8
|
---|
| 182 | move.l 12(R8),_p_cur
|
---|
| 183 | *line 80
|
---|
| 184 | move #3,(sp)
|
---|
| 185 | move.l R13,-(sp)
|
---|
| 186 | jsr _eh_ins
|
---|
| 187 | addq.l #4,sp
|
---|
| 188 | *line 81
|
---|
| 189 | move #1,_ctrsw
|
---|
| 190 | *line 82
|
---|
| 191 | move #1,(sp)
|
---|
| 192 | move.l #_gdstbc,-(sp)
|
---|
| 193 | clr -(sp)
|
---|
| 194 | move.l R13,-(sp)
|
---|
| 195 | jsr _se_disp
|
---|
| 196 | adda.l #10,sp
|
---|
| 197 | *line 83
|
---|
| 198 | jsr _scupd
|
---|
| 199 | *line 84
|
---|
| 200 | L6:L5:
|
---|
| 201 | *line 85
|
---|
| 202 | *line 86
|
---|
| 203 | L3:
|
---|
| 204 | *line 87
|
---|
| 205 | clr R0
|
---|
| 206 | bra L2
|
---|
| 207 | L2:tst.l (sp)+
|
---|
| 208 | movem.l (sp)+,R7-R7/R13-R13
|
---|
| 209 | unlk R14
|
---|
| 210 | rts
|
---|
| 211 | .globl _rd_dyn
|
---|
| 212 | .text
|
---|
| 213 | _rd_dyn:
|
---|
| 214 | ~~rd_dyn:
|
---|
| 215 | ~n=8
|
---|
| 216 | link R14,#-4
|
---|
| 217 | *line 103
|
---|
| 218 | *line 104
|
---|
| 219 | clr R0
|
---|
| 220 | move 10+_v_regs,R0
|
---|
| 221 | and #384,R0
|
---|
| 222 | beq L8
|
---|
| 223 | *line 104
|
---|
| 224 | clr (sp)
|
---|
| 225 | jsr _vbank
|
---|
| 226 | *line 105
|
---|
| 227 | L8:
|
---|
| 228 | *line 106
|
---|
| 229 | move #18,(sp)
|
---|
| 230 | move 8(R14),R8
|
---|
| 231 | add.l R8,R8
|
---|
| 232 | move.l #_grpdyn,R9
|
---|
| 233 | move 0(R8,R9.l),-(sp)
|
---|
| 234 | add #48,(sp)
|
---|
| 235 | move 8(R14),R0
|
---|
| 236 | muls #5,R0
|
---|
| 237 | move R0,-(sp)
|
---|
| 238 | add #6,(sp)
|
---|
| 239 | move #4,-(sp)
|
---|
| 240 | move.l _obj8,-(sp)
|
---|
| 241 | jsr _vputc
|
---|
| 242 | adda.l #10,sp
|
---|
| 243 | *line 108
|
---|
| 244 | clr R0
|
---|
| 245 | bra L7
|
---|
| 246 | L7:unlk R14
|
---|
| 247 | rts
|
---|
| 248 | .globl _ds_dyn
|
---|
| 249 | .text
|
---|
| 250 | _ds_dyn:
|
---|
| 251 | ~~ds_dyn:
|
---|
| 252 | link R14,#0
|
---|
| 253 | movem.l R6-R7,-(sp)
|
---|
| 254 | ~i=R7
|
---|
| 255 | *line 121
|
---|
| 256 | clr R7
|
---|
| 257 | bra L12
|
---|
| 258 | L13:
|
---|
| 259 | *line 122
|
---|
| 260 | move R7,(sp)
|
---|
| 261 | jsr _rd_dyn
|
---|
| 262 | L11:
|
---|
| 263 | *line 121
|
---|
| 264 | add #1,R7
|
---|
| 265 | L12:
|
---|
| 266 | *line 121
|
---|
| 267 | cmp #12,R7
|
---|
| 268 | blt L13
|
---|
| 269 | L10:L9:tst.l (sp)+
|
---|
| 270 | movem.l (sp)+,R7-R7
|
---|
| 271 | unlk R14
|
---|
| 272 | rts
|
---|
| 273 | .globl _nd_dyn
|
---|
| 274 | .text
|
---|
| 275 | _nd_dyn:
|
---|
| 276 | ~~nd_dyn:
|
---|
| 277 | ~n=R7
|
---|
| 278 | ~k=R6
|
---|
| 279 | link R14,#0
|
---|
| 280 | movem.l R5-R7,-(sp)
|
---|
| 281 | *line 138
|
---|
| 282 | move 8(R14),R7
|
---|
| 283 | *line 138
|
---|
| 284 | move 10(R14),R6
|
---|
| 285 | *line 138
|
---|
| 286 | move R6,R0
|
---|
| 287 | add #48,R0
|
---|
| 288 | move.b R0,_ebuf
|
---|
| 289 | *line 140
|
---|
| 290 | *line 141
|
---|
| 291 | clr R0
|
---|
| 292 | move 10+_v_regs,R0
|
---|
| 293 | and #384,R0
|
---|
| 294 | beq L15
|
---|
| 295 | *line 141
|
---|
| 296 | clr (sp)
|
---|
| 297 | jsr _vbank
|
---|
| 298 | *line 142
|
---|
| 299 | L15:
|
---|
| 300 | *line 143
|
---|
| 301 | move #98,(sp)
|
---|
| 302 | move R6,-(sp)
|
---|
| 303 | add #48,(sp)
|
---|
| 304 | move _stccol,-(sp)
|
---|
| 305 | move #4,-(sp)
|
---|
| 306 | move.l _obj8,-(sp)
|
---|
| 307 | jsr _vputc
|
---|
| 308 | adda.l #10,sp
|
---|
| 309 | *line 144
|
---|
| 310 | jsr _advscur
|
---|
| 311 | *line 146
|
---|
| 312 | clr R0
|
---|
| 313 | bra L14
|
---|
| 314 | L14:tst.l (sp)+
|
---|
| 315 | movem.l (sp)+,R6-R7
|
---|
| 316 | unlk R14
|
---|
| 317 | rts
|
---|
| 318 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.