Last change
on this file since ca867c1 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
3.7 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _ebflag
|
---|
| 2 | .globl _ebuf
|
---|
| 3 | .globl _curfet
|
---|
| 4 | .globl _cfetp
|
---|
| 5 | .globl _infetp
|
---|
| 6 | .globl _io_time
|
---|
| 7 | .globl _io_lcd
|
---|
| 8 | .globl _io_ser
|
---|
| 9 | .globl _io_midi
|
---|
| 10 | .globl _io_disk
|
---|
| 11 | .globl _io_tone
|
---|
| 12 | .globl _io_leds
|
---|
| 13 | .globl _io_kbrd
|
---|
| 14 | .globl _lcd_a0
|
---|
| 15 | .globl _lcd_a1
|
---|
| 16 | .globl _io_vreg
|
---|
| 17 | .globl _io_vraw
|
---|
| 18 | .globl _io_vram
|
---|
| 19 | .globl _io_fpu
|
---|
| 20 | .globl _v_regs
|
---|
| 21 | .globl _v_odtab
|
---|
| 22 | .globl _v_actab
|
---|
| 23 | .globl _v_ct0
|
---|
| 24 | .globl _v_gt1
|
---|
| 25 | .globl _v_score
|
---|
| 26 | .globl _v_cgtab
|
---|
| 27 | .globl _v_curs0
|
---|
| 28 | .globl _v_curs1
|
---|
| 29 | .globl _v_curs2
|
---|
| 30 | .globl _v_curs3
|
---|
| 31 | .globl _v_curs4
|
---|
| 32 | .globl _v_curs5
|
---|
| 33 | .globl _v_curs6
|
---|
| 34 | .globl _v_curs7
|
---|
| 35 | .globl _v_tcur
|
---|
| 36 | .globl _v_kbobj
|
---|
| 37 | .globl _v_lnobj
|
---|
| 38 | .globl _v_win0
|
---|
| 39 | .globl _v_cur
|
---|
| 40 | .globl _fc_sw
|
---|
| 41 | .globl _fc_val
|
---|
| 42 | .globl _obj8
|
---|
| 43 | .globl _grptran
|
---|
| 44 | .globl _sdmctl
|
---|
| 45 | .globl _vtccol
|
---|
| 46 | .globl _vtcrow
|
---|
| 47 | .globl _vtxval
|
---|
| 48 | .globl _vtyval
|
---|
| 49 | .globl _dspbuf
|
---|
| 50 | .globl _et_strn
|
---|
| 51 | .text
|
---|
| 52 | _et_strn:
|
---|
| 53 | ~~et_strn:
|
---|
| 54 | link R14,#-4
|
---|
| 55 | *line 40
|
---|
| 56 | tst _grptran
|
---|
| 57 | bge L10000
|
---|
| 58 | move _grptran,R0
|
---|
| 59 | neg R0
|
---|
| 60 | move R0,(sp)
|
---|
| 61 | bra L10002
|
---|
| 62 | L10000:move _grptran,(sp)
|
---|
| 63 | L10002:tst _grptran
|
---|
| 64 | bge L10003
|
---|
| 65 | move #45,-(sp)
|
---|
| 66 | bra L10005
|
---|
| 67 | L10003:move #43,-(sp)
|
---|
| 68 | L10005:move.l #L2,-(sp)
|
---|
| 69 | move.l #_ebuf,-(sp)
|
---|
| 70 | jsr _sprintf
|
---|
| 71 | adda.l #10,sp
|
---|
| 72 | *line 42
|
---|
| 73 | move #1,_ebflag
|
---|
| 74 | *line 44
|
---|
| 75 | clr R0
|
---|
| 76 | bra L1
|
---|
| 77 | L1:unlk R14
|
---|
| 78 | rts
|
---|
| 79 | .globl _ef_strn
|
---|
| 80 | .text
|
---|
| 81 | _ef_strn:
|
---|
| 82 | ~~ef_strn:
|
---|
| 83 | link R14,#0
|
---|
| 84 | movem.l R6-R7,-(sp)
|
---|
| 85 | ~ival=R7
|
---|
| 86 | *line 61
|
---|
| 87 | clr.b 3+_ebuf
|
---|
| 88 | *line 62
|
---|
| 89 | move.b 1+_ebuf,R7
|
---|
| 90 | ext.w R7
|
---|
| 91 | add #-48,R7
|
---|
| 92 | muls #10,R7
|
---|
| 93 | move.b 2+_ebuf,R0
|
---|
| 94 | ext.w R0
|
---|
| 95 | add R0,R7
|
---|
| 96 | add #-48,R7
|
---|
| 97 | *line 64
|
---|
| 98 | clr _ebflag
|
---|
| 99 | *line 66
|
---|
| 100 | *line 67
|
---|
| 101 | tst R7
|
---|
| 102 | beq L4
|
---|
| 103 | cmp.b #45,_ebuf
|
---|
| 104 | bne L4
|
---|
| 105 | *line 67
|
---|
| 106 | move R7,R0
|
---|
| 107 | neg R0
|
---|
| 108 | move R0,R7
|
---|
| 109 | *line 68
|
---|
| 110 | L4:
|
---|
| 111 | *line 69
|
---|
| 112 | move R7,_grptran
|
---|
| 113 | *line 71
|
---|
| 114 | clr R0
|
---|
| 115 | bra L3
|
---|
| 116 | L3:tst.l (sp)+
|
---|
| 117 | movem.l (sp)+,R7-R7
|
---|
| 118 | unlk R14
|
---|
| 119 | rts
|
---|
| 120 | .globl _rd_strn
|
---|
| 121 | .text
|
---|
| 122 | _rd_strn:
|
---|
| 123 | ~~rd_strn:
|
---|
| 124 | link R14,#-4
|
---|
| 125 | *line 83
|
---|
| 126 | tst _grptran
|
---|
| 127 | bge L10006
|
---|
| 128 | move _grptran,R0
|
---|
| 129 | neg R0
|
---|
| 130 | move R0,(sp)
|
---|
| 131 | bra L10008
|
---|
| 132 | L10006:move _grptran,(sp)
|
---|
| 133 | L10008:tst _grptran
|
---|
| 134 | bge L10009
|
---|
| 135 | move #45,-(sp)
|
---|
| 136 | bra L10011
|
---|
| 137 | L10009:move #43,-(sp)
|
---|
| 138 | L10011:move.l #L6,-(sp)
|
---|
| 139 | move.l #_dspbuf,-(sp)
|
---|
| 140 | jsr _sprintf
|
---|
| 141 | adda.l #10,sp
|
---|
| 142 | *line 85
|
---|
| 143 | *line 86
|
---|
| 144 | clr R0
|
---|
| 145 | move 10+_v_regs,R0
|
---|
| 146 | and #384,R0
|
---|
| 147 | beq L7
|
---|
| 148 | *line 86
|
---|
| 149 | clr (sp)
|
---|
| 150 | jsr _vbank
|
---|
| 151 | *line 87
|
---|
| 152 | L7:
|
---|
| 153 | *line 88
|
---|
| 154 | move #20,(sp)
|
---|
| 155 | move.l #_dspbuf,-(sp)
|
---|
| 156 | move #22,-(sp)
|
---|
| 157 | move #7,-(sp)
|
---|
| 158 | move.l _obj8,-(sp)
|
---|
| 159 | jsr _vputs
|
---|
| 160 | adda.l #12,sp
|
---|
| 161 | *line 90
|
---|
| 162 | clr R0
|
---|
| 163 | bra L5
|
---|
| 164 | L5:unlk R14
|
---|
| 165 | rts
|
---|
| 166 | .globl _nd_strn
|
---|
| 167 | .text
|
---|
| 168 | _nd_strn:
|
---|
| 169 | ~~nd_strn:
|
---|
| 170 | ~n=8
|
---|
| 171 | ~k=10
|
---|
| 172 | link R14,#0
|
---|
| 173 | movem.l R6-R7,-(sp)
|
---|
| 174 | ~ec=R7
|
---|
| 175 | *line 108
|
---|
| 176 | *line 109
|
---|
| 177 | cmp #4,_sdmctl
|
---|
| 178 | beq L9
|
---|
| 179 | *line 109
|
---|
| 180 | move #-1,R0
|
---|
| 181 | bra L8
|
---|
| 182 | *line 110
|
---|
| 183 | L9:
|
---|
| 184 | *line 111
|
---|
| 185 | *line 112
|
---|
| 186 | cmp #22,_vtccol
|
---|
| 187 | blt L10
|
---|
| 188 | cmp #24,_vtccol
|
---|
| 189 | bgt L10
|
---|
| 190 | *line 112
|
---|
| 191 | move _vtccol,R7
|
---|
| 192 | add #-22,R7
|
---|
| 193 | *line 113
|
---|
| 194 | bra L11
|
---|
| 195 | L10:
|
---|
| 196 | *line 114
|
---|
| 197 | move #-1,R0
|
---|
| 198 | bra L8
|
---|
| 199 | L11:
|
---|
| 200 | *line 116
|
---|
| 201 | *line 116
|
---|
| 202 | tst R7
|
---|
| 203 | bne L12
|
---|
| 204 | *line 117
|
---|
| 205 | *line 118
|
---|
| 206 | *line 119
|
---|
| 207 | cmp #8,10(R14)
|
---|
| 208 | bne L13
|
---|
| 209 | *line 119
|
---|
| 210 | move #45,10(R14)
|
---|
| 211 | bra L14
|
---|
| 212 | L13:
|
---|
| 213 | *line 120
|
---|
| 214 | *line 121
|
---|
| 215 | cmp #9,10(R14)
|
---|
| 216 | bne L15
|
---|
| 217 | *line 121
|
---|
| 218 | move #43,10(R14)
|
---|
| 219 | *line 122
|
---|
| 220 | bra L16
|
---|
| 221 | L15:
|
---|
| 222 | *line 123
|
---|
| 223 | move #-1,R0
|
---|
| 224 | bra L8
|
---|
| 225 | L16:L14:
|
---|
| 226 | *line 124
|
---|
| 227 | bra L17
|
---|
| 228 | L12:
|
---|
| 229 | *line 125
|
---|
| 230 | add #48,10(R14)
|
---|
| 231 | L17:
|
---|
| 232 | *line 127
|
---|
| 233 | move 10(R14),R0
|
---|
| 234 | move R7,R9
|
---|
| 235 | add.l #_ebuf,R9
|
---|
| 236 | move.b R0,(R9)
|
---|
| 237 | *line 129
|
---|
| 238 | *line 130
|
---|
| 239 | clr R0
|
---|
| 240 | move 10+_v_regs,R0
|
---|
| 241 | and #384,R0
|
---|
| 242 | beq L18
|
---|
| 243 | *line 130
|
---|
| 244 | clr (sp)
|
---|
| 245 | jsr _vbank
|
---|
| 246 | *line 131
|
---|
| 247 | L18:
|
---|
| 248 | *line 132
|
---|
| 249 | move #100,(sp)
|
---|
| 250 | move 10(R14),-(sp)
|
---|
| 251 | move _vtccol,-(sp)
|
---|
| 252 | move #7,-(sp)
|
---|
| 253 | move.l _obj8,-(sp)
|
---|
| 254 | jsr _vputc
|
---|
| 255 | adda.l #10,sp
|
---|
| 256 | *line 134
|
---|
| 257 | *line 134
|
---|
| 258 | cmp #24,_vtccol
|
---|
| 259 | bge L19
|
---|
| 260 | *line 135
|
---|
| 261 | *line 136
|
---|
| 262 | add #1,_vtccol
|
---|
| 263 | *line 137
|
---|
| 264 | move _vtccol,R0
|
---|
| 265 | asl #3,R0
|
---|
| 266 | move R0,_vtxval
|
---|
| 267 | *line 138
|
---|
| 268 | move _vtccol,(sp)
|
---|
| 269 | move _vtcrow,-(sp)
|
---|
| 270 | jsr _ttcpos
|
---|
| 271 | addq.l #2,sp
|
---|
| 272 | *line 139
|
---|
| 273 | *line 140
|
---|
| 274 | L19:
|
---|
| 275 | *line 141
|
---|
| 276 | clr R0
|
---|
| 277 | bra L8
|
---|
| 278 | L8:tst.l (sp)+
|
---|
| 279 | movem.l (sp)+,R7-R7
|
---|
| 280 | unlk R14
|
---|
| 281 | rts
|
---|
| 282 | .data
|
---|
| 283 | L2:.dc.b $25,$63,$25,$30,$32,$64,$0
|
---|
| 284 | L6:.dc.b $25,$63,$25,$30,$32,$64,$0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.