Changeset 259 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Feb 23, 2012, 7:14:06 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r258 r259 23 23 mov bp, sp 24 24 25 call RamVars_IsDriveHandledByThisBIOS 25 call RamVars_IsDriveHandledByThisBIOS_And_FindDPT_ForDriveNumber 26 26 jc .notOurs 27 27 28 call FindDPT_ForDriveNumber ; if it is one of ours, print the string in bootnfo29 28 call BootMenuInfo_ConvertDPTtoBX 30 29 mov si, g_szDriveNumBOOTNFO ; special g_szDriveNum that prints from BDA … … 112 111 mov si, g_szCapacity ; Setup print string now, carries through to print call 113 112 114 xor di, di 115 call RamVars_IsDriveHandledByThisBIOS 116 jc SHORT .notours 117 call FindDPT_ForDriveNumber ; DS:DI to point DPT 118 .notours: 119 113 xor di, di ; Zero DI for checks for our drive later on 114 call RamVars_IsDriveHandledByThisBIOS_And_FindDPT_ForDriveNumber 115 120 116 test dl, dl ; are we a hard disk? 121 js BootMenuPrint_HardDiskRefreshInformation 122 123 test di, di124 jnz .ours 117 js BootMenuPrint_HardDiskRefreshInformation 118 119 test di, di 120 jnz .ours ; Based on CF from RamVars_IsDriveHandledByThisBIOS above 125 121 call FloppyDrive_GetType ; Get Floppy Drive type to BX 126 122 jmp .around … … 187 183 ; BootMenuPrint_HardDiskMenuitemInformation 188 184 ; Parameters: 189 ; DL: Untranslated Hard Disk number190 185 ; DS: RAMVARS segment 191 186 ; Returns: … … 196 191 ALIGN JUMP_ALIGN 197 192 BootMenuPrint_HardDiskRefreshInformation: 198 test di, di193 test di, di 199 194 jz .HardDiskMenuitemInfoForForeignDrive 200 195 201 196 .HardDiskMenuitemInfoForOurDrive: 202 ePUSH_T ax, g_szInformation 203 204 ; Get and push total LBA size 205 call BootMenuInfo_GetTotalSectorCount 197 ePUSH_T ax, g_szInformation ; Add substring for our hard disk information 198 call BootMenuInfo_GetTotalSectorCount ; Get Total LBA Size 206 199 jmp .ConvertSectorCountInBXDXAXtoSizeAndPushForFormat 207 200
Note:
See TracChangeset
for help on using the changeset viewer.