Changeset 397 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu
- Timestamp:
- Apr 19, 2012, 11:11:41 AM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrint.asm
r392 r397 42 42 jc .notOurs 43 43 44 call BootMenuInfo_ConvertDPTtoBX44 call DriveDetectInfo_ConvertDPTtoBX 45 45 mov si, g_szDriveNumBOOTNFO ; special g_szDriveNum that prints from BDA 46 46 jmp .go … … 186 186 .HardDiskMenuitemInfoForOurDrive: 187 187 ePUSH_T ax, g_szInformation ; Add substring for our hard disk information 188 call BootMenuInfo_GetTotalSectorCount ; Get Total LBA Size188 call GetTotalSectorCount 189 189 jmp .ConvertSectorCountInBXDXAXtoSizeAndPushForFormat 190 190 … … 218 218 db 2880 / FloppyTypes.rgbCapacityMultiplier ; type 5 219 219 db 2880 / FloppyTypes.rgbCapacityMultiplier ; type 6 220 221 222 ;-------------------------------------------------------------------- 223 ; GetTotalSectorCount 224 ; Parameters: 225 ; DS:DI: DPT Pointer 226 ; Returns: 227 ; BX:DX:AX: 48-bit sector count 228 ; Corrupts registers: 229 ; CX 230 ;-------------------------------------------------------------------- 231 GetTotalSectorCount: 232 test BYTE [di+DPT.bFlagsLow], FLG_DRVNHEAD_LBA 233 jnz SHORT .ReturnFullCapacity 234 jmp AH15h_GetSectorCountToBXDXAX 235 .ReturnFullCapacity: 236 jmp AccessDPT_GetLbaSectorCountToBXDXAX
Note:
See TracChangeset
for help on using the changeset viewer.