Changeset 241


Ignore:
Timestamp:
Jul 8, 2018, 7:40:40 PM (7 years ago)
Author:
Ben Rietbroek
Message:

Made label-positions for pre-boot disk-info adjustable [v1.1.5-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.4-manual.pdf

File:
1 edited

Legend:

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

    r178 r241  
    786786        jmp     @F
    787787
    788         ; We like to have these local for now
     788
     789    ; Label positions for disk information in preboot-menu
     790    VideoIO_DisplayDiskInfo_labpos  db  0, 5, 17, 26, 36, 46, 56, 61, 71
     791
     792    ; Label names for disk information in preboot-menu
    789793    VideoIO_DisplayDiskInfo_labels  db  'DISK '
    790794                                    db  'SECTORS_LBA '
     
    798802                                    db  0
    799803
     804
    800805    ; Display disk information on the pre-MENU screen
    801806    @@:
     
    830835        add     dl, 80h
    831836
     837        ; Pointer to label positions
     838        mov si, offset VideoIO_DisplayDiskInfo_labpos
     839
     840
    832841        ; Position on start of next line
    833842        inc     [TextPosY]
    834         mov     [TextPosX], 0
     843        lodsb
     844        mov     [TextPosX], al
    835845
    836846        ; Show a bright star if this is the BIOS boot-disk
     
    856866
    857867        ; Show disk size in LBA sectors (hex) -------------------- [ LBA SECS ]
    858         mov     [TextPosX], 5
     868        lodsb
     869        mov     [TextPosX], al
    859870        mov     [TextColorFore], 06h            ; brown for >2TiB
    860871        mov     al, [bx+LocDISKINFO_I13X_SecsLBA+04h]
     
    877888
    878889        ; Show sector size (hex) ------------------------------ [ SECTOR SIZE ]
    879         mov     [TextPosX], 17
     890        lodsb
     891        mov     [TextPosX], al
    880892        mov     [TextColorFore], 06h            ; brown for != 512
    881893        mov     ax, [bx+LocDISKINFO_I13X_SecSize]
     
    890902
    891903        ; Show INT13 geometry (dec) ----------------------------- [ INT13 GEO ]
    892         mov     [TextPosX], 26
     904        lodsb
     905        mov     [TextPosX], al
    893906        mov     [TextColorFore], 04h            ; red for (0,0)
    894907        mov     dl, [bx+LocDISKINFO_I13_Secs]
     
    913926
    914927        ; Show INT13X geometry (dec) --------------------------- [ INT13X GEO ]
    915         mov     [TextPosX], 36
     928        lodsb
     929        mov     [TextPosX], al
    916930        mov     [TextColorFore], 04h            ; red for (0,0)
    917931        mov     dl, [bx+LocDISKINFO_I13X_Secs]
     
    936950
    937951        ; Show LVM geometery (dec)  ------------------------------- [ LVM GEO ]
    938         mov     [TextPosX], 46
     952        lodsb
     953        mov     [TextPosX], al
    939954        mov     [TextColorFore], 04h            ; red for (0,0)
    940955        mov     dl, [bx+LocDISKINFO_LVM_Secs]
     
    965980
    966981        ; Show host bus (4 chars) -------------------------------- [ HOST BUS ]
    967         mov     [TextPosX], 56
     982        lodsb
     983        mov     [TextPosX], al
    968984        mov     ax, [bx+LocDISKINFO_I13X_HostBus+00h]
    969985        mov     dx, [bx+LocDISKINFO_I13X_HostBus+02h]
     
    977993
    978994        ; Show interface (8 chars) ------------------------------ [ INTERFACE ]
    979         mov     [TextPosX], 61
     995        lodsb
     996        mov     [TextPosX], al
    980997        mov     ax, [bx+LocDISKINFO_I13X_Interface+00h]
    981998        mov     dx, [bx+LocDISKINFO_I13X_Interface+02h]
     
    9981015
    9991016        ; Show if disk is removable (YES/NO) -------------------- [ REMOVABLE ]
    1000         mov     [TextPosX], 71
     1017        lodsb
     1018        mov     [TextPosX], al
    10011019        mov     si, offset [No]
    10021020        mov     ax, [bx+LocDISKINFO_I13X_Flags]
Note: See TracChangeset for help on using the changeset viewer.