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