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 _tunob
|
---|
| 7 | .globl _stcrow
|
---|
| 8 | .globl _stccol
|
---|
| 9 | .globl _tunval
|
---|
| 10 | .globl _tunmod
|
---|
| 11 | .globl _tdbox
|
---|
| 12 | .globl _dspbuf
|
---|
| 13 | .globl _modtun
|
---|
| 14 | .text
|
---|
| 15 | _modtun:
|
---|
| 16 | ~~modtun:
|
---|
| 17 | link R14,#-4
|
---|
| 18 | *line 37
|
---|
| 19 | *line 37
|
---|
| 20 | tst _tunmod
|
---|
| 21 | bne L2
|
---|
| 22 | *line 38
|
---|
| 23 | *line 39
|
---|
| 24 | move #1,_tunmod
|
---|
| 25 | *line 40
|
---|
| 26 | move #6,(sp)
|
---|
| 27 | jsr _tdswin
|
---|
| 28 | *line 41
|
---|
| 29 | L2:L1:unlk R14
|
---|
| 30 | rts
|
---|
| 31 | .globl _et_tval
|
---|
| 32 | .text
|
---|
| 33 | _et_tval:
|
---|
| 34 | ~~et_tval:
|
---|
| 35 | ~n=8
|
---|
| 36 | link R14,#0
|
---|
| 37 | movem.l R5-R7,-(sp)
|
---|
| 38 | ~tv=R7
|
---|
| 39 | ~ts=R6
|
---|
| 40 | *line 60
|
---|
| 41 | tst _tunval
|
---|
| 42 | bge L10000
|
---|
| 43 | move _tunval,R0
|
---|
| 44 | neg R0
|
---|
| 45 | bra L10002
|
---|
| 46 | L10000:move _tunval,R0
|
---|
| 47 | L10002:move R0,R7
|
---|
| 48 | asr R7
|
---|
| 49 | *line 61
|
---|
| 50 | tst _tunval
|
---|
| 51 | bge L10003
|
---|
| 52 | move #45,R0
|
---|
| 53 | bra L10005
|
---|
| 54 | L10003:move #43,R0
|
---|
| 55 | L10005:move.b R0,R6
|
---|
| 56 | *line 63
|
---|
| 57 | move R7,(sp)
|
---|
| 58 | move.b R6,R0
|
---|
| 59 | ext.w R0
|
---|
| 60 | move R0,-(sp)
|
---|
| 61 | move.l #L4,-(sp)
|
---|
| 62 | move.l #_ebuf,-(sp)
|
---|
| 63 | jsr _sprintf
|
---|
| 64 | adda.l #10,sp
|
---|
| 65 | *line 64
|
---|
| 66 | move #1,_ebflag
|
---|
| 67 | *line 66
|
---|
| 68 | clr R0
|
---|
| 69 | bra L3
|
---|
| 70 | L3:tst.l (sp)+
|
---|
| 71 | movem.l (sp)+,R6-R7
|
---|
| 72 | unlk R14
|
---|
| 73 | rts
|
---|
| 74 | .globl _ef_tval
|
---|
| 75 | .text
|
---|
| 76 | _ef_tval:
|
---|
| 77 | ~~ef_tval:
|
---|
| 78 | ~n=8
|
---|
| 79 | link R14,#0
|
---|
| 80 | movem.l R3-R7/R13-R13,-(sp)
|
---|
| 81 | ~ov=R13
|
---|
| 82 | ~i=R7
|
---|
| 83 | ~tmpval=R6
|
---|
| 84 | ~tv=R5
|
---|
| 85 | ~ts=R4
|
---|
| 86 | *line 86
|
---|
| 87 | clr.b 5+_ebuf
|
---|
| 88 | *line 87
|
---|
| 89 | clr _ebflag
|
---|
| 90 | *line 89
|
---|
| 91 | clr R6
|
---|
| 92 | *line 91
|
---|
| 93 | move #1,R7
|
---|
| 94 | bra L8
|
---|
| 95 | L9:
|
---|
| 96 | *line 92
|
---|
| 97 | muls #10,R6
|
---|
| 98 | move.l #_ebuf,R8
|
---|
| 99 | move.b 0(R8,R7),R0
|
---|
| 100 | ext.w R0
|
---|
| 101 | add R0,R6
|
---|
| 102 | add #-48,R6
|
---|
| 103 | L7:
|
---|
| 104 | *line 91
|
---|
| 105 | add #1,R7
|
---|
| 106 | L8:
|
---|
| 107 | *line 91
|
---|
| 108 | cmp #5,R7
|
---|
| 109 | blt L9
|
---|
| 110 | L6:
|
---|
| 111 | *line 94
|
---|
| 112 | *line 95
|
---|
| 113 | cmp.b #45,_ebuf
|
---|
| 114 | bne L10
|
---|
| 115 | *line 95
|
---|
| 116 | move R6,R0
|
---|
| 117 | neg R0
|
---|
| 118 | asl #1,R0
|
---|
| 119 | move R0,_tunval
|
---|
| 120 | *line 96
|
---|
| 121 | bra L11
|
---|
| 122 | L10:
|
---|
| 123 | *line 97
|
---|
| 124 | move R6,R0
|
---|
| 125 | asl #1,R0
|
---|
| 126 | move R0,_tunval
|
---|
| 127 | L11:
|
---|
| 128 | *line 99
|
---|
| 129 | tst _tunval
|
---|
| 130 | bge L10006
|
---|
| 131 | move _tunval,R0
|
---|
| 132 | neg R0
|
---|
| 133 | bra L10008
|
---|
| 134 | L10006:move _tunval,R0
|
---|
| 135 | L10008:move R0,R5
|
---|
| 136 | asr R5
|
---|
| 137 | *line 100
|
---|
| 138 | tst _tunval
|
---|
| 139 | bge L10009
|
---|
| 140 | move #45,R0
|
---|
| 141 | bra L10011
|
---|
| 142 | L10009:move #43,R0
|
---|
| 143 | L10011:move.b R0,R4
|
---|
| 144 | *line 101
|
---|
| 145 | move R5,(sp)
|
---|
| 146 | move.b R4,R0
|
---|
| 147 | ext.w R0
|
---|
| 148 | move R0,-(sp)
|
---|
| 149 | move.l #L12,-(sp)
|
---|
| 150 | move.l #_dspbuf,-(sp)
|
---|
| 151 | jsr _sprintf
|
---|
| 152 | adda.l #10,sp
|
---|
| 153 | *line 103
|
---|
| 154 | clr (sp)
|
---|
| 155 | jsr _vbank
|
---|
| 156 | *line 104
|
---|
| 157 | move #14,(sp)
|
---|
| 158 | move.l #_dspbuf,-(sp)
|
---|
| 159 | move #54,-(sp)
|
---|
| 160 | move #18,-(sp)
|
---|
| 161 | move 8(R14),R0
|
---|
| 162 | asl #4,R0
|
---|
| 163 | ext.l R0
|
---|
| 164 | move.l R0,R8
|
---|
| 165 | move.l #_tdbox,R9
|
---|
| 166 | move 10(R8,R9.l),-(sp)
|
---|
| 167 | move 8(R14),R0
|
---|
| 168 | asl #4,R0
|
---|
| 169 | ext.l R0
|
---|
| 170 | move.l R0,R8
|
---|
| 171 | move.l #_tdbox,R9
|
---|
| 172 | move 8(R8,R9.l),-(sp)
|
---|
| 173 | move #64,-(sp)
|
---|
| 174 | move.l _tunob,-(sp)
|
---|
| 175 | jsr _vcputsv
|
---|
| 176 | adda.l #18,sp
|
---|
| 177 | *line 106
|
---|
| 178 | jsr _modtun
|
---|
| 179 | *line 107
|
---|
| 180 | clr R0
|
---|
| 181 | bra L5
|
---|
| 182 | L5:tst.l (sp)+
|
---|
| 183 | movem.l (sp)+,R4-R7/R13-R13
|
---|
| 184 | unlk R14
|
---|
| 185 | rts
|
---|
| 186 | .globl _rd_tval
|
---|
| 187 | .text
|
---|
| 188 | _rd_tval:
|
---|
| 189 | ~~rd_tval:
|
---|
| 190 | ~nn=8
|
---|
| 191 | link R14,#0
|
---|
| 192 | movem.l R4-R7,-(sp)
|
---|
| 193 | ~tv=R7
|
---|
| 194 | ~n=R6
|
---|
| 195 | ~ts=R5
|
---|
| 196 | *line 126
|
---|
| 197 | move 8(R14),R6
|
---|
| 198 | and #255,R6
|
---|
| 199 | *line 128
|
---|
| 200 | tst _tunval
|
---|
| 201 | bge L10012
|
---|
| 202 | move _tunval,R0
|
---|
| 203 | neg R0
|
---|
| 204 | bra L10014
|
---|
| 205 | L10012:move _tunval,R0
|
---|
| 206 | L10014:move R0,R7
|
---|
| 207 | asr R7
|
---|
| 208 | *line 129
|
---|
| 209 | tst _tunval
|
---|
| 210 | bge L10015
|
---|
| 211 | move #45,R0
|
---|
| 212 | bra L10017
|
---|
| 213 | L10015:move #43,R0
|
---|
| 214 | L10017:move.b R0,R5
|
---|
| 215 | *line 131
|
---|
| 216 | move R7,(sp)
|
---|
| 217 | move.b R5,R0
|
---|
| 218 | ext.w R0
|
---|
| 219 | move R0,-(sp)
|
---|
| 220 | move.l #L14,-(sp)
|
---|
| 221 | move.l #_dspbuf,-(sp)
|
---|
| 222 | jsr _sprintf
|
---|
| 223 | adda.l #10,sp
|
---|
| 224 | *line 133
|
---|
| 225 | clr (sp)
|
---|
| 226 | jsr _vbank
|
---|
| 227 | *line 134
|
---|
| 228 | move #14,(sp)
|
---|
| 229 | move.l #_dspbuf,-(sp)
|
---|
| 230 | move #54,-(sp)
|
---|
| 231 | move #18,-(sp)
|
---|
| 232 | move R6,R0
|
---|
| 233 | asl #4,R0
|
---|
| 234 | ext.l R0
|
---|
| 235 | move.l R0,R8
|
---|
| 236 | move.l #_tdbox,R9
|
---|
| 237 | move 10(R8,R9.l),-(sp)
|
---|
| 238 | move R6,R0
|
---|
| 239 | asl #4,R0
|
---|
| 240 | ext.l R0
|
---|
| 241 | move.l R0,R8
|
---|
| 242 | move.l #_tdbox,R9
|
---|
| 243 | move 8(R8,R9.l),-(sp)
|
---|
| 244 | move #64,-(sp)
|
---|
| 245 | move.l _tunob,-(sp)
|
---|
| 246 | jsr _vcputsv
|
---|
| 247 | adda.l #18,sp
|
---|
| 248 | *line 135
|
---|
| 249 | clr R0
|
---|
| 250 | bra L13
|
---|
| 251 | L13:tst.l (sp)+
|
---|
| 252 | movem.l (sp)+,R5-R7
|
---|
| 253 | unlk R14
|
---|
| 254 | rts
|
---|
| 255 | .globl _nd_tval
|
---|
| 256 | .text
|
---|
| 257 | _nd_tval:
|
---|
| 258 | ~~nd_tval:
|
---|
| 259 | ~k=R7
|
---|
| 260 | ~nn=8
|
---|
| 261 | link R14,#0
|
---|
| 262 | movem.l R4-R7,-(sp)
|
---|
| 263 | ~ec=R6
|
---|
| 264 | ~n=R5
|
---|
| 265 | *line 154
|
---|
| 266 | move 10(R14),R7
|
---|
| 267 | *line 154
|
---|
| 268 | move 8(R14),R5
|
---|
| 269 | and #255,R5
|
---|
| 270 | *line 155
|
---|
| 271 | move _stccol,R6
|
---|
| 272 | move.l _cfetp,R8
|
---|
| 273 | move 2(R8),R0
|
---|
| 274 | sub R0,R6
|
---|
| 275 | *line 157
|
---|
| 276 | *line 157
|
---|
| 277 | tst R6
|
---|
| 278 | bne L16
|
---|
| 279 | *line 158
|
---|
| 280 | *line 159
|
---|
| 281 | *line 159
|
---|
| 282 | cmp #8,R7
|
---|
| 283 | bne L17
|
---|
| 284 | *line 160
|
---|
| 285 | *line 161
|
---|
| 286 | move.b #45,_ebuf
|
---|
| 287 | *line 162
|
---|
| 288 | clr.b 5+_ebuf
|
---|
| 289 | *line 163
|
---|
| 290 | *line 164
|
---|
| 291 | move.b #45,_dspbuf
|
---|
| 292 | *line 165
|
---|
| 293 | clr.b 1+_dspbuf
|
---|
| 294 | *line 166
|
---|
| 295 | bra L18
|
---|
| 296 | L17:
|
---|
| 297 | *line 167
|
---|
| 298 | *line 167
|
---|
| 299 | cmp #9,R7
|
---|
| 300 | bne L19
|
---|
| 301 | *line 168
|
---|
| 302 | *line 169
|
---|
| 303 | move.b #43,_ebuf
|
---|
| 304 | *line 170
|
---|
| 305 | clr.b 5+_ebuf
|
---|
| 306 | *line 171
|
---|
| 307 | *line 172
|
---|
| 308 | move.b #43,_dspbuf
|
---|
| 309 | *line 173
|
---|
| 310 | clr.b 1+_dspbuf
|
---|
| 311 | *line 174
|
---|
| 312 | bra L20
|
---|
| 313 | L19:
|
---|
| 314 | *line 175
|
---|
| 315 | *line 176
|
---|
| 316 | *line 177
|
---|
| 317 | move #-1,R0
|
---|
| 318 | bra L15
|
---|
| 319 | L20:L18:
|
---|
| 320 | *line 178
|
---|
| 321 | *line 179
|
---|
| 322 | *line 180
|
---|
| 323 | bra L21
|
---|
| 324 | L16:
|
---|
| 325 | *line 181
|
---|
| 326 | *line 182
|
---|
| 327 | *line 183
|
---|
| 328 | move R7,R0
|
---|
| 329 | add #48,R0
|
---|
| 330 | move R6,R9
|
---|
| 331 | add.l #_ebuf,R9
|
---|
| 332 | move.b R0,(R9)
|
---|
| 333 | *line 184
|
---|
| 334 | clr.b 5+_ebuf
|
---|
| 335 | *line 185
|
---|
| 336 | *line 186
|
---|
| 337 | move R7,R0
|
---|
| 338 | add #48,R0
|
---|
| 339 | move.b R0,_dspbuf
|
---|
| 340 | *line 187
|
---|
| 341 | clr.b 1+_dspbuf
|
---|
| 342 | L21:
|
---|
| 343 | *line 190
|
---|
| 344 | clr (sp)
|
---|
| 345 | jsr _vbank
|
---|
| 346 | *line 191
|
---|
| 347 | move #14,(sp)
|
---|
| 348 | move.l #_dspbuf,-(sp)
|
---|
| 349 | move _stccol,-(sp)
|
---|
| 350 | move _stcrow,-(sp)
|
---|
| 351 | move R5,R0
|
---|
| 352 | asl #4,R0
|
---|
| 353 | ext.l R0
|
---|
| 354 | move.l R0,R8
|
---|
| 355 | move.l #_tdbox,R9
|
---|
| 356 | move 10(R8,R9.l),-(sp)
|
---|
| 357 | move #12,-(sp)
|
---|
| 358 | move #64,-(sp)
|
---|
| 359 | move.l _tunob,-(sp)
|
---|
| 360 | jsr _vcputsv
|
---|
| 361 | adda.l #18,sp
|
---|
| 362 | *line 193
|
---|
| 363 | jsr _advtcur
|
---|
| 364 | *line 194
|
---|
| 365 | clr R0
|
---|
| 366 | bra L15
|
---|
| 367 | L15:tst.l (sp)+
|
---|
| 368 | movem.l (sp)+,R5-R7
|
---|
| 369 | unlk R14
|
---|
| 370 | rts
|
---|
| 371 | .data
|
---|
| 372 | L4:.dc.b $25,$63,$25,$30,$34,$64,$0
|
---|
| 373 | L12:.dc.b $56,$61,$6C,$20,$25,$63,$25,$30,$34,$64,$0
|
---|
| 374 | L14:.dc.b $56,$61,$6C,$20,$25,$63,$25,$30,$34,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.