Changeset 123 for trunk/bootcode/regular/partscan.asm
- Timestamp:
- Apr 8, 2017, 12:27:22 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/partscan.asm
r119 r123 32 32 IFDEF AUX_DEBUG 33 33 IF 0 34 pushf 35 pusha 36 push si 37 mov si, offset $+5 38 jmp @F 39 db 10,'PARTSCAN_ScanForPartitions:',10,0 40 @@: 41 call AuxIO_Print 42 pop si 34 DBG_TEXT_OUT_AUX 'PARTSCAN_ScanForPartitions:' 35 PUSHRF 43 36 ;~ call DEBUG_DumpRegisters 44 37 ;~ call AuxIO_DumpParagraph 45 38 ;~ call AuxIO_TeletypeNL 46 popa 47 popf 39 POPRF 48 40 ENDIF 49 41 ENDIF … … 52 44 call PARTSCAN_ResetXref 53 45 54 mov dh, TotalHarddiscs46 mov dh, [TotalHarddiscs] 55 47 xor al, al 56 mov NewPartitions, al48 mov [NewPartitions], al 57 49 58 50 mov byte ptr [CurIO_Scanning], 1 ; Set flag due scanning partitions … … 86 78 ;! 87 79 IFDEF AUX_DEBUG 88 IF 1 89 pushf 90 pusha 91 push si 92 mov si, offset $+5 93 jmp @F 94 db 10,'[Master LVM Sector]',10,0 95 @@: 96 call AuxIO_Print 97 pop si 80 IF 0 81 DBG_TEXT_OUT_AUX '[Master LVM Sector]' 82 PUSHRF 98 83 xor bh, bh 99 84 mov bl, dl … … 104 89 mov ah, dl 105 90 call DEBUG_DumpRegisters 106 popa 107 popf 91 POPRF 108 92 ENDIF 109 93 ENDIF … … 201 185 IFDEF AUX_DEBUG 202 186 IF 0 203 pushf 204 pusha 205 push si 206 mov si, offset $+5 207 jmp @F 208 db 10,'PARTSCAN_UpdateDriveLetters:',10,0 209 @@: 210 call AuxIO_Print 211 pop si 187 DBG_TEXT_OUT_AUX 'PARTSCAN_UpdateDriveLetters:' 188 PUSHRF 212 189 ;~ call DEBUG_DumpRegisters 213 190 ;~ call AuxIO_DumpParagraph 214 191 ;~ call AuxIO_TeletypeNL 215 popa 216 popf 192 POPRF 217 193 ENDIF 218 194 ENDIF … … 290 266 IFDEF AUX_DEBUG 291 267 IF 0 292 pushf 293 pusha 294 push si 295 mov si, offset $+5 296 jmp @F 297 db 10,'PARTSCAN_ScanDriveForPartitions:',10,0 298 @@: 299 call AuxIO_Print 300 pop si 268 DBG_TEXT_OUT_AUX 'PARTSCAN_ScanDriveForPartitions:' 269 PUSHRF 301 270 ;~ call DEBUG_DumpRegisters 302 271 ;~ call AuxIO_DumpParagraph 303 272 ;~ call AuxIO_TeletypeNL 304 popa 305 popf 273 POPRF 306 274 ENDIF 307 275 ENDIF … … 340 308 IFDEF AUX_DEBUG 341 309 IF 0 342 pushf 343 pusha 344 push si 345 mov si, offset $+5 346 jmp @F 347 db 10,'PARTSCAN_ScanPartitionForExtended:',10,0 348 @@: 349 call AuxIO_Print 350 pop si 310 DBG_TEXT_OUT_AUX 'PARTSCAN_ScanPartitionForExtended:' 311 PUSHRF 351 312 ;~ call DEBUG_DumpRegisters 352 313 ;~ call AuxIO_DumpParagraph 353 314 ;~ call AuxIO_TeletypeNL 354 popa 355 popf 315 POPRF 356 316 ENDIF 357 317 ENDIF … … 396 356 IFDEF AUX_DEBUG 397 357 IF 0 398 pushf 399 pusha 400 push si 401 mov si, offset $+5 402 jmp @F 403 db 10,'PARTSCAN_ScanPartition:',10,0 404 @@: 405 call AuxIO_Print 406 pop si 358 DBG_TEXT_OUT_AUX 'PARTSCAN_ScanPartition:' 359 PUSHRF 407 360 ;~ call DEBUG_DumpRegisters 408 361 ;~ call AuxIO_DumpParagraph 409 362 ;~ call AuxIO_TeletypeNL 410 popa 411 popf 412 ENDIF 413 ENDIF 414 415 416 mov si, offset PartitionSector+446 ; DS:SI - 1st Partition-Entry 363 POPRF 364 ENDIF 365 ENDIF 366 367 368 mov si, offset [PartitionSector+446] ; DS:SI - 1st Partition-Entry 417 369 PSSP_ScanLoop: 418 370 mov al, bptr [si+LocBRPT_SystemID] … … 481 433 482 434 IFDEF AUX_DEBUG 483 IF 0 484 pushf 485 pusha 486 push si 487 mov si, offset $+5 488 jmp @F 489 db 10,'PARTSCAN_CheckThisPartition:',10,0 490 @@: 491 call AuxIO_Print 492 pop si 493 ;~ call DEBUG_DumpRegisters 435 IF 1 436 DBG_TEXT_OUT_AUX 'PARTSCAN_CheckThisPartition:' 437 PUSHRF 438 call DEBUG_DumpRegisters 494 439 ;~ call AuxIO_DumpParagraph 495 440 ;~ call AuxIO_TeletypeNL 496 popa 497 popf 441 POPRF 498 442 ENDIF 499 443 ENDIF … … 510 454 mov ax, wptr [si+LocBRPT_RelativeBegin] ; Absolute Sector 511 455 mov bx, wptr [si+LocBRPT_RelativeBegin+2] 456 457 458 459 512 460 add ax, wptr [CurPartition_Location+0] ; +Partition-Absolute 513 461 adc bx, wptr [CurPartition_Location+2] ; sectors 514 515 462 516 463 … … 575 522 mov si, offset [LVMSector] 576 523 524 IFDEF AUX_DEBUG 525 IF 0 526 DBG_TEXT_OUT_AUX 'LVMSector' 527 PUSHRF 528 call DEBUG_DumpRegisters 529 call AuxIO_DumpSector 530 ;~ call AuxIO_DumpParagraph 531 ;~ call AuxIO_TeletypeNL 532 POPRF 533 ENDIF 534 ENDIF 535 577 536 call LVM_SearchForPartition ; Search for DX:AX partition 578 537 … … 605 564 movsb ; (11 bytes in total) 606 565 pop di 566 567 568 569 IFDEF AUX_DEBUG 570 IF 0 571 DBG_TEXT_OUT_AUX 'LVMSector-2' 572 PUSHRF 573 mov si, di 574 call AuxIO_Print 575 ;~ call DEBUG_DumpRegisters 576 ;~ call AuxIO_DumpSector 577 ;~ call AuxIO_DumpParagraph 578 ;~ call AuxIO_TeletypeNL 579 POPRF 580 ENDIF 581 ENDIF 607 582 608 583
Note:
See TracChangeset
for help on using the changeset viewer.