Changeset 236


Ignore:
Timestamp:
Jul 7, 2018, 9:09:57 AM (7 years ago)
Author:
Ben Rietbroek
Message:

Fixed clipped column titles caused by hard coded length [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/setup/part_set.asm

    r235 r236  
    257257   call    VideoIO_Color
    258258
     259   ; rousseau.comment.201807062250 :: Replaced fixed values with length-query and length-mask
     260
    259261   ; ------------------------------------- 1st Part
    260262   mov     cx, 0503h
    261263   call    VideoIO_Locate
    262264   mov     si, offset TXT_TopInfos_No    ; "No Hd"
    263    mov     cl, 5
     265   call    GetLenOfString
     266   and     cl, 07h
    264267   call    VideoIO_FixedPrint
    265268   mov     cx, 050Bh
    266269   call    VideoIO_Locate
    267270   mov     si, offset TXT_TopInfos_Label ; "Label"
    268    mov     cl, 5
     271   call    GetLenOfString
     272   and     cl, 0fh
    269273   call    VideoIO_FixedPrint
    270274   mov     cx, 0517h
    271275   call    VideoIO_Locate
    272276   mov     si, offset TXT_TopInfos_Flags ; "Flags"
    273    mov     cl, 5
     277   call    GetLenOfString
     278   and     cl, 07h
    274279   call    VideoIO_FixedPrint
    275280   mov     cx, 051Fh
    276281   call    VideoIO_Locate
    277282   mov     si, offset TXT_TopInfos_Type  ; "Type"
    278    mov     cl, 4
     283   call    GetLenOfString
     284   and     cl, 0fh
    279285   call    VideoIO_FixedPrint
    280286
     
    283289   call    VideoIO_Locate
    284290   mov     si, offset TXT_TopInfos_No    ; "No Hd"
    285    mov     cl, 5
     291   call    GetLenOfString
     292   and     cl, 07h
    286293   call    VideoIO_FixedPrint
    287294   mov     cx, 0533h
    288295   call    VideoIO_Locate
    289296   mov     si, offset TXT_TopInfos_Label ; "Label"
    290    mov     cl, 5
     297   call    GetLenOfString
     298   and     cl, 0fh
    291299   call    VideoIO_FixedPrint
    292300   mov     cx, 053Fh
    293301   call    VideoIO_Locate
    294302   mov     si, offset TXT_TopInfos_Flags ; "Flags"
    295    mov     cl, 5
     303   call    GetLenOfString
     304   and     cl, 07h
    296305   call    VideoIO_FixedPrint
    297306   mov     cx, 0547h
    298307   call    VideoIO_Locate
    299308   mov     si, offset TXT_TopInfos_Type  ; "Type"
    300    mov     cl, 4
     309   call    GetLenOfString
     310   and     cl, 0fh
    301311   call    VideoIO_FixedPrint
    302312
Note: See TracChangeset for help on using the changeset viewer.