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