Changeset 392 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
- Timestamp:
- Apr 17, 2012, 2:42:54 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
r386 r392 22 22 23 23 ;-------------------------------------------------------------------- 24 ; BootMenuPrint_InitializeDisplayContext 25 ; Parameters: 26 ; Nothing 27 ; Returns: 28 ; Nothing 29 ; Corrupts registers: 30 ; AX, DI 31 ;-------------------------------------------------------------------- 32 BootMenuPrint_InitializeDisplayContext: 33 CALL_DISPLAY_LIBRARY InitializeDisplayContext 24 ; DetectPrint_InitializeDisplayContext 25 ; Parameters: 26 ; Nothing 27 ; Returns: 28 ; Nothing 29 ; Corrupts registers: 30 ; AX, DI 31 ;-------------------------------------------------------------------- 32 DetectPrint_InitializeDisplayContext: 33 CALL_DISPLAY_LIBRARY InitializeDisplayContext 34 ret 35 36 37 ;-------------------------------------------------------------------- 38 ; DetectPrint_GetSoftwareCoordinatesToAX 39 ; Parameters: 40 ; Nothing 41 ; Returns: 42 ; Nothing 43 ; Corrupts registers: 44 ; AX, DI 45 ;-------------------------------------------------------------------- 46 DetectPrint_GetSoftwareCoordinatesToAX: 47 CALL_DISPLAY_LIBRARY GetSoftwareCoordinatesToAX 34 48 ret 35 49 … … 186 200 ; Nothing 187 201 ; Corrupts registers: 188 ; AX, SI, DI202 ; AX, DH, SI, DI 189 203 ;-------------------------------------------------------------------- 190 204 DetectPrint_TryToBootFromDL: … … 192 206 mov bp, sp 193 207 194 mov ax, g_szHDD 195 test dl, dl 196 js SHORT .NotFDD 197 mov ax, g_szFDD 198 .NotFDD: 199 push ax 200 201 call DriveXlate_ToOrBack 202 push dx ; Push untranslated drive number 203 call DriveXlate_ToOrBack 204 push dx ; Push translated drive number 208 call DriveXlate_ToOrBack ; DL = Untranslated Drive number 209 mov dh, dl 210 call DriveXlate_ToOrBack ; DL = Translated Drive number 211 212 call HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter ; DL = Translated letter 213 xchg dl, dh 214 call HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter ; DL = Untranslated letter 215 push dx 216 xchg dl, dh 217 push dx 218 219 call ConvertDriveLetterInDLtoDriveNumber ; Restore DL 205 220 206 221 mov si, g_szTryToBoot … … 226 241 push bp 227 242 mov bp,sp 228 ; Fall to BootMenuPrint_FormatCSSIfromParamsInSSBP243 ; Fall to DetectPrint_FormatCSSIfromParamsInSSBP 229 244 230 245 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.