[7bf3856] | 1 | .globl _Cbuffs
|
---|
| 2 | .globl _Stdbufs
|
---|
| 3 | .globl _Stdbuf
|
---|
| 4 | .globl _chantab
|
---|
| 5 | .globl _Wrkbuf
|
---|
| 6 | .bss
|
---|
| 7 | L1:.ds.b 4
|
---|
| 8 | .text
|
---|
| 9 | .globl _B_fhdr
|
---|
| 10 | .comm _B_fhdr,28
|
---|
| 11 | .globl _B_txt_o
|
---|
| 12 | .comm _B_txt_o,4
|
---|
| 13 | .globl _B_dat_o
|
---|
| 14 | .comm _B_dat_o,4
|
---|
| 15 | .globl _B_bss_o
|
---|
| 16 | .comm _B_bss_o,4
|
---|
| 17 | .globl _B_txt_l
|
---|
| 18 | .comm _B_txt_l,4
|
---|
| 19 | .globl _B_dat_l
|
---|
| 20 | .comm _B_dat_l,4
|
---|
| 21 | .globl _B_bss_l
|
---|
| 22 | .comm _B_bss_l,4
|
---|
| 23 | .globl _B_lod_l
|
---|
| 24 | .comm _B_lod_l,4
|
---|
| 25 | .globl _B_end
|
---|
| 26 | .comm _B_end,4
|
---|
| 27 | .globl _B_chk
|
---|
| 28 | .comm _B_chk,4
|
---|
| 29 | .globl _B_buf_a
|
---|
| 30 | .comm _B_buf_a,4
|
---|
| 31 | .globl _B_log_s
|
---|
| 32 | .comm _B_log_s,2
|
---|
| 33 | .globl _B_dbg_s
|
---|
| 34 | .comm _B_dbg_s,2
|
---|
| 35 | .globl _booter
|
---|
| 36 | .text
|
---|
| 37 | _booter:
|
---|
| 38 | ~~booter:
|
---|
| 39 | ~fn=8
|
---|
| 40 | ~textadr=12
|
---|
| 41 | link R14,#0
|
---|
| 42 | movem.l R4-R7/R12-R13,-(sp)
|
---|
| 43 | ~i=R7
|
---|
| 44 | ~bgnbss=R6
|
---|
| 45 | ~endbss=R5
|
---|
| 46 | ~cp=R13
|
---|
| 47 | ~fcp=R12
|
---|
| 48 | *line 68
|
---|
| 49 | clr.l _B_txt_o
|
---|
| 50 | *line 69
|
---|
| 51 | clr.l _B_dat_o
|
---|
| 52 | *line 70
|
---|
| 53 | clr.l _B_bss_o
|
---|
| 54 | *line 71
|
---|
| 55 | clr.l _B_txt_l
|
---|
| 56 | *line 72
|
---|
| 57 | clr.l _B_dat_l
|
---|
| 58 | *line 73
|
---|
| 59 | clr.l _B_bss_l
|
---|
| 60 | *line 74
|
---|
| 61 | clr.l _B_lod_l
|
---|
| 62 | *line 78
|
---|
| 63 | *line 78
|
---|
| 64 | move.l #L3,(sp)
|
---|
| 65 | move.l 8(R14),-(sp)
|
---|
| 66 | jsr _fopenb
|
---|
| 67 | addq.l #4,sp
|
---|
| 68 | move.l R0,L1
|
---|
| 69 | bne L4
|
---|
| 70 | *line 79
|
---|
| 71 | *line 80
|
---|
| 72 | *line 81
|
---|
| 73 | *line 82
|
---|
| 74 | tst _B_log_s
|
---|
| 75 | beq L5
|
---|
| 76 | *line 82
|
---|
| 77 | move.l 8(R14),(sp)
|
---|
| 78 | move.l #L6,-(sp)
|
---|
| 79 | jsr _printf
|
---|
| 80 | addq.l #4,sp
|
---|
| 81 | *line 83
|
---|
| 82 | L5:
|
---|
| 83 | *line 84
|
---|
| 84 | move #1,R0
|
---|
| 85 | bra L2
|
---|
| 86 | *line 85
|
---|
| 87 | *line 86
|
---|
| 88 | *line 87
|
---|
| 89 | L4:
|
---|
| 90 | *line 88
|
---|
| 91 | *line 88
|
---|
| 92 | tst _B_dbg_s
|
---|
| 93 | beq L7
|
---|
| 94 | *line 89
|
---|
| 95 | *line 90
|
---|
| 96 | move.l L1,R8
|
---|
| 97 | move.b 13(R8),R0
|
---|
| 98 | ext.w R0
|
---|
| 99 | muls #12,R0
|
---|
| 100 | add.l #_chantab,R0
|
---|
| 101 | move.l R0,R8
|
---|
| 102 | move.l 8(R8),R12
|
---|
| 103 | *line 91
|
---|
| 104 | *line 92
|
---|
| 105 | move.l R12,(sp)
|
---|
| 106 | jsr _SnapFCB
|
---|
| 107 | *line 93
|
---|
| 108 | move.l R12,(sp)
|
---|
| 109 | jsr _ClusMap
|
---|
| 110 | *line 94
|
---|
| 111 | jsr _waitcr
|
---|
| 112 | *line 95
|
---|
| 113 | *line 96
|
---|
| 114 | *line 97
|
---|
| 115 | *line 98
|
---|
| 116 | *line 99
|
---|
| 117 | L7:
|
---|
| 118 | *line 100
|
---|
| 119 | *line 100
|
---|
| 120 | move.l L1,(sp)
|
---|
| 121 | move #1,-(sp)
|
---|
| 122 | move #28,-(sp)
|
---|
| 123 | move.l #_B_fhdr,-(sp)
|
---|
| 124 | jsr _fread
|
---|
| 125 | addq.l #8,sp
|
---|
| 126 | cmp #1,R0
|
---|
| 127 | beq L8
|
---|
| 128 | *line 101
|
---|
| 129 | *line 102
|
---|
| 130 | *line 103
|
---|
| 131 | *line 104
|
---|
| 132 | tst _B_log_s
|
---|
| 133 | beq L9
|
---|
| 134 | *line 104
|
---|
| 135 | move.l 8(R14),(sp)
|
---|
| 136 | move.l #L10,-(sp)
|
---|
| 137 | jsr _printf
|
---|
| 138 | addq.l #4,sp
|
---|
| 139 | *line 105
|
---|
| 140 | L9:
|
---|
| 141 | *line 106
|
---|
| 142 | move.l L1,(sp)
|
---|
| 143 | jsr _fclose
|
---|
| 144 | *line 107
|
---|
| 145 | move #2,R0
|
---|
| 146 | bra L2
|
---|
| 147 | *line 108
|
---|
| 148 | *line 109
|
---|
| 149 | *line 110
|
---|
| 150 | *line 111
|
---|
| 151 | L8:
|
---|
| 152 | *line 112
|
---|
| 153 | *line 112
|
---|
| 154 | cmp #24602,_B_fhdr
|
---|
| 155 | beq L11
|
---|
| 156 | cmp #24603,_B_fhdr
|
---|
| 157 | beq L11
|
---|
| 158 | *line 113
|
---|
| 159 | *line 114
|
---|
| 160 | *line 115
|
---|
| 161 | *line 116
|
---|
| 162 | tst _B_log_s
|
---|
| 163 | beq L12
|
---|
| 164 | *line 117
|
---|
| 165 | move.l 8(R14),(sp)
|
---|
| 166 | move _B_fhdr,-(sp)
|
---|
| 167 | move.l #L13,-(sp)
|
---|
| 168 | jsr _printf
|
---|
| 169 | addq.l #6,sp
|
---|
| 170 | *line 118
|
---|
| 171 | L12:
|
---|
| 172 | *line 119
|
---|
| 173 | move.l L1,(sp)
|
---|
| 174 | jsr _fclose
|
---|
| 175 | *line 120
|
---|
| 176 | move #3,R0
|
---|
| 177 | bra L2
|
---|
| 178 | *line 121
|
---|
| 179 | *line 122
|
---|
| 180 | *line 123
|
---|
| 181 | *line 124
|
---|
| 182 | *line 125
|
---|
| 183 | *line 126
|
---|
| 184 | *line 127
|
---|
| 185 | L11:
|
---|
| 186 | *line 128
|
---|
| 187 | *line 128
|
---|
| 188 | cmp #24603,_B_fhdr
|
---|
| 189 | bne L14
|
---|
| 190 | *line 129
|
---|
| 191 | *line 130
|
---|
| 192 | move.l L1,(sp)
|
---|
| 193 | jsr _getl
|
---|
| 194 | move.l R0,_B_dat_o
|
---|
| 195 | *line 131
|
---|
| 196 | move.l L1,(sp)
|
---|
| 197 | jsr _getl
|
---|
| 198 | move.l R0,_B_bss_o
|
---|
| 199 | *line 132
|
---|
| 200 | *line 133
|
---|
| 201 | L14:
|
---|
| 202 | *line 134
|
---|
| 203 | move.l 22+_B_fhdr,_B_txt_o
|
---|
| 204 | *line 136
|
---|
| 205 | tst.l 12(R14)
|
---|
| 206 | beq L10000
|
---|
| 207 | move.l 12(R14),R0
|
---|
| 208 | bra L10002
|
---|
| 209 | L10000:move.l _B_txt_o,R0
|
---|
| 210 | L10002:move.l R0,_B_buf_a
|
---|
| 211 | *line 137
|
---|
| 212 | move.l 2+_B_fhdr,R0
|
---|
| 213 | add.l 6+_B_fhdr,R0
|
---|
| 214 | move.l R0,_B_lod_l
|
---|
| 215 | *line 139
|
---|
| 216 | *line 139
|
---|
| 217 | move.l L1,(sp)
|
---|
| 218 | move.l _B_lod_l,-(sp)
|
---|
| 219 | move.l _B_buf_a,-(sp)
|
---|
| 220 | jsr _flread
|
---|
| 221 | addq.l #8,sp
|
---|
| 222 | tst R0
|
---|
| 223 | beq L15
|
---|
| 224 | *line 140
|
---|
| 225 | *line 141
|
---|
| 226 | *line 142
|
---|
| 227 | *line 143
|
---|
| 228 | tst _B_log_s
|
---|
| 229 | beq L16
|
---|
| 230 | *line 143
|
---|
| 231 | move.l 8(R14),(sp)
|
---|
| 232 | move.l #L17,-(sp)
|
---|
| 233 | jsr _printf
|
---|
| 234 | addq.l #4,sp
|
---|
| 235 | *line 144
|
---|
| 236 | L16:
|
---|
| 237 | *line 145
|
---|
| 238 | move.l L1,(sp)
|
---|
| 239 | jsr _fclose
|
---|
| 240 | *line 146
|
---|
| 241 | move #4,R0
|
---|
| 242 | bra L2
|
---|
| 243 | *line 147
|
---|
| 244 | *line 148
|
---|
| 245 | L15:
|
---|
| 246 | *line 149
|
---|
| 247 | move.l _B_buf_a,R0
|
---|
| 248 | add.l _B_lod_l,R0
|
---|
| 249 | sub.l #$1,R0
|
---|
| 250 | move.l R0,_B_end
|
---|
| 251 | *line 151
|
---|
| 252 | move.l 2+_B_fhdr,_B_txt_l
|
---|
| 253 | *line 152
|
---|
| 254 | move.l 6+_B_fhdr,_B_dat_l
|
---|
| 255 | *line 153
|
---|
| 256 | move.l 10+_B_fhdr,_B_bss_l
|
---|
| 257 | *line 155
|
---|
| 258 | move.l _B_buf_a,R13
|
---|
| 259 | *line 156
|
---|
| 260 | clr.l _B_chk
|
---|
| 261 | *line 158
|
---|
| 262 | clr.l R7
|
---|
| 263 | bra L20
|
---|
| 264 | L21:
|
---|
| 265 | *line 159
|
---|
| 266 | move.b (R13)+,R0
|
---|
| 267 | ext.w R0
|
---|
| 268 | ext.l R0
|
---|
| 269 | and.l #$ff,R0
|
---|
| 270 | add.l R0,_B_chk
|
---|
| 271 | L19:
|
---|
| 272 | *line 158
|
---|
| 273 | add.l #$1,R7
|
---|
| 274 | L20:
|
---|
| 275 | *line 158
|
---|
| 276 | cmp.l _B_lod_l,R7
|
---|
| 277 | blt L21
|
---|
| 278 | L18:
|
---|
| 279 | *line 161
|
---|
| 280 | *line 162
|
---|
| 281 | tst.l _B_bss_o
|
---|
| 282 | beq L22
|
---|
| 283 | *line 162
|
---|
| 284 | move.l _B_bss_o,R6
|
---|
| 285 | *line 163
|
---|
| 286 | bra L23
|
---|
| 287 | L22:
|
---|
| 288 | *line 164
|
---|
| 289 | move.l _B_end,R6
|
---|
| 290 | add.l #$1,R6
|
---|
| 291 | L23:
|
---|
| 292 | *line 166
|
---|
| 293 | move.l R6,R5
|
---|
| 294 | add.l _B_bss_l,R5
|
---|
| 295 | sub.l #$1,R5
|
---|
| 296 | *line 169
|
---|
| 297 | *line 169
|
---|
| 298 | tst _B_log_s
|
---|
| 299 | beq L24
|
---|
| 300 | *line 170
|
---|
| 301 | *line 171
|
---|
| 302 | *line 172
|
---|
| 303 | move.l _B_end,(sp)
|
---|
| 304 | move.l _B_buf_a,-(sp)
|
---|
| 305 | move.l 8(R14),-(sp)
|
---|
| 306 | move.l #L25,-(sp)
|
---|
| 307 | jsr _printf
|
---|
| 308 | adda.l #12,sp
|
---|
| 309 | *line 173
|
---|
| 310 | move.l R5,(sp)
|
---|
| 311 | move.l R6,-(sp)
|
---|
| 312 | move.l #L26,-(sp)
|
---|
| 313 | jsr _printf
|
---|
| 314 | addq.l #8,sp
|
---|
| 315 | *line 174
|
---|
| 316 | *line 175
|
---|
| 317 | move.l _B_lod_l,(sp)
|
---|
| 318 | move.l _B_lod_l,-(sp)
|
---|
| 319 | move.l _B_chk,-(sp)
|
---|
| 320 | move.l #L27,-(sp)
|
---|
| 321 | jsr _printf
|
---|
| 322 | adda.l #12,sp
|
---|
| 323 | *line 176
|
---|
| 324 | *line 177
|
---|
| 325 | move.l _B_bss_o,(sp)
|
---|
| 326 | move.l _B_dat_o,-(sp)
|
---|
| 327 | move.l _B_txt_o,-(sp)
|
---|
| 328 | move.l #L28,-(sp)
|
---|
| 329 | jsr _printf
|
---|
| 330 | adda.l #12,sp
|
---|
| 331 | *line 178
|
---|
| 332 | *line 179
|
---|
| 333 | move.l _B_bss_l,(sp)
|
---|
| 334 | move.l _B_dat_l,-(sp)
|
---|
| 335 | move.l _B_txt_l,-(sp)
|
---|
| 336 | move.l #L29,-(sp)
|
---|
| 337 | jsr _printf
|
---|
| 338 | adda.l #12,sp
|
---|
| 339 | *line 180
|
---|
| 340 | *line 181
|
---|
| 341 | *line 182
|
---|
| 342 | L24:
|
---|
| 343 | *line 183
|
---|
| 344 | move.l L1,(sp)
|
---|
| 345 | jsr _fclose
|
---|
| 346 | *line 184
|
---|
| 347 | clr R0
|
---|
| 348 | bra L2
|
---|
| 349 | L2:tst.l (sp)+
|
---|
| 350 | movem.l (sp)+,R5-R7/R12-R13
|
---|
| 351 | unlk R14
|
---|
| 352 | rts
|
---|
| 353 | .data
|
---|
| 354 | L3:.dc.b $72,$0
|
---|
| 355 | L6:.dc.b $62,$6F,$6F,$74,$65,$72,$3A,$20,$20,$55,$6E,$61,$62,$6C,$65,$20,$74,$6F,$20,$6F,$70,$65,$6E,$20,$22,$25,$73,$22,$A,$0
|
---|
| 356 | L10:.dc.b $62,$6F,$6F,$74,$65,$72,$3A,$20,$20,$55,$6E,$61,$62,$6C,$65,$20,$74,$6F,$20,$72,$65,$61,$64,$20,$68,$65,$61,$64,$65,$72
|
---|
| 357 | .dc.b $20,$66,$6F,$72,$20,$22,$25,$73,$22,$A,$0
|
---|
| 358 | L13:.dc.b $62,$6F,$6F,$74,$65,$72,$3A,$20,$20,$42,$61,$64,$20,$6D,$61,$67,$69,$63,$20,$5B,$30,$78,$25,$30,$34,$78,$5D,$20,$69,$6E
|
---|
| 359 | .dc.b $20,$66,$69,$6C,$65,$20,$22,$25,$73,$22,$0
|
---|
| 360 | L17:.dc.b $62,$6F,$6F,$74,$65,$72,$3A,$20,$20,$55,$6E,$61,$62,$6C,$65,$20,$74,$6F,$20,$72,$65,$61,$64,$20,$22,$25,$73,$22,$A,$0
|
---|
| 361 | L25:.dc.b $46,$69,$6C,$65,$20,$22,$25,$73,$22,$20,$6C,$6F,$61,$64,$65,$64,$20,$66,$72,$6F,$6D,$20,$24,$25,$30,$38,$6C,$58,$20,$74
|
---|
| 362 | .dc.b $6F,$20,$24,$25,$30,$38,$6C,$58,$D,$A,$0
|
---|
| 363 | L26:.dc.b $20,$20,$20,$42,$53,$53,$20,$24,$25,$30,$38,$6C,$58,$20,$74,$6F,$20,$24,$25,$30,$38,$6C,$58,$D,$A,$0
|
---|
| 364 | L27:.dc.b $43,$68,$65,$63,$6B,$73,$75,$6D,$20,$20,$20,$3D,$20,$24,$25,$30,$38,$6C,$58,$2C,$20,$4C,$6F,$61,$64,$20,$6C,$65,$6E,$67
|
---|
| 365 | .dc.b $74,$68,$20,$3D,$20,$25,$6C,$64,$20,$28,$24,$25,$30,$38,$6C,$58,$29,$D,$A,$0
|
---|
| 366 | L28:.dc.b $20,$20,$20,$42,$5F,$74,$78,$74,$5F,$6F,$20,$3D,$20,$24,$25,$30,$38,$6C,$58,$2C,$20,$42,$5F,$64,$61,$74,$5F,$6F,$20,$3D
|
---|
| 367 | .dc.b $20,$24,$25,$30,$38,$6C,$58,$2C,$20,$42,$5F,$62,$73,$73,$5F,$6F,$20,$3D,$20,$24,$25,$30,$38,$6C,$58,$D,$A,$0
|
---|
| 368 | L29:.dc.b $20,$20,$20,$42,$5F,$74,$78,$74,$5F,$6C,$20,$3D,$20,$24,$25,$30,$38,$6C,$58,$2C,$20,$42,$5F,$64,$61,$74,$5F,$6C,$20,$3D
|
---|
| 369 | .dc.b $20,$24,$25,$30,$38,$6C,$58,$2C,$20,$42,$5F,$62,$73,$73,$5F,$6C,$20,$3D,$20,$24,$25,$30,$38,$6C,$58,$D,$A,$0
|
---|