Changeset 252 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Feb 18, 2012, 2:12:54 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Boot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootInfo.asm
r241 r252 63 63 ret 64 64 65 65 66 66 ;-------------------------------------------------------------------- 67 ; Finds BOOTNFO for drive and returns total sector count.68 ;69 67 ; BootInfo_GetTotalSectorCount 70 68 ; Parameters: … … 73 71 ; BX:DX:AX: 48-bit sector count 74 72 ; Corrupts registers: 75 ; Nothing73 ; CX 76 74 ;-------------------------------------------------------------------- 77 75 ALIGN JUMP_ALIGN 78 76 BootInfo_GetTotalSectorCount: 79 push ds 80 call BootInfo_ConvertDPTtoBX 81 LOAD_BDA_SEGMENT_TO ds, ax 82 mov ax, [bx+BOOTNFO.twSectCnt] 83 mov dx, [bx+BOOTNFO.twSectCnt+2] 84 mov bx, [bx+BOOTNFO.twSectCnt+4] 85 pop ds 86 ret 77 test BYTE [di+DPT.bFlagsLow], FLG_DRVNHEAD_LBA 78 jnz SHORT .ReturnFullCapacity 79 jmp AH15h_GetSectorCountToBXDXAX 80 .ReturnFullCapacity: 81 jmp AccessDPT_GetLbaSectorCountToBXDXAX 87 82 88 83 -
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r243 r252 100 100 ; AX, BX, CX, DX, SI, DI, ES 101 101 ;-------------------------------------------------------------------- 102 103 102 ALIGN JUMP_ALIGN 104 103 BootMenuPrint_RefreshInformation: … … 195 194 ;-------------------------------------------------------------------- 196 195 .HardDiskMenuitemInfoForOurDrive: 197 ePUSH_T ax, g_szSizeDual 198 199 ; Get and push L-CHS size 200 call AH15h_GetSectorCountToDXAX 201 call ConvertSectorCountInBXDXAXtoSizeAndPushForFormat 196 ePUSH_T ax, g_szInformation 202 197 203 198 ; Get and push total LBA size … … 205 200 call ConvertSectorCountInBXDXAXtoSizeAndPushForFormat 206 201 jmp BootMenuPrintCfg_ForOurDrive 207 202 208 203 ;-------------------------------------------------------------------- 209 204 ; .HardDiskMenuitemInfoForForeignDrive
Note:
See TracChangeset
for help on using the changeset viewer.