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

Added more debug hooks [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/partmain.asm

    r111 r117  
    11221122
    11231123IFDEF   AUX_DEBUG
    1124     pusha
    1125     mov     si,offset [ptetb]
    1126     call    AuxIO_Print
    1127     call    DEBUG_DumpRegisters
    1128     call    AuxIO_TeletypeNL
    1129     mov     ax, word ptr [FreeDriveletterMap+00h]
    1130     mov     dx, word ptr [FreeDriveletterMap+02h]
    1131     call    AuxIO_TeletypeBinDWord
    1132     popa
     1124        IF 1
     1125        pushf
     1126        pusha
     1127            mov     si,offset [ptetb]
     1128            call    AuxIO_Print
     1129            call    DEBUG_DumpRegisters
     1130            call    AuxIO_TeletypeNL
     1131            mov     ax, word ptr [FreeDriveletterMap+00h]
     1132            mov     dx, word ptr [FreeDriveletterMap+02h]
     1133            call    AuxIO_TeletypeBinDWord
     1134        popa
     1135        popf
     1136        ENDIF
    11331137ENDIF
    11341138
     
    19691973
    19701974IFDEF   AUX_DEBUG
    1971     pusha
    1972     call    AuxIO_TeletypeNL
    1973     mov     bx, [PhysDiskBpbIndex]
    1974     inc     bx
    1975     mov     al, [di+bx]
    1976     call    AuxIO_TeletypeHexByte
    1977     mov     bl,[BootPartNo]
    1978     mov     al, [DriveLetters+bx]
    1979     call    AuxIO_TeletypeHexByte
    1980     mov     al, [PartitionVolumeLetters+bx]
    1981     add     al, 3dh
    1982     call    AuxIO_TeletypeHexByte
    1983     mov     al, [LVMdl]
    1984     add     al, 3dh
    1985     call    AuxIO_TeletypeHexByte
    1986     mov     al, [si+LocIPT_SystemID]
    1987     call    AuxIO_TeletypeHexByte
    1988     mov     al,[FSType]
    1989     call    AuxIO_TeletypeHexByte
    1990     popa
     1975        IF 1
     1976        pushf
     1977        pusha
     1978            call    AuxIO_TeletypeNL
     1979            mov     bx, [PhysDiskBpbIndex]
     1980            inc     bx
     1981            mov     al, [di+bx]
     1982            call    AuxIO_TeletypeHexByte
     1983            mov     bl,[BootPartNo]
     1984            mov     al, [DriveLetters+bx]
     1985            call    AuxIO_TeletypeHexByte
     1986            mov     al, [PartitionVolumeLetters+bx]
     1987            add     al, 3dh
     1988            call    AuxIO_TeletypeHexByte
     1989            mov     al, [LVMdl]
     1990            add     al, 3dh
     1991            call    AuxIO_TeletypeHexByte
     1992            mov     al, [si+LocIPT_SystemID]
     1993            call    AuxIO_TeletypeHexByte
     1994            mov     al,[FSType]
     1995            call    AuxIO_TeletypeHexByte
     1996        popa
     1997        popf
     1998        ENDIF
    19911999ENDIF
    19922000
     
    21052113
    21062114
    2107     IFDEF   AUX_DEBUG
     2115IFDEF   AUX_DEBUG
     2116        IF 1
     2117        pushf
    21082118        pusha
    2109         call    DEBUG_Dump2
    2110         ;~ call    DEBUG_DumpBSSSectors
    2111         call    DEBUG_DumpDriveLetters
    2112         call    DEBUG_DumpVolumeLetters
    2113         call    AuxIO_TeletypeNL
     2119            call    DEBUG_Dump2
     2120            ;~ call    DEBUG_DumpBSSSectors
     2121            call    DEBUG_DumpDriveLetters
     2122            call    DEBUG_DumpVolumeLetters
     2123            call    AuxIO_TeletypeNL
    21142124        popa
    2115     ENDIF
     2125        popf
     2126        ENDIF
     2127ENDIF
    21162128
    21172129
Note: See TracChangeset for help on using the changeset viewer.