Last change
on this file since d21fc6f was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
4.1 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 _stmptr
|
---|
| 38 | .globl _defptr
|
---|
| 39 | .globl _patches
|
---|
| 40 | .globl _defents
|
---|
| 41 | .globl _seqtab
|
---|
| 42 | .globl _seqflag
|
---|
| 43 | .globl _seqline
|
---|
| 44 | .globl _seqstim
|
---|
| 45 | .globl _seqtime
|
---|
| 46 | .globl _sregval
|
---|
| 47 | .globl _trstate
|
---|
| 48 | .globl _ctcsw
|
---|
| 49 | .comm _ctcsw,2
|
---|
| 50 | .globl _CurLine
|
---|
| 51 | .globl _cxval
|
---|
| 52 | .globl _cyval
|
---|
| 53 | .globl _stcrow
|
---|
| 54 | .globl _stccol
|
---|
| 55 | .globl _vtcrow
|
---|
| 56 | .globl _vtccol
|
---|
| 57 | .globl _obj9
|
---|
| 58 | .globl _obj11
|
---|
| 59 | .globl _mtcoldc
|
---|
| 60 | .comm _mtcoldc,2
|
---|
| 61 | .globl _mtcoldr
|
---|
| 62 | .comm _mtcoldr,2
|
---|
| 63 | .globl _ctcpos
|
---|
| 64 | .text
|
---|
| 65 | _ctcpos:
|
---|
| 66 | ~~ctcpos:
|
---|
| 67 | ~row=R7
|
---|
| 68 | ~col=R6
|
---|
| 69 | link R14,#0
|
---|
| 70 | movem.l R4-R7,-(sp)
|
---|
| 71 | ~nrow=R5
|
---|
| 72 | *line 44
|
---|
| 73 | move 8(R14),R7
|
---|
| 74 | *line 44
|
---|
| 75 | move 10(R14),R6
|
---|
| 76 | *line 44
|
---|
| 77 | *line 44
|
---|
| 78 | tst _ctcsw
|
---|
| 79 | beq L2
|
---|
| 80 | *line 45
|
---|
| 81 | *line 46
|
---|
| 82 | *line 47
|
---|
| 83 | clr R0
|
---|
| 84 | move 10+_v_regs,R0
|
---|
| 85 | and #384,R0
|
---|
| 86 | beq L3
|
---|
| 87 | *line 47
|
---|
| 88 | clr (sp)
|
---|
| 89 | jsr _vbank
|
---|
| 90 | *line 48
|
---|
| 91 | L3:
|
---|
| 92 | *line 49
|
---|
| 93 | move _CurLine,R5
|
---|
| 94 | add #7,R5
|
---|
| 95 | *line 50
|
---|
| 96 | *line 51
|
---|
| 97 | *line 52
|
---|
| 98 | cmp #9,_stcrow
|
---|
| 99 | bne L4
|
---|
| 100 | *line 52
|
---|
| 101 | move #48,(sp)
|
---|
| 102 | move #256,-(sp)
|
---|
| 103 | move _stccol,-(sp)
|
---|
| 104 | move R5,-(sp)
|
---|
| 105 | move.l _obj9,-(sp)
|
---|
| 106 | jsr _vclrav
|
---|
| 107 | adda.l #10,sp
|
---|
| 108 | *line 53
|
---|
| 109 | L4:
|
---|
| 110 | *line 54
|
---|
| 111 | *line 55
|
---|
| 112 | cmp #9,R7
|
---|
| 113 | bne L5
|
---|
| 114 | *line 55
|
---|
| 115 | move #48,(sp)
|
---|
| 116 | move #256,-(sp)
|
---|
| 117 | move R6,-(sp)
|
---|
| 118 | move R5,-(sp)
|
---|
| 119 | move.l _obj9,-(sp)
|
---|
| 120 | jsr _vsetav
|
---|
| 121 | adda.l #10,sp
|
---|
| 122 | L5:
|
---|
| 123 | *line 56
|
---|
| 124 | *line 57
|
---|
| 125 | L2:
|
---|
| 126 | *line 58
|
---|
| 127 | move R7,_stcrow
|
---|
| 128 | *line 59
|
---|
| 129 | move R6,_stccol
|
---|
| 130 | L1:tst.l (sp)+
|
---|
| 131 | movem.l (sp)+,R5-R7
|
---|
| 132 | unlk R14
|
---|
| 133 | rts
|
---|
| 134 | .globl _ctcoff
|
---|
| 135 | .text
|
---|
| 136 | _ctcoff:
|
---|
| 137 | ~~ctcoff:
|
---|
| 138 | link R14,#-4
|
---|
| 139 | *line 73
|
---|
| 140 | *line 74
|
---|
| 141 | clr R0
|
---|
| 142 | move 10+_v_regs,R0
|
---|
| 143 | and #384,R0
|
---|
| 144 | beq L7
|
---|
| 145 | *line 74
|
---|
| 146 | clr (sp)
|
---|
| 147 | jsr _vbank
|
---|
| 148 | *line 75
|
---|
| 149 | L7:
|
---|
| 150 | *line 76
|
---|
| 151 | *line 77
|
---|
| 152 | cmp #9,_stcrow
|
---|
| 153 | bne L8
|
---|
| 154 | *line 77
|
---|
| 155 | move #48,(sp)
|
---|
| 156 | move #256,-(sp)
|
---|
| 157 | move _stccol,-(sp)
|
---|
| 158 | move _CurLine,-(sp)
|
---|
| 159 | add #7,(sp)
|
---|
| 160 | move.l _obj9,-(sp)
|
---|
| 161 | jsr _vclrav
|
---|
| 162 | adda.l #10,sp
|
---|
| 163 | *line 78
|
---|
| 164 | L8:
|
---|
| 165 | *line 79
|
---|
| 166 | clr _ctcsw
|
---|
| 167 | L6:unlk R14
|
---|
| 168 | rts
|
---|
| 169 | .globl _ctcon
|
---|
| 170 | .text
|
---|
| 171 | _ctcon:
|
---|
| 172 | ~~ctcon:
|
---|
| 173 | link R14,#-4
|
---|
| 174 | *line 90
|
---|
| 175 | *line 91
|
---|
| 176 | clr R0
|
---|
| 177 | move 10+_v_regs,R0
|
---|
| 178 | and #384,R0
|
---|
| 179 | beq L10
|
---|
| 180 | *line 91
|
---|
| 181 | clr (sp)
|
---|
| 182 | jsr _vbank
|
---|
| 183 | *line 92
|
---|
| 184 | L10:
|
---|
| 185 | *line 93
|
---|
| 186 | *line 93
|
---|
| 187 | cmp #9,_stcrow
|
---|
| 188 | bne L11
|
---|
| 189 | *line 94
|
---|
| 190 | *line 95
|
---|
| 191 | move #1,_ctcsw
|
---|
| 192 | *line 96
|
---|
| 193 | move #48,(sp)
|
---|
| 194 | move #256,-(sp)
|
---|
| 195 | move _stccol,-(sp)
|
---|
| 196 | move _CurLine,-(sp)
|
---|
| 197 | add #7,(sp)
|
---|
| 198 | move.l _obj9,-(sp)
|
---|
| 199 | jsr _vsetav
|
---|
| 200 | adda.l #10,sp
|
---|
| 201 | *line 97
|
---|
| 202 | L11:L9:unlk R14
|
---|
| 203 | rts
|
---|
| 204 | .globl _mtcpos
|
---|
| 205 | .text
|
---|
| 206 | _mtcpos:
|
---|
| 207 | ~~mtcpos:
|
---|
| 208 | ~row=R7
|
---|
| 209 | ~col=R6
|
---|
| 210 | link R14,#0
|
---|
| 211 | movem.l R5-R7,-(sp)
|
---|
| 212 | *line 112
|
---|
| 213 | move 8(R14),R7
|
---|
| 214 | *line 112
|
---|
| 215 | move 10(R14),R6
|
---|
| 216 | *line 112
|
---|
| 217 | *line 113
|
---|
| 218 | clr R0
|
---|
| 219 | move 10+_v_regs,R0
|
---|
| 220 | and #384,R0
|
---|
| 221 | beq L13
|
---|
| 222 | *line 113
|
---|
| 223 | clr (sp)
|
---|
| 224 | jsr _vbank
|
---|
| 225 | *line 114
|
---|
| 226 | L13:
|
---|
| 227 | *line 115
|
---|
| 228 | *line 115
|
---|
| 229 | cmp #19,_mtcoldr
|
---|
| 230 | blt L14
|
---|
| 231 | cmp #23,_mtcoldr
|
---|
| 232 | bgt L14
|
---|
| 233 | *line 116
|
---|
| 234 | *line 117
|
---|
| 235 | move #64,(sp)
|
---|
| 236 | move #256,-(sp)
|
---|
| 237 | move _mtcoldc,-(sp)
|
---|
| 238 | move _mtcoldr,-(sp)
|
---|
| 239 | add #-18,(sp)
|
---|
| 240 | move.l _obj11,-(sp)
|
---|
| 241 | jsr _vclrav
|
---|
| 242 | adda.l #10,sp
|
---|
| 243 | *line 118
|
---|
| 244 | *line 119
|
---|
| 245 | clr _mtcoldr
|
---|
| 246 | *line 120
|
---|
| 247 | clr _mtcoldc
|
---|
| 248 | *line 121
|
---|
| 249 | *line 122
|
---|
| 250 | L14:
|
---|
| 251 | *line 123
|
---|
| 252 | *line 123
|
---|
| 253 | cmp #19,R7
|
---|
| 254 | blt L15
|
---|
| 255 | cmp #23,R7
|
---|
| 256 | bgt L15
|
---|
| 257 | *line 124
|
---|
| 258 | *line 125
|
---|
| 259 | move #64,(sp)
|
---|
| 260 | move #256,-(sp)
|
---|
| 261 | move R6,-(sp)
|
---|
| 262 | move R7,-(sp)
|
---|
| 263 | add #-18,(sp)
|
---|
| 264 | move.l _obj11,-(sp)
|
---|
| 265 | jsr _vsetav
|
---|
| 266 | adda.l #10,sp
|
---|
| 267 | *line 126
|
---|
| 268 | *line 127
|
---|
| 269 | move R7,_mtcoldr
|
---|
| 270 | *line 128
|
---|
| 271 | move R6,_mtcoldc
|
---|
| 272 | *line 129
|
---|
| 273 | *line 130
|
---|
| 274 | L15:
|
---|
| 275 | *line 131
|
---|
| 276 | move R7,_vtcrow
|
---|
| 277 | *line 132
|
---|
| 278 | move R6,_vtccol
|
---|
| 279 | L12:tst.l (sp)+
|
---|
| 280 | movem.l (sp)+,R6-R7
|
---|
| 281 | unlk R14
|
---|
| 282 | rts
|
---|
| 283 | .globl _mtcoff
|
---|
| 284 | .text
|
---|
| 285 | _mtcoff:
|
---|
| 286 | ~~mtcoff:
|
---|
| 287 | link R14,#-4
|
---|
| 288 | *line 143
|
---|
| 289 | *line 144
|
---|
| 290 | clr R0
|
---|
| 291 | move 10+_v_regs,R0
|
---|
| 292 | and #384,R0
|
---|
| 293 | beq L17
|
---|
| 294 | *line 144
|
---|
| 295 | clr (sp)
|
---|
| 296 | jsr _vbank
|
---|
| 297 | *line 145
|
---|
| 298 | L17:
|
---|
| 299 | *line 146
|
---|
| 300 | *line 147
|
---|
| 301 | cmp #19,_mtcoldr
|
---|
| 302 | blt L18
|
---|
| 303 | cmp #23,_mtcoldr
|
---|
| 304 | bgt L18
|
---|
| 305 | *line 147
|
---|
| 306 | move #64,(sp)
|
---|
| 307 | move #256,-(sp)
|
---|
| 308 | move _mtcoldc,-(sp)
|
---|
| 309 | move _mtcoldr,-(sp)
|
---|
| 310 | add #-18,(sp)
|
---|
| 311 | move.l _obj11,-(sp)
|
---|
| 312 | jsr _vclrav
|
---|
| 313 | adda.l #10,sp
|
---|
| 314 | L18:L16:unlk R14
|
---|
| 315 | rts
|
---|
| 316 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.