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


Ignore:
Timestamp:
Apr 29, 2011, 7:04:13 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Redesigned Disk Parameter Tables.
  • Code generalizations for supporting non-IDE devices in the future.
File:
1 edited

Legend:

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

    r135 r150  
    111111BootMenuPrint_HardDiskMenuitem:
    112112    call    PrintDriveNumberAfterTranslationFromDL
    113     call    FindDPT_ForDriveNumber      ; DS:DI to point DPT
     113    call    RamVars_IsDriveHandledByThisBIOS
    114114    jnc     SHORT .HardDiskMenuitemForForeignDrive
    115115    ; Fall to .HardDiskMenuitemForOurDrive
     
    280280ALIGN JUMP_ALIGN
    281281BootMenuPrint_HardDiskMenuitemInformation:
     282    call    RamVars_IsDriveHandledByThisBIOS
     283    jnc     SHORT .HardDiskMenuitemInfoForForeignDrive
    282284    call    FindDPT_ForDriveNumber      ; DS:DI to point DPT
    283     jnc     SHORT .HardDiskMenuitemInfoForForeignDrive
    284285    ; Fall to .HardDiskMenuitemInfoForOurDrive
    285286
     
    303304
    304305    ; Get and push L-CHS size
    305     call    HCapacity_GetSectorCountFromOurAH08h
     306    mov     [RAMVARS.wTimeoutCounter], dl       ; Store drive number
     307    call    AH15h_GetSectorCountToDXAX
    306308    call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
    307309
    308310    ; Get and push total LBA size
    309     mov     dl, [di+DPT.bDrvNum]
     311    mov     dl, [RAMVARS.wTimeoutCounter]       ; Restore drive number
    310312    call    BootInfo_GetTotalSectorCount
    311313    call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
     
    332334
    333335    call    DriveXlate_ToOrBack
    334     call    HCapacity_GetSectorCountFromForeignAH08h
     336    call    AH15h_GetSectorCountFromForeignDriveToDXAX
    335337    call    ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
    336338
Note: See TracChangeset for help on using the changeset viewer.