Changeset 177


Ignore:
Timestamp:
Nov 7, 2017, 7:12:39 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Fixed display quirk -- track #13 [v1.1.1-testing]

When detailed view was enabled, too much padding was done, which caused
overflow to the next line and the '|' characters to be overwritten.
This should fix trac issue #13:
http://trac.netlabs.org/air-boot/ticket/13

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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/airboot.md5

    r176 r177  
    1 966d84e065c842c29fcf8c77b28f1428 *airboot.bin
     13fbd042146daf016accd81b36e5e6560  airboot.bin
  • trunk/bootcode/regular/bootmenu.asm

    r170 r177  
    675675
    676676
    677         ; Dirty hack to clear remaining line when menu is scrolled.
    678         ; Padd with spaces.
     677        ; Dirty hack to pad remaining line with spaces.
    679678        ; Should be implemented in scrolling routine.
    680         push    word ptr [TextPosX]
    681         mov     si, offset spaces
    682         mov     cl,24
    683         call    VideoIO_FixedPrint
    684         pop     word ptr [TextPosX]
    685 
     679        push    word ptr [TextPosY]             ; Quick save X,Y position
     680        mov     al, ' '                         ; Filler
     681        mov     cl, 79                          ; Index of last column
     682        sub     cl, byte ptr [TextPosX]         ; Calculate padding length
     683        call    VideoIO_PrintSingleMultiChar    ; Do the padding
     684        pop     word ptr [TextPosY]             ; Quick restore X,Y position
     685
     686        ; Get AiR-BOOT system-ID to see if drive-letters need to be shown
    686687        mov     si, [PartPointer]
    687688        mov     ah, [si+LocIPT_SystemID]
     
    702703ENDIF
    703704
    704         mov     al, ah
    705 
    706         cmp     al, 07h
    707         je      show_dl
    708         cmp     al, 0fch
    709         je      show_dl
    710 
    711         jmp     skip_show_dl
     705        ; Only show drive-letters when partition is HPFS or JFS
     706        mov     al, ah          ; AiR-BOOT system-ID in AL
     707        cmp     al, 07h         ; Is HPFS ?
     708        je      show_dl         ; Yep, show drive-letters
     709        cmp     al, 0fch        ; Is JFS ?
     710        je      show_dl         ; Yep, show drive-letters
     711
     712        jmp     skip_show_dl    ; No HPFS or JFS, skip show drive-letters
    712713
    713714    show_dl:
     
    799800dl_text     db  '   on drive ',0
    800801dl_hidden   db  '   hidden   ',0
    801 spaces      db  '                        ',0
    802802
    803803;        In: DL - Active Partition
  • trunk/include/version.h

    r176 r177  
    3232#define     BLDLVL_YEAR             "2017"
    3333#define     BLDLVL_MONTH            "04"
    34 #define     BLDLVL_DAY              "08"
     34#define     BLDLVL_DAY              "12"
    3535// Build time
    3636//~ #define     BLDLVL_HOURS            "01"
  • trunk/include/version.inc

    r176 r177  
    7070AB_YEAR             EQU     2017h
    7171AB_MONTH            EQU     04h
    72 AB_DAY              EQU     08h
     72AB_DAY              EQU     12h
    7373
    7474; The Hours, Minutes and Seconds, again in BCD for easy manipulation.
Note: See TracChangeset for help on using the changeset viewer.