Changeset 91


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

Dump Disk Information (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/debug.asm

    r90 r91  
    326326; Dump some disk information.
    327327;
    328 IF  0
     328IF  1
    329329ddi     db  10,'DumpDiskInfo:',10,0
    330330DEBUG_DumpDiskInfo          Proc
     
    332332        pusha
    333333
    334         add     al, 50h                 ; ASCII '0' to BIOS 80h, '1'->81h, etc.
     334        ; ASCII '0' to BIOS 80h, '1'->81h, etc.
     335        add     al, 50h
    335336
    336337        mov     si, offset [ddi]
    337338        call    AuxIO_Print
    338339
     340        ; Print disk-number
    339341        call    AuxIO_TeletypeHexByte
    340342        call    AuxIO_TeletypeNL
     343
     344        ; Show disk parameters (legacy version)
     345        pusha
     346            mov     dl, al
     347            mov     ah, 08h
     348            int     13h
     349            call    DEBUG_DumpRegisters
     350        popa
     351
     352        ; Show status of last operation
     353        pusha
     354            mov     dl, al
     355            mov     ah, 01
     356            int     13h
     357            mov     al, ah
     358            call    AuxIO_TeletypeHexByte
     359            call    AuxIO_TeletypeNL
     360        popa
    341361
    342362        popa
     
    708728    pushf
    709729    pusha
    710     call    DEBUG_Test_CONV_BinToPBCD
     730    ;~ call    DEBUG_Test_CONV_BinToPBCD
    711731    ;~ call    DEBUG_Test_MATH_Mul32
    712732    popa
     
    725745; Test the packed BCD conversion function.
    726746;
    727 IF 1
     747IF 0
    728748db_testbin2pbcd db "## TEST BIN2PBCD ##",10,0
    729749DEBUG_Test_CONV_BinToPBCD   Proc
Note: See TracChangeset for help on using the changeset viewer.