Changeset 262 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Feb 24, 2012, 10:28:31 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r259 r262 23 23 mov bp, sp 24 24 25 call RamVars_IsDriveHandledByThisBIOS_And_FindDPT_ForDriveNumber25 call FindDPT_ForDriveNumberInDL 26 26 jc .notOurs 27 27 … … 111 111 mov si, g_szCapacity ; Setup print string now, carries through to print call 112 112 113 xor di, di ; Zero DI for checks for our drive later on 114 call RamVars_IsDriveHandledByThisBIOS_And_FindDPT_ForDriveNumber 115 116 test dl, dl ; are we a hard disk? 117 js BootMenuPrint_HardDiskRefreshInformation 118 119 test di, di 120 jnz .ours ; Based on CF from RamVars_IsDriveHandledByThisBIOS above 113 call FindDPT_ForDriveNumberInDL 114 115 inc dl ; are we a hard disk? 116 dec dl ; inc/dec will set SF, without modifying CF or DL 117 js .HardDiskRefreshInformation 118 119 jnc .ours ; Based on CF from FindDPT_ForDriveNumberInDL above 121 120 call FloppyDrive_GetType ; Get Floppy Drive type to BX 122 121 jmp .around … … 190 189 ;-------------------------------------------------------------------- 191 190 ALIGN JUMP_ALIGN 192 BootMenuPrint_HardDiskRefreshInformation: 193 test di, di 194 jz .HardDiskMenuitemInfoForForeignDrive 191 .HardDiskRefreshInformation: 192 jc .HardDiskMenuitemInfoForForeignDrive ; Based on CF from FindDPT_ForDriveNumberInDL (way) above 195 193 196 194 .HardDiskMenuitemInfoForOurDrive: 197 ePUSH_T ax, g_szInformation ; Add substring for our hard disk information198 call BootMenuInfo_GetTotalSectorCount ; Get Total LBA Size195 ePUSH_T ax, g_szInformation ; Add substring for our hard disk information 196 call BootMenuInfo_GetTotalSectorCount ; Get Total LBA Size 199 197 jmp .ConvertSectorCountInBXDXAXtoSizeAndPushForFormat 200 198
Note:
See TracChangeset
for help on using the changeset viewer.