Changeset 252 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot


Ignore:
Timestamp:
Feb 18, 2012, 2:12:54 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Boot menu now shows only one capacity.
  • Added "strings" makefile target to compress strings.
Location:
trunk/XTIDE_Universal_BIOS/Src/Boot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootInfo.asm

    r241 r252  
    6363    ret
    6464
    65        
     65
    6666;--------------------------------------------------------------------
    67 ; Finds BOOTNFO for drive and returns total sector count.
    68 ;
    6967; BootInfo_GetTotalSectorCount
    7068;   Parameters:
     
    7371;       BX:DX:AX:   48-bit sector count
    7472;   Corrupts registers:
    75 ;       Nothing
     73;       CX
    7674;--------------------------------------------------------------------
    7775ALIGN JUMP_ALIGN
    7876BootInfo_GetTotalSectorCount:
    79     push    ds
    80     call    BootInfo_ConvertDPTtoBX
    81     LOAD_BDA_SEGMENT_TO ds, ax
    82     mov     ax, [bx+BOOTNFO.twSectCnt]
    83     mov     dx, [bx+BOOTNFO.twSectCnt+2]
    84     mov     bx, [bx+BOOTNFO.twSectCnt+4]
    85     pop     ds
    86     ret
     77    test    BYTE [di+DPT.bFlagsLow], FLG_DRVNHEAD_LBA
     78    jnz     SHORT .ReturnFullCapacity
     79    jmp     AH15h_GetSectorCountToBXDXAX
     80.ReturnFullCapacity:
     81    jmp     AccessDPT_GetLbaSectorCountToBXDXAX
    8782
    8883
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm

    r243 r252  
    100100;       AX, BX, CX, DX, SI, DI, ES
    101101;--------------------------------------------------------------------
    102 
    103102ALIGN JUMP_ALIGN
    104103BootMenuPrint_RefreshInformation:
     
    195194;--------------------------------------------------------------------
    196195.HardDiskMenuitemInfoForOurDrive:
    197     ePUSH_T ax, g_szSizeDual
    198        
    199     ; Get and push L-CHS size
    200     call    AH15h_GetSectorCountToDXAX
    201     call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
     196    ePUSH_T ax, g_szInformation
    202197
    203198    ; Get and push total LBA size
     
    205200    call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat       
    206201    jmp     BootMenuPrintCfg_ForOurDrive
    207                
     202
    208203;--------------------------------------------------------------------
    209204; .HardDiskMenuitemInfoForForeignDrive
Note: See TracChangeset for help on using the changeset viewer.