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:
3.3 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _ebflag
|
---|
| 2 | .globl _ebuf
|
---|
| 3 | .globl _curfet
|
---|
| 4 | .globl _cfetp
|
---|
| 5 | .globl _infetp
|
---|
| 6 | .globl _asgob
|
---|
| 7 | .globl _asgmod
|
---|
| 8 | .globl _stccol
|
---|
| 9 | .globl _stcrow
|
---|
| 10 | .globl _dspbuf
|
---|
| 11 | .globl _ins2grp
|
---|
| 12 | .globl _adbox
|
---|
| 13 | .globl _modasg
|
---|
| 14 | .text
|
---|
| 15 | _modasg:
|
---|
| 16 | ~~modasg:
|
---|
| 17 | link R14,#-4
|
---|
| 18 | *line 42
|
---|
| 19 | *line 42
|
---|
| 20 | tst _asgmod
|
---|
| 21 | bne L2
|
---|
| 22 | *line 43
|
---|
| 23 | *line 44
|
---|
| 24 | move #1,_asgmod
|
---|
| 25 | *line 45
|
---|
| 26 | clr (sp)
|
---|
| 27 | jsr _adswin
|
---|
| 28 | *line 46
|
---|
| 29 | L2:L1:unlk R14
|
---|
| 30 | rts
|
---|
| 31 | .globl _et_ains
|
---|
| 32 | .text
|
---|
| 33 | _et_ains:
|
---|
| 34 | ~~et_ains:
|
---|
| 35 | ~n=8
|
---|
| 36 | link R14,#-4
|
---|
| 37 | movem.l R6-R7,-(sp)
|
---|
| 38 | ~grp=R7
|
---|
| 39 | ~buf=-4
|
---|
| 40 | *line 63
|
---|
| 41 | move 8(R14),R7
|
---|
| 42 | asr #8,R7
|
---|
| 43 | and #255,R7
|
---|
| 44 | *line 65
|
---|
| 45 | move R7,R8
|
---|
| 46 | add.l R8,R8
|
---|
| 47 | move.l #_ins2grp,R9
|
---|
| 48 | move 0(R8,R9.l),(sp)
|
---|
| 49 | and #255,(sp)
|
---|
| 50 | move.l #L4,-(sp)
|
---|
| 51 | move.l #_ebuf,-(sp)
|
---|
| 52 | jsr _sprintf
|
---|
| 53 | addq.l #8,sp
|
---|
| 54 | *line 66
|
---|
| 55 | move #1,_ebflag
|
---|
| 56 | *line 68
|
---|
| 57 | clr R0
|
---|
| 58 | bra L3
|
---|
| 59 | L3:tst.l (sp)+
|
---|
| 60 | movem.l (sp)+,R7-R7
|
---|
| 61 | unlk R14
|
---|
| 62 | rts
|
---|
| 63 | .globl _ef_ains
|
---|
| 64 | .text
|
---|
| 65 | _ef_ains:
|
---|
| 66 | ~~ef_ains:
|
---|
| 67 | ~n=8
|
---|
| 68 | link R14,#0
|
---|
| 69 | movem.l R4-R7,-(sp)
|
---|
| 70 | ~tmpval=R7
|
---|
| 71 | ~grp=R6
|
---|
| 72 | ~i=R5
|
---|
| 73 | *line 83
|
---|
| 74 | move 8(R14),R6
|
---|
| 75 | asr #8,R6
|
---|
| 76 | and #255,R6
|
---|
| 77 | *line 84
|
---|
| 78 | clr.b 2+_ebuf
|
---|
| 79 | *line 85
|
---|
| 80 | clr _ebflag
|
---|
| 81 | *line 86
|
---|
| 82 | clr R7
|
---|
| 83 | *line 88
|
---|
| 84 | clr R5
|
---|
| 85 | bra L8
|
---|
| 86 | L9:
|
---|
| 87 | *line 89
|
---|
| 88 | muls #10,R7
|
---|
| 89 | move.l #_ebuf,R8
|
---|
| 90 | move.b 0(R8,R5),R0
|
---|
| 91 | ext.w R0
|
---|
| 92 | add R0,R7
|
---|
| 93 | add #-48,R7
|
---|
| 94 | L7:
|
---|
| 95 | *line 88
|
---|
| 96 | add #1,R5
|
---|
| 97 | L8:
|
---|
| 98 | *line 88
|
---|
| 99 | cmp #2,R5
|
---|
| 100 | blt L9
|
---|
| 101 | L6:
|
---|
| 102 | *line 91
|
---|
| 103 | *line 92
|
---|
| 104 | cmp #41,R7
|
---|
| 105 | blt L10
|
---|
| 106 | *line 92
|
---|
| 107 | move #-1,R0
|
---|
| 108 | bra L5
|
---|
| 109 | *line 93
|
---|
| 110 | L10:
|
---|
| 111 | *line 94
|
---|
| 112 | move R7,R0
|
---|
| 113 | move R6,R9
|
---|
| 114 | add.l R9,R9
|
---|
| 115 | add.l #_ins2grp,R9
|
---|
| 116 | move (R9),R1
|
---|
| 117 | and #-256,R1
|
---|
| 118 | or R1,R0
|
---|
| 119 | move R6,R9
|
---|
| 120 | add.l R9,R9
|
---|
| 121 | add.l #_ins2grp,R9
|
---|
| 122 | move R0,(R9)
|
---|
| 123 | *line 95
|
---|
| 124 | jsr _modasg
|
---|
| 125 | *line 96
|
---|
| 126 | move R6,(sp)
|
---|
| 127 | jsr _setv2gi
|
---|
| 128 | *line 97
|
---|
| 129 | jsr _setinst
|
---|
| 130 | *line 98
|
---|
| 131 | clr R0
|
---|
| 132 | bra L5
|
---|
| 133 | L5:tst.l (sp)+
|
---|
| 134 | movem.l (sp)+,R5-R7
|
---|
| 135 | unlk R14
|
---|
| 136 | rts
|
---|
| 137 | .globl _rd_ains
|
---|
| 138 | .text
|
---|
| 139 | _rd_ains:
|
---|
| 140 | ~~rd_ains:
|
---|
| 141 | ~nn=8
|
---|
| 142 | link R14,#-4
|
---|
| 143 | movem.l R5-R7,-(sp)
|
---|
| 144 | ~n=R7
|
---|
| 145 | ~grp=R6
|
---|
| 146 | ~buf=-4
|
---|
| 147 | *line 117
|
---|
| 148 | move 8(R14),R7
|
---|
| 149 | and #255,R7
|
---|
| 150 | *line 118
|
---|
| 151 | move 8(R14),R6
|
---|
| 152 | asr #8,R6
|
---|
| 153 | and #255,R6
|
---|
| 154 | *line 120
|
---|
| 155 | move R6,R8
|
---|
| 156 | add.l R8,R8
|
---|
| 157 | move.l #_ins2grp,R9
|
---|
| 158 | move 0(R8,R9.l),(sp)
|
---|
| 159 | and #255,(sp)
|
---|
| 160 | move.l #L12,-(sp)
|
---|
| 161 | move.l #_dspbuf,-(sp)
|
---|
| 162 | jsr _sprintf
|
---|
| 163 | addq.l #8,sp
|
---|
| 164 | *line 122
|
---|
| 165 | clr (sp)
|
---|
| 166 | jsr _vbank
|
---|
| 167 | *line 123
|
---|
| 168 | *line 124
|
---|
| 169 | move #14,(sp)
|
---|
| 170 | move.l #_dspbuf,-(sp)
|
---|
| 171 | move.l _cfetp,R8
|
---|
| 172 | move 2(R8),-(sp)
|
---|
| 173 | move.l _cfetp,R8
|
---|
| 174 | move (R8),-(sp)
|
---|
| 175 | move R7,R0
|
---|
| 176 | asl #4,R0
|
---|
| 177 | ext.l R0
|
---|
| 178 | move.l R0,R8
|
---|
| 179 | move.l #_adbox,R9
|
---|
| 180 | move 10(R8,R9.l),-(sp)
|
---|
| 181 | move R7,R0
|
---|
| 182 | asl #4,R0
|
---|
| 183 | ext.l R0
|
---|
| 184 | move.l R0,R8
|
---|
| 185 | move.l #_adbox,R9
|
---|
| 186 | move 8(R8,R9.l),-(sp)
|
---|
| 187 | move #64,-(sp)
|
---|
| 188 | move.l _asgob,-(sp)
|
---|
| 189 | jsr _vcputsv
|
---|
| 190 | adda.l #18,sp
|
---|
| 191 | *line 126
|
---|
| 192 | clr R0
|
---|
| 193 | bra L11
|
---|
| 194 | L11:tst.l (sp)+
|
---|
| 195 | movem.l (sp)+,R6-R7
|
---|
| 196 | unlk R14
|
---|
| 197 | rts
|
---|
| 198 | .globl _nd_ains
|
---|
| 199 | .text
|
---|
| 200 | _nd_ains:
|
---|
| 201 | ~~nd_ains:
|
---|
| 202 | ~k=R7
|
---|
| 203 | ~nn=8
|
---|
| 204 | link R14,#0
|
---|
| 205 | movem.l R5-R7,-(sp)
|
---|
| 206 | ~n=R6
|
---|
| 207 | *line 142
|
---|
| 208 | move 10(R14),R7
|
---|
| 209 | *line 142
|
---|
| 210 | move 8(R14),R6
|
---|
| 211 | and #255,R6
|
---|
| 212 | *line 143
|
---|
| 213 | move R7,R0
|
---|
| 214 | add #48,R0
|
---|
| 215 | move _stccol,R9
|
---|
| 216 | move.l _cfetp,R10
|
---|
| 217 | move 2(R10),R10
|
---|
| 218 | sub R10,R9
|
---|
| 219 | add.l #_ebuf,R9
|
---|
| 220 | move.b R0,(R9)
|
---|
| 221 | *line 144
|
---|
| 222 | clr.b 2+_ebuf
|
---|
| 223 | *line 146
|
---|
| 224 | move R7,R0
|
---|
| 225 | add #48,R0
|
---|
| 226 | move.b R0,_dspbuf
|
---|
| 227 | *line 147
|
---|
| 228 | clr.b 1+_dspbuf
|
---|
| 229 | *line 149
|
---|
| 230 | clr (sp)
|
---|
| 231 | jsr _vbank
|
---|
| 232 | *line 150
|
---|
| 233 | *line 151
|
---|
| 234 | move #14,(sp)
|
---|
| 235 | move.l #_dspbuf,-(sp)
|
---|
| 236 | move _stccol,-(sp)
|
---|
| 237 | move _stcrow,-(sp)
|
---|
| 238 | move R6,R0
|
---|
| 239 | asl #4,R0
|
---|
| 240 | ext.l R0
|
---|
| 241 | move.l R0,R8
|
---|
| 242 | move.l #_adbox,R9
|
---|
| 243 | move 10(R8,R9.l),-(sp)
|
---|
| 244 | move #12,-(sp)
|
---|
| 245 | move #64,-(sp)
|
---|
| 246 | move.l _asgob,-(sp)
|
---|
| 247 | jsr _vcputsv
|
---|
| 248 | adda.l #18,sp
|
---|
| 249 | *line 153
|
---|
| 250 | jsr _advacur
|
---|
| 251 | *line 154
|
---|
| 252 | clr R0
|
---|
| 253 | bra L13
|
---|
| 254 | L13:tst.l (sp)+
|
---|
| 255 | movem.l (sp)+,R6-R7
|
---|
| 256 | unlk R14
|
---|
| 257 | rts
|
---|
| 258 | .data
|
---|
| 259 | L4:.dc.b $25,$30,$32,$2E,$32,$64,$0
|
---|
| 260 | L12:.dc.b $25,$30,$32,$2E,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.