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.7 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _errno
|
---|
| 2 | .globl __bpbin
|
---|
| 3 | .globl __dirin
|
---|
| 4 | .globl __fatin
|
---|
| 5 | .globl __dirmod
|
---|
| 6 | .globl __fatmod
|
---|
| 7 | .globl _Stdbufs
|
---|
| 8 | .comm _Stdbufs,4
|
---|
| 9 | .globl _Wrkbuf
|
---|
| 10 | .comm _Wrkbuf,512
|
---|
| 11 | .globl _Stdbuf
|
---|
| 12 | .comm _Stdbuf,8192
|
---|
| 13 | .globl _Cbuffs
|
---|
| 14 | .comm _Cbuffs,198
|
---|
| 15 | .globl __fcbtab
|
---|
| 16 | .comm __fcbtab,448
|
---|
| 17 | .globl _chantab
|
---|
| 18 | .comm _chantab,132
|
---|
| 19 | .globl __b_tbuf
|
---|
| 20 | .comm __b_tbuf,4608
|
---|
| 21 | .globl __b_trak
|
---|
| 22 | .comm __b_trak,2
|
---|
| 23 | .globl __b_side
|
---|
| 24 | .comm __b_side,2
|
---|
| 25 | .globl __b_sect
|
---|
| 26 | .comm __b_sect,2
|
---|
| 27 | .globl __b_tsec
|
---|
| 28 | .comm __b_tsec,2
|
---|
| 29 | .globl __badfd
|
---|
| 30 | .text
|
---|
| 31 | __badfd:
|
---|
| 32 | ~~_badfd:
|
---|
| 33 | link R14,#-4
|
---|
| 34 | *line 57
|
---|
| 35 | move #9,_errno
|
---|
| 36 | *line 58
|
---|
| 37 | move #-1,R0
|
---|
| 38 | bra L1
|
---|
| 39 | L1:unlk R14
|
---|
| 40 | rts
|
---|
| 41 | .globl __noper
|
---|
| 42 | .text
|
---|
| 43 | __noper:
|
---|
| 44 | ~~_noper:
|
---|
| 45 | link R14,#-4
|
---|
| 46 | *line 70
|
---|
| 47 | clr R0
|
---|
| 48 | bra L2
|
---|
| 49 | L2:unlk R14
|
---|
| 50 | rts
|
---|
| 51 | .globl _InitCH
|
---|
| 52 | .text
|
---|
| 53 | _InitCH:
|
---|
| 54 | ~~InitCH:
|
---|
| 55 | ~cp=R13
|
---|
| 56 | ~rdi=13
|
---|
| 57 | ~wri=15
|
---|
| 58 | ~ioi=17
|
---|
| 59 | ~ski=19
|
---|
| 60 | ~cfp=20
|
---|
| 61 | ~charg=24
|
---|
| 62 | link R14,#0
|
---|
| 63 | movem.l R7-R7/R13-R13,-(sp)
|
---|
| 64 | *line 88
|
---|
| 65 | move.l 8(R14),R13
|
---|
| 66 | *line 88
|
---|
| 67 | move.b 13(R14),(R13)
|
---|
| 68 | *line 89
|
---|
| 69 | move.b 15(R14),1(R13)
|
---|
| 70 | *line 90
|
---|
| 71 | move.b 17(R14),2(R13)
|
---|
| 72 | *line 91
|
---|
| 73 | move.b 19(R14),3(R13)
|
---|
| 74 | *line 92
|
---|
| 75 | move.l 20(R14),4(R13)
|
---|
| 76 | *line 93
|
---|
| 77 | move.l 24(R14),8(R13)
|
---|
| 78 | L3:tst.l (sp)+
|
---|
| 79 | movem.l (sp)+,R13-R13
|
---|
| 80 | unlk R14
|
---|
| 81 | rts
|
---|
| 82 | .globl _Init_CB
|
---|
| 83 | .text
|
---|
| 84 | _Init_CB:
|
---|
| 85 | ~~Init_CB:
|
---|
| 86 | ~fp=R13
|
---|
| 87 | ~flags=13
|
---|
| 88 | ~unit=15
|
---|
| 89 | ~bufad=16
|
---|
| 90 | ~bufsize=20
|
---|
| 91 | link R14,#0
|
---|
| 92 | movem.l R7-R7/R13-R13,-(sp)
|
---|
| 93 | *line 108
|
---|
| 94 | move.l 8(R14),R13
|
---|
| 95 | *line 108
|
---|
| 96 | clr.l (R13)
|
---|
| 97 | *line 109
|
---|
| 98 | clr.l 4(R13)
|
---|
| 99 | *line 110
|
---|
| 100 | move.l 16(R14),8(R13)
|
---|
| 101 | *line 111
|
---|
| 102 | move.b 13(R14),12(R13)
|
---|
| 103 | *line 112
|
---|
| 104 | move.b 15(R14),13(R13)
|
---|
| 105 | *line 113
|
---|
| 106 | clr.b 14(R13)
|
---|
| 107 | *line 114
|
---|
| 108 | move 20(R14),16(R13)
|
---|
| 109 | L4:tst.l (sp)+
|
---|
| 110 | movem.l (sp)+,R13-R13
|
---|
| 111 | unlk R14
|
---|
| 112 | rts
|
---|
| 113 | .globl _InitFS
|
---|
| 114 | .text
|
---|
| 115 | _InitFS:
|
---|
| 116 | ~~InitFS:
|
---|
| 117 | link R14,#0
|
---|
| 118 | movem.l R6-R7,-(sp)
|
---|
| 119 | ~i=R7
|
---|
| 120 | *line 130
|
---|
| 121 | move #448,(sp)
|
---|
| 122 | clr -(sp)
|
---|
| 123 | move.l #__fcbtab,-(sp)
|
---|
| 124 | jsr _memset
|
---|
| 125 | addq.l #6,sp
|
---|
| 126 | *line 131
|
---|
| 127 | move #4096,(sp)
|
---|
| 128 | clr -(sp)
|
---|
| 129 | move.l #_Stdbuf,-(sp)
|
---|
| 130 | jsr _memsetw
|
---|
| 131 | addq.l #6,sp
|
---|
| 132 | *line 133
|
---|
| 133 | move #1024,(sp)
|
---|
| 134 | clr.l -(sp)
|
---|
| 135 | clr -(sp)
|
---|
| 136 | move #1,-(sp)
|
---|
| 137 | move.l #_Cbuffs,-(sp)
|
---|
| 138 | jsr _Init_CB
|
---|
| 139 | adda.l #12,sp
|
---|
| 140 | *line 134
|
---|
| 141 | move #1,(sp)
|
---|
| 142 | clr.l -(sp)
|
---|
| 143 | move #1,-(sp)
|
---|
| 144 | move #1,-(sp)
|
---|
| 145 | move.l #18+_Cbuffs,-(sp)
|
---|
| 146 | jsr _Init_CB
|
---|
| 147 | adda.l #12,sp
|
---|
| 148 | *line 135
|
---|
| 149 | move #1,(sp)
|
---|
| 150 | clr.l -(sp)
|
---|
| 151 | move #2,-(sp)
|
---|
| 152 | move #1,-(sp)
|
---|
| 153 | move.l #36+_Cbuffs,-(sp)
|
---|
| 154 | jsr _Init_CB
|
---|
| 155 | adda.l #12,sp
|
---|
| 156 | *line 137
|
---|
| 157 | move #3,R7
|
---|
| 158 | bra L8
|
---|
| 159 | L9:
|
---|
| 160 | *line 138
|
---|
| 161 | clr (sp)
|
---|
| 162 | clr.l -(sp)
|
---|
| 163 | clr -(sp)
|
---|
| 164 | clr -(sp)
|
---|
| 165 | move R7,R0
|
---|
| 166 | muls #18,R0
|
---|
| 167 | add.l #_Cbuffs,R0
|
---|
| 168 | move.l R0,-(sp)
|
---|
| 169 | jsr _Init_CB
|
---|
| 170 | adda.l #12,sp
|
---|
| 171 | L7:
|
---|
| 172 | *line 137
|
---|
| 173 | add #1,R7
|
---|
| 174 | L8:
|
---|
| 175 | *line 137
|
---|
| 176 | cmp #11,R7
|
---|
| 177 | blt L9
|
---|
| 178 | L6:
|
---|
| 179 | *line 140
|
---|
| 180 | clr.l _Stdbuf
|
---|
| 181 | *line 142
|
---|
| 182 | move #1,R7
|
---|
| 183 | bra L12
|
---|
| 184 | L13:
|
---|
| 185 | *line 143
|
---|
| 186 | move R7,R0
|
---|
| 187 | sub #1,R0
|
---|
| 188 | move #10,R1
|
---|
| 189 | asl R1,R0
|
---|
| 190 | ext.l R0
|
---|
| 191 | add.l #_Stdbuf,R0
|
---|
| 192 | move R7,R1
|
---|
| 193 | move #10,R2
|
---|
| 194 | asl R2,R1
|
---|
| 195 | ext.l R1
|
---|
| 196 | add.l #_Stdbuf,R1
|
---|
| 197 | move.l R1,R9
|
---|
| 198 | move.l R0,(R9)
|
---|
| 199 | L11:
|
---|
| 200 | *line 142
|
---|
| 201 | add #1,R7
|
---|
| 202 | L12:
|
---|
| 203 | *line 142
|
---|
| 204 | cmp #8,R7
|
---|
| 205 | blt L13
|
---|
| 206 | L10:
|
---|
| 207 | *line 145
|
---|
| 208 | move.l #7168+_Stdbuf,_Stdbufs
|
---|
| 209 | *line 147
|
---|
| 210 | move.l #$2,(sp)
|
---|
| 211 | move.l #__noper,-(sp)
|
---|
| 212 | clr -(sp)
|
---|
| 213 | move #1,-(sp)
|
---|
| 214 | clr -(sp)
|
---|
| 215 | move #2,-(sp)
|
---|
| 216 | move.l #_chantab,-(sp)
|
---|
| 217 | jsr _InitCH
|
---|
| 218 | adda.l #16,sp
|
---|
| 219 | *line 148
|
---|
| 220 | move.l #$2,(sp)
|
---|
| 221 | move.l #__noper,-(sp)
|
---|
| 222 | clr -(sp)
|
---|
| 223 | move #1,-(sp)
|
---|
| 224 | move #2,-(sp)
|
---|
| 225 | clr -(sp)
|
---|
| 226 | move.l #12+_chantab,-(sp)
|
---|
| 227 | jsr _InitCH
|
---|
| 228 | adda.l #16,sp
|
---|
| 229 | *line 149
|
---|
| 230 | move.l #$2,(sp)
|
---|
| 231 | move.l #__noper,-(sp)
|
---|
| 232 | clr -(sp)
|
---|
| 233 | move #1,-(sp)
|
---|
| 234 | move #2,-(sp)
|
---|
| 235 | clr -(sp)
|
---|
| 236 | move.l #24+_chantab,-(sp)
|
---|
| 237 | jsr _InitCH
|
---|
| 238 | adda.l #16,sp
|
---|
| 239 | *line 151
|
---|
| 240 | move #3,R7
|
---|
| 241 | bra L16
|
---|
| 242 | L17:
|
---|
| 243 | *line 152
|
---|
| 244 | clr.l (sp)
|
---|
| 245 | move.l #__badfd,-(sp)
|
---|
| 246 | clr -(sp)
|
---|
| 247 | clr -(sp)
|
---|
| 248 | clr -(sp)
|
---|
| 249 | clr -(sp)
|
---|
| 250 | move R7,R0
|
---|
| 251 | muls #12,R0
|
---|
| 252 | add.l #_chantab,R0
|
---|
| 253 | move.l R0,-(sp)
|
---|
| 254 | jsr _InitCH
|
---|
| 255 | adda.l #16,sp
|
---|
| 256 | L15:
|
---|
| 257 | *line 151
|
---|
| 258 | add #1,R7
|
---|
| 259 | L16:
|
---|
| 260 | *line 151
|
---|
| 261 | cmp #11,R7
|
---|
| 262 | blt L17
|
---|
| 263 | L14:
|
---|
| 264 | *line 154
|
---|
| 265 | clr __bpbin
|
---|
| 266 | *line 155
|
---|
| 267 | clr __dirin
|
---|
| 268 | *line 156
|
---|
| 269 | clr __fatin
|
---|
| 270 | *line 157
|
---|
| 271 | clr __fatmod
|
---|
| 272 | *line 158
|
---|
| 273 | clr __dirmod
|
---|
| 274 | *line 161
|
---|
| 275 | move #-1,__b_trak
|
---|
| 276 | *line 162
|
---|
| 277 | move #-1,__b_side
|
---|
| 278 | L5:tst.l (sp)+
|
---|
| 279 | movem.l (sp)+,R7-R7
|
---|
| 280 | unlk R14
|
---|
| 281 | rts
|
---|
| 282 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.