Last change
on this file since 9519422 was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
3.0 KB
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _errno
|
---|
| 2 | .globl __berrno
|
---|
| 3 | .globl __thefat
|
---|
| 4 | .globl __thebpb
|
---|
| 5 | .globl __b_tbuf
|
---|
| 6 | .globl __b_trak
|
---|
| 7 | .globl __b_side
|
---|
| 8 | .globl __b_sect
|
---|
| 9 | .globl __b_tsec
|
---|
| 10 | .globl __secrd
|
---|
| 11 | .text
|
---|
| 12 | __secrd:
|
---|
| 13 | ~~_secrd:
|
---|
| 14 | ~buf=R13
|
---|
| 15 | ~rec=R7
|
---|
| 16 | link R14,#-4
|
---|
| 17 | movem.l R3-R7/R13-R13,-(sp)
|
---|
| 18 | ~track=R6
|
---|
| 19 | ~side=R5
|
---|
| 20 | ~sector=R4
|
---|
| 21 | ~brc=-4
|
---|
| 22 | *line 81
|
---|
| 23 | move.l 8(R14),R13
|
---|
| 24 | *line 81
|
---|
| 25 | move 12(R14),R7
|
---|
| 26 | *line 81
|
---|
| 27 | *line 82
|
---|
| 28 | move.l __thebpb,R8
|
---|
| 29 | cmp #9,24(R8)
|
---|
| 30 | beq L2
|
---|
| 31 | *line 82
|
---|
| 32 | move.l #$fffffff9,R0
|
---|
| 33 | bra L1
|
---|
| 34 | *line 83
|
---|
| 35 | L2:
|
---|
| 36 | *line 84
|
---|
| 37 | *line 85
|
---|
| 38 | move.l __thebpb,R8
|
---|
| 39 | cmp #512,(R8)
|
---|
| 40 | beq L3
|
---|
| 41 | *line 85
|
---|
| 42 | move.l #$fffffff9,R0
|
---|
| 43 | bra L1
|
---|
| 44 | *line 86
|
---|
| 45 | L3:
|
---|
| 46 | *line 87
|
---|
| 47 | move R7,R6
|
---|
| 48 | move.l __thebpb,R8
|
---|
| 49 | move 22(R8),-(sp)
|
---|
| 50 | move R6,R0
|
---|
| 51 | ext.l R0
|
---|
| 52 | divu (sp)+,R0
|
---|
| 53 | move R0,R6
|
---|
| 54 | *line 88
|
---|
| 55 | move R6,R0
|
---|
| 56 | move.l __thebpb,R9
|
---|
| 57 | mulu 22(R9),R0
|
---|
| 58 | move R0,__b_tsec
|
---|
| 59 | *line 89
|
---|
| 60 | move R7,R4
|
---|
| 61 | sub __b_tsec,R4
|
---|
| 62 | *line 91
|
---|
| 63 | *line 91
|
---|
| 64 | move.l __thebpb,R8
|
---|
| 65 | cmp 24(R8),R4
|
---|
| 66 | blo L4
|
---|
| 67 | *line 92
|
---|
| 68 | *line 93
|
---|
| 69 | move.l __thebpb,R8
|
---|
| 70 | move 24(R8),R0
|
---|
| 71 | sub R0,R4
|
---|
| 72 | *line 94
|
---|
| 73 | move #1,R5
|
---|
| 74 | *line 95
|
---|
| 75 | move.l __thebpb,R8
|
---|
| 76 | move 24(R8),R0
|
---|
| 77 | add R0,__b_tsec
|
---|
| 78 | *line 96
|
---|
| 79 | bra L5
|
---|
| 80 | L4:
|
---|
| 81 | *line 97
|
---|
| 82 | *line 98
|
---|
| 83 | *line 99
|
---|
| 84 | clr R5
|
---|
| 85 | L5:
|
---|
| 86 | *line 108
|
---|
| 87 | *line 108
|
---|
| 88 | cmp __b_trak,R6
|
---|
| 89 | bne L10000
|
---|
| 90 | cmp __b_side,R5
|
---|
| 91 | beq L6
|
---|
| 92 | L10000:*line 109
|
---|
| 93 | *line 110
|
---|
| 94 | *line 110
|
---|
| 95 | clr (sp)
|
---|
| 96 | move __b_tsec,-(sp)
|
---|
| 97 | move.l __thebpb,R8
|
---|
| 98 | move 24(R8),-(sp)
|
---|
| 99 | move.l #__b_tbuf,-(sp)
|
---|
| 100 | clr -(sp)
|
---|
| 101 | move #4,-(sp)
|
---|
| 102 | jsr _trap13
|
---|
| 103 | adda.l #12,sp
|
---|
| 104 | move.l R0,-4(R14)
|
---|
| 105 | beq L7
|
---|
| 106 | *line 111
|
---|
| 107 | *line 112
|
---|
| 108 | move #-1,__b_trak
|
---|
| 109 | *line 113
|
---|
| 110 | move #-1,__b_side
|
---|
| 111 | *line 114
|
---|
| 112 | move.l -4(R14),R0
|
---|
| 113 | bra L1
|
---|
| 114 | *line 115
|
---|
| 115 | *line 116
|
---|
| 116 | L7:
|
---|
| 117 | *line 117
|
---|
| 118 | move R6,__b_trak
|
---|
| 119 | *line 118
|
---|
| 120 | move R5,__b_side
|
---|
| 121 | *line 119
|
---|
| 122 | *line 120
|
---|
| 123 | L6:
|
---|
| 124 | *line 121
|
---|
| 125 | move #512,(sp)
|
---|
| 126 | move R4,R0
|
---|
| 127 | move #9,R1
|
---|
| 128 | asl R1,R0
|
---|
| 129 | ext.l R0
|
---|
| 130 | add.l #__b_tbuf,R0
|
---|
| 131 | move.l R0,-(sp)
|
---|
| 132 | move.l R13,-(sp)
|
---|
| 133 | jsr _memcpy
|
---|
| 134 | addq.l #8,sp
|
---|
| 135 | *line 122
|
---|
| 136 | clr.l R0
|
---|
| 137 | bra L1
|
---|
| 138 | L1:tst.l (sp)+
|
---|
| 139 | movem.l (sp)+,R4-R7/R13-R13
|
---|
| 140 | unlk R14
|
---|
| 141 | rts
|
---|
| 142 | .globl _blkrd
|
---|
| 143 | .text
|
---|
| 144 | _blkrd:
|
---|
| 145 | ~~blkrd:
|
---|
| 146 | ~fcp=R13
|
---|
| 147 | ~buf=R12
|
---|
| 148 | ~ns=R7
|
---|
| 149 | link R14,#0
|
---|
| 150 | movem.l R4-R7/R12-R13,-(sp)
|
---|
| 151 | ~brc=R6
|
---|
| 152 | ~rb=R5
|
---|
| 153 | *line 146
|
---|
| 154 | move.l 8(R14),R13
|
---|
| 155 | *line 146
|
---|
| 156 | move.l 12(R14),R12
|
---|
| 157 | *line 146
|
---|
| 158 | move 16(R14),R7
|
---|
| 159 | *line 146
|
---|
| 160 | *line 147
|
---|
| 161 | tst R7
|
---|
| 162 | bge L9
|
---|
| 163 | *line 147
|
---|
| 164 | move R7,R0
|
---|
| 165 | bra L8
|
---|
| 166 | *line 148
|
---|
| 167 | L9:
|
---|
| 168 | *line 149
|
---|
| 169 | bra L12
|
---|
| 170 | L11:
|
---|
| 171 | *line 150
|
---|
| 172 | *line 155
|
---|
| 173 | *line 156
|
---|
| 174 | *line 157
|
---|
| 175 | *line 158
|
---|
| 176 | *line 158
|
---|
| 177 | move.l 44(R13),R0
|
---|
| 178 | move R0,(sp)
|
---|
| 179 | move.l R12,-(sp)
|
---|
| 180 | jsr __secrd
|
---|
| 181 | addq.l #4,sp
|
---|
| 182 | move.l R0,R6
|
---|
| 183 | beq L13
|
---|
| 184 | *line 161
|
---|
| 185 | *line 162
|
---|
| 186 | *line 163
|
---|
| 187 | move.l R6,__berrno
|
---|
| 188 | *line 164
|
---|
| 189 | move #5,_errno
|
---|
| 190 | *line 165
|
---|
| 191 | move R7,R0
|
---|
| 192 | bra L8
|
---|
| 193 | *line 166
|
---|
| 194 | *line 167
|
---|
| 195 | L13:
|
---|
| 196 | *line 168
|
---|
| 197 | *line 168
|
---|
| 198 | move.l #__thefat,(sp)
|
---|
| 199 | move.l __thebpb,-(sp)
|
---|
| 200 | move.l R13,-(sp)
|
---|
| 201 | jsr __nsic
|
---|
| 202 | addq.l #8,sp
|
---|
| 203 | move R0,R5
|
---|
| 204 | beq L14
|
---|
| 205 | *line 169
|
---|
| 206 | *line 170
|
---|
| 207 | *line 171
|
---|
| 208 | cmp #-1,R5
|
---|
| 209 | bne L15
|
---|
| 210 | *line 171
|
---|
| 211 | move #5,_errno
|
---|
| 212 | *line 172
|
---|
| 213 | L15:
|
---|
| 214 | *line 173
|
---|
| 215 | move R7,R0
|
---|
| 216 | bra L8
|
---|
| 217 | *line 174
|
---|
| 218 | *line 175
|
---|
| 219 | L14:
|
---|
| 220 | *line 176
|
---|
| 221 | move.l __thebpb,R8
|
---|
| 222 | clr R0
|
---|
| 223 | move (R8),R0
|
---|
| 224 | swap R0
|
---|
| 225 | clr R0
|
---|
| 226 | swap R0
|
---|
| 227 | add.l R0,R12
|
---|
| 228 | L12:
|
---|
| 229 | *line 177
|
---|
| 230 | move R7,R0
|
---|
| 231 | sub #1,R7
|
---|
| 232 | tst R0
|
---|
| 233 | bne L11
|
---|
| 234 | L10:
|
---|
| 235 | *line 179
|
---|
| 236 | clr R0
|
---|
| 237 | bra L8
|
---|
| 238 | L8:tst.l (sp)+
|
---|
| 239 | movem.l (sp)+,R5-R7/R12-R13
|
---|
| 240 | unlk R14
|
---|
| 241 | rts
|
---|
| 242 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.