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:
2.7 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 _curvce
|
---|
| 10 | .globl _wdbox
|
---|
| 11 | .globl _dspbuf
|
---|
| 12 | .globl _et_wvce
|
---|
| 13 | .text
|
---|
| 14 | _et_wvce:
|
---|
| 15 | ~~et_wvce:
|
---|
| 16 | ~n=8
|
---|
| 17 | link R14,#-4
|
---|
| 18 | *line 40
|
---|
| 19 | move _curvce,(sp)
|
---|
| 20 | add #1,(sp)
|
---|
| 21 | move.l #L2,-(sp)
|
---|
| 22 | move.l #_ebuf,-(sp)
|
---|
| 23 | jsr _sprintf
|
---|
| 24 | addq.l #8,sp
|
---|
| 25 | *line 41
|
---|
| 26 | move #1,_ebflag
|
---|
| 27 | *line 43
|
---|
| 28 | clr R0
|
---|
| 29 | bra L1
|
---|
| 30 | L1:unlk R14
|
---|
| 31 | rts
|
---|
| 32 | .globl _ef_wvce
|
---|
| 33 | .text
|
---|
| 34 | _ef_wvce:
|
---|
| 35 | ~~ef_wvce:
|
---|
| 36 | ~n=8
|
---|
| 37 | link R14,#0
|
---|
| 38 | movem.l R5-R7,-(sp)
|
---|
| 39 | ~i=R7
|
---|
| 40 | ~tmpval=R6
|
---|
| 41 | *line 58
|
---|
| 42 | clr.b 2+_ebuf
|
---|
| 43 | *line 59
|
---|
| 44 | clr _ebflag
|
---|
| 45 | *line 60
|
---|
| 46 | clr R6
|
---|
| 47 | *line 62
|
---|
| 48 | clr R7
|
---|
| 49 | bra L6
|
---|
| 50 | L7:
|
---|
| 51 | *line 63
|
---|
| 52 | muls #10,R6
|
---|
| 53 | move.l #_ebuf,R8
|
---|
| 54 | move.b 0(R8,R7),R0
|
---|
| 55 | ext.w R0
|
---|
| 56 | add R0,R6
|
---|
| 57 | add #-48,R6
|
---|
| 58 | L5:
|
---|
| 59 | *line 62
|
---|
| 60 | add #1,R7
|
---|
| 61 | L6:
|
---|
| 62 | *line 62
|
---|
| 63 | cmp #2,R7
|
---|
| 64 | blt L7
|
---|
| 65 | L4:
|
---|
| 66 | *line 65
|
---|
| 67 | *line 66
|
---|
| 68 | tst R6
|
---|
| 69 | beq L10000
|
---|
| 70 | cmp #12,R6
|
---|
| 71 | ble L8
|
---|
| 72 | L10000:*line 66
|
---|
| 73 | move #-1,R0
|
---|
| 74 | bra L3
|
---|
| 75 | *line 67
|
---|
| 76 | L8:
|
---|
| 77 | *line 68
|
---|
| 78 | move R6,(sp)
|
---|
| 79 | sub #1,(sp)
|
---|
| 80 | jsr _newvce
|
---|
| 81 | *line 69
|
---|
| 82 | jsr _wwins
|
---|
| 83 | *line 70
|
---|
| 84 | clr R0
|
---|
| 85 | bra L3
|
---|
| 86 | L3:tst.l (sp)+
|
---|
| 87 | movem.l (sp)+,R6-R7
|
---|
| 88 | unlk R14
|
---|
| 89 | rts
|
---|
| 90 | .globl _rd_wvce
|
---|
| 91 | .text
|
---|
| 92 | _rd_wvce:
|
---|
| 93 | ~~rd_wvce:
|
---|
| 94 | ~nn=8
|
---|
| 95 | link R14,#0
|
---|
| 96 | movem.l R6-R7,-(sp)
|
---|
| 97 | ~n=R7
|
---|
| 98 | *line 88
|
---|
| 99 | move 8(R14),R7
|
---|
| 100 | and #255,R7
|
---|
| 101 | *line 89
|
---|
| 102 | move _curvce,(sp)
|
---|
| 103 | add #1,(sp)
|
---|
| 104 | move.l #L10,-(sp)
|
---|
| 105 | move.l #_dspbuf,-(sp)
|
---|
| 106 | jsr _sprintf
|
---|
| 107 | addq.l #8,sp
|
---|
| 108 | *line 91
|
---|
| 109 | clr (sp)
|
---|
| 110 | jsr _vbank
|
---|
| 111 | *line 92
|
---|
| 112 | *line 93
|
---|
| 113 | move #14,(sp)
|
---|
| 114 | move.l #_dspbuf,-(sp)
|
---|
| 115 | move R7,R0
|
---|
| 116 | asl #4,R0
|
---|
| 117 | ext.l R0
|
---|
| 118 | move.l R0,R8
|
---|
| 119 | move.l #_wdbox,R9
|
---|
| 120 | move 14(R8,R9.l),-(sp)
|
---|
| 121 | add #18,(sp)
|
---|
| 122 | move R7,R0
|
---|
| 123 | asl #4,R0
|
---|
| 124 | ext.l R0
|
---|
| 125 | move.l R0,R8
|
---|
| 126 | move.l #_wdbox,R9
|
---|
| 127 | move 12(R8,R9.l),-(sp)
|
---|
| 128 | move R7,R0
|
---|
| 129 | asl #4,R0
|
---|
| 130 | ext.l R0
|
---|
| 131 | move.l R0,R8
|
---|
| 132 | move.l #_wdbox,R9
|
---|
| 133 | move 10(R8,R9.l),-(sp)
|
---|
| 134 | move R7,R0
|
---|
| 135 | asl #4,R0
|
---|
| 136 | ext.l R0
|
---|
| 137 | move.l R0,R8
|
---|
| 138 | move.l #_wdbox,R9
|
---|
| 139 | move 8(R8,R9.l),-(sp)
|
---|
| 140 | move #64,-(sp)
|
---|
| 141 | move.l _waveob,-(sp)
|
---|
| 142 | jsr _vcputsv
|
---|
| 143 | adda.l #18,sp
|
---|
| 144 | *line 95
|
---|
| 145 | clr R0
|
---|
| 146 | bra L9
|
---|
| 147 | L9:tst.l (sp)+
|
---|
| 148 | movem.l (sp)+,R7-R7
|
---|
| 149 | unlk R14
|
---|
| 150 | rts
|
---|
| 151 | .globl _nd_wvce
|
---|
| 152 | .text
|
---|
| 153 | _nd_wvce:
|
---|
| 154 | ~~nd_wvce:
|
---|
| 155 | ~k=R7
|
---|
| 156 | ~nn=8
|
---|
| 157 | link R14,#0
|
---|
| 158 | movem.l R4-R7,-(sp)
|
---|
| 159 | ~ec=R6
|
---|
| 160 | ~n=R5
|
---|
| 161 | *line 111
|
---|
| 162 | move 10(R14),R7
|
---|
| 163 | *line 111
|
---|
| 164 | move 8(R14),R5
|
---|
| 165 | and #255,R5
|
---|
| 166 | *line 112
|
---|
| 167 | move _stccol,R6
|
---|
| 168 | move.l _cfetp,R8
|
---|
| 169 | move 2(R8),R0
|
---|
| 170 | sub R0,R6
|
---|
| 171 | *line 113
|
---|
| 172 | move R7,R0
|
---|
| 173 | add #48,R0
|
---|
| 174 | move R6,R9
|
---|
| 175 | add.l #_ebuf,R9
|
---|
| 176 | move.b R0,(R9)
|
---|
| 177 | *line 114
|
---|
| 178 | clr.b 2+_ebuf
|
---|
| 179 | *line 116
|
---|
| 180 | move R7,R0
|
---|
| 181 | add #48,R0
|
---|
| 182 | move.b R0,_dspbuf
|
---|
| 183 | *line 117
|
---|
| 184 | clr.b 1+_dspbuf
|
---|
| 185 | *line 119
|
---|
| 186 | clr (sp)
|
---|
| 187 | jsr _vbank
|
---|
| 188 | *line 120
|
---|
| 189 | *line 121
|
---|
| 190 | move #14,(sp)
|
---|
| 191 | move.l #_dspbuf,-(sp)
|
---|
| 192 | move _stccol,-(sp)
|
---|
| 193 | move _stcrow,-(sp)
|
---|
| 194 | move R5,R0
|
---|
| 195 | asl #4,R0
|
---|
| 196 | ext.l R0
|
---|
| 197 | move.l R0,R8
|
---|
| 198 | move.l #_wdbox,R9
|
---|
| 199 | move 10(R8,R9.l),-(sp)
|
---|
| 200 | move #12,-(sp)
|
---|
| 201 | move #64,-(sp)
|
---|
| 202 | move.l _waveob,-(sp)
|
---|
| 203 | jsr _vcputsv
|
---|
| 204 | adda.l #18,sp
|
---|
| 205 | *line 123
|
---|
| 206 | jsr _advwcur
|
---|
| 207 | *line 124
|
---|
| 208 | clr R0
|
---|
| 209 | bra L11
|
---|
| 210 | L11:tst.l (sp)+
|
---|
| 211 | movem.l (sp)+,R5-R7
|
---|
| 212 | unlk R14
|
---|
| 213 | rts
|
---|
| 214 | .data
|
---|
| 215 | L2:.dc.b $25,$30,$32,$64,$0
|
---|
| 216 | L10:.dc.b $25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.