Ignore:
Timestamp:
Apr 8, 2017, 12:27:09 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Updated debug hooks (debugging) [v1.1.1-testing]

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/regular/partscan.asm

    r96 r111  
    2929
    3030PARTSCAN_ScanForPartitions      Proc Near
     31
     32IFDEF   AUX_DEBUG
     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
     43            ;~ call    DEBUG_DumpRegisters
     44            ;~ call    AuxIO_DumpParagraph
     45            ;~ call    AuxIO_TeletypeNL
     46        popa
     47        popf
     48        ENDIF
     49ENDIF
     50
    3151        ; Reset X-Reference
    3252        call    PARTSCAN_ResetXref
     
    119139;
    120140PARTSCAN_UpdateDriveLetters     Proc
     141
     142IFDEF   AUX_DEBUG
     143        IF 0
     144        pushf
     145        pusha
     146            push    si
     147            mov     si, offset $+5
     148            jmp     @F
     149            db      10,'PARTSCAN_UpdateDriveLetters:',10,0
     150            @@:
     151            call    AuxIO_Print
     152            pop     si
     153            ;~ call    DEBUG_DumpRegisters
     154            ;~ call    AuxIO_DumpParagraph
     155            ;~ call    AuxIO_TeletypeNL
     156        popa
     157        popf
     158        ENDIF
     159ENDIF
     160
    121161        pusha
    122162        xor     bx,bx           ; index-pointer
     
    188228; falls eine Extended Partition (DOS) gefunden wird, wird erneut gescannt.
    189229PARTSCAN_ScanDriveForPartitions Proc Near
     230
     231IFDEF   AUX_DEBUG
     232        IF 0
     233        pushf
     234        pusha
     235            push    si
     236            mov     si, offset $+5
     237            jmp     @F
     238            db      10,'PARTSCAN_ScanDriveForPartitions:',10,0
     239            @@:
     240            call    AuxIO_Print
     241            pop     si
     242            ;~ call    DEBUG_DumpRegisters
     243            ;~ call    AuxIO_DumpParagraph
     244            ;~ call    AuxIO_TeletypeNL
     245        popa
     246        popf
     247        ENDIF
     248ENDIF
     249
    190250        xor     ax, ax
    191251        xor     bx, bx     ; Location Absoluter Sektor 0
     
    218278; be set to this location and Carry will be set
    219279PARTSCAN_ScanPartitionForExtended Proc Near  Uses si
     280
     281IFDEF   AUX_DEBUG
     282        IF 0
     283        pushf
     284        pusha
     285            push    si
     286            mov     si, offset $+5
     287            jmp     @F
     288            db      10,'PARTSCAN_ScanPartitionForExtended:',10,0
     289            @@:
     290            call    AuxIO_Print
     291            pop     si
     292            ;~ call    DEBUG_DumpRegisters
     293            ;~ call    AuxIO_DumpParagraph
     294            ;~ call    AuxIO_TeletypeNL
     295        popa
     296        popf
     297        ENDIF
     298ENDIF
     299
    220300        mov     si, offset PartitionSector+446 ; DS:SI - 1st partition entry
    221301        xor     ax, ax
     
    254334; The following routines have NOT *DS* set to CS, so we must address via ES
    255335PARTSCAN_ScanPartition          Proc Near  Uses ax si
     336
     337IFDEF   AUX_DEBUG
     338        IF 0
     339        pushf
     340        pusha
     341            push    si
     342            mov     si, offset $+5
     343            jmp     @F
     344            db      10,'PARTSCAN_ScanPartition:',10,0
     345            @@:
     346            call    AuxIO_Print
     347            pop     si
     348            ;~ call    DEBUG_DumpRegisters
     349            ;~ call    AuxIO_DumpParagraph
     350            ;~ call    AuxIO_TeletypeNL
     351        popa
     352        popf
     353        ENDIF
     354ENDIF
     355
     356
    256357        mov     si, offset PartitionSector+446 ; DS:SI - 1st Partition-Entry
    257358    PSSP_ScanLoop:
     
    316417;        In: SI - Points to Partition-Entry (16-Bytes)
    317418PARTSCAN_CheckThisPartition     Proc Near  Uses di si
     419
     420IFDEF   AUX_DEBUG
     421        IF 0
     422        pushf
     423        pusha
     424            push    si
     425            mov     si, offset $+5
     426            jmp     @F
     427            db      10,'PARTSCAN_CheckThisPartition:',10,0
     428            @@:
     429            call    AuxIO_Print
     430            pop     si
     431            ;~ call    DEBUG_DumpRegisters
     432            ;~ call    AuxIO_DumpParagraph
     433            ;~ call    AuxIO_TeletypeNL
     434        popa
     435        popf
     436        ENDIF
     437ENDIF
     438
    318439        local   PartSystemID:byte, PartTypeFlags:byte
    319440        local   PartCRC:word, PartPtr:word
Note: See TracChangeset for help on using the changeset viewer.