Changeset 127 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
- Timestamp:
- Mar 3, 2011, 6:43:50 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r124 r127 88 88 ; AX, BX, SI, DI 89 89 ;-------------------------------------------------------------------- 90 ;ALIGN JUMP_ALIGN91 90 .HardDiskMenuitemForOurDrive: 92 91 call BootInfo_GetOffsetToBX … … 224 223 call FindDPT_ForDriveNumber ; DS:DI to point DPT 225 224 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 ;-------------------------------------------------------------------- 237 ALIGN 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 228 257 229 258 ;-------------------------------------------------------------------- … … 248 277 249 278 mov si, g_szSizeSingle 250 jmp SHORT BootMenuPrint_FormatCSSIfromParamsInSSBP251 252 ;--------------------------------------------------------------------253 ; .HardDiskMenuitemInfoSizeForOurDrive254 ; Parameters:255 ; DL: Untranslated Hard Disk number256 ; DS:DI: Ptr to DPT257 ; Returns:258 ; Nothing259 ; Corrupts registers:260 ; AX, BX, CX, DX, SI, ES261 ;--------------------------------------------------------------------262 ALIGN JUMP_ALIGN263 .HardDiskMenuitemInfoSizeForOurDrive:264 push bp265 mov bp, sp266 ePUSH_T ax, g_szCapacity267 268 ; Get and push L-CHS size269 call HCapacity_GetSectorCountFromOurAH08h270 call ConvertSectorCountInBXDXAXtoSizeAndPushForFormat271 272 ; Get and push total LBA size273 call BootInfo_GetTotalSectorCount274 call ConvertSectorCountInBXDXAXtoSizeAndPushForFormat275 276 mov si, g_szSizeDual277 279 ; Fall to BootMenuPrint_FormatCSSIfromParamsInSSBP 278 280
Note:
See TracChangeset
for help on using the changeset viewer.