Changeset 127 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm


Ignore:
Timestamp:
Mar 3, 2011, 6:43:50 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • More boot menu fixes.
File:
1 edited

Legend:

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

    r124 r127  
    8888;       AX, BX, SI, DI
    8989;--------------------------------------------------------------------
    90 ;ALIGN JUMP_ALIGN
    9190.HardDiskMenuitemForOurDrive:
    9291    call    BootInfo_GetOffsetToBX
     
    224223    call    FindDPT_ForDriveNumber      ; DS:DI to point DPT
    225224    jnc     SHORT .HardDiskMenuitemInfoForForeignDrive
    226     call    .HardDiskMenuitemInfoSizeForOurDrive
    227     jmp     BootMenuPrintCfg_ForOurDrive
     225    ; Fall to .HardDiskMenuitemInfoForOurDrive
     226
     227;--------------------------------------------------------------------
     228; .HardDiskMenuitemInfoForOurDrive
     229;   Parameters:
     230;       DL:     Untranslated Hard Disk number
     231;       DS:DI:  Ptr to DPT
     232;   Returns:
     233;       Nothing
     234;   Corrupts registers:
     235;       AX, BX, CX, DX, SI, DI, ES
     236;--------------------------------------------------------------------
     237ALIGN JUMP_ALIGN
     238.HardDiskMenuitemInfoForOurDrive:
     239    push    di
     240    ePUSH_T ax, BootMenuPrintCfg_ForOurDrive    ; Return from BootMenuPrint_FormatCSSIfromParamsInSSBP
     241    push    bp
     242    mov     bp, sp
     243    ePUSH_T ax, g_szCapacity
     244
     245    ; Get and push L-CHS size
     246    call    HCapacity_GetSectorCountFromOurAH08h
     247    call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
     248
     249    ; Get and push total LBA size
     250    mov     dl, [di+DPT.bDrvNum]
     251    call    BootInfo_GetTotalSectorCount
     252    call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
     253
     254    mov     si, g_szSizeDual
     255    jmp     SHORT BootMenuPrint_FormatCSSIfromParamsInSSBP
     256
    228257
    229258;--------------------------------------------------------------------
     
    248277
    249278    mov     si, g_szSizeSingle
    250     jmp     SHORT BootMenuPrint_FormatCSSIfromParamsInSSBP
    251 
    252 ;--------------------------------------------------------------------
    253 ; .HardDiskMenuitemInfoSizeForOurDrive
    254 ;   Parameters:
    255 ;       DL:     Untranslated Hard Disk number
    256 ;       DS:DI:  Ptr to DPT
    257 ;   Returns:
    258 ;       Nothing
    259 ;   Corrupts registers:
    260 ;       AX, BX, CX, DX, SI, ES
    261 ;--------------------------------------------------------------------
    262 ALIGN JUMP_ALIGN
    263 .HardDiskMenuitemInfoSizeForOurDrive:
    264     push    bp
    265     mov     bp, sp
    266     ePUSH_T ax, g_szCapacity
    267 
    268     ; Get and push L-CHS size
    269     call    HCapacity_GetSectorCountFromOurAH08h
    270     call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
    271 
    272     ; Get and push total LBA size
    273     call    BootInfo_GetTotalSectorCount
    274     call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
    275 
    276     mov     si, g_szSizeDual
    277279    ; Fall to BootMenuPrint_FormatCSSIfromParamsInSSBP
    278280
Note: See TracChangeset for help on using the changeset viewer.