Changeset 386 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization
- Timestamp:
- Apr 12, 2012, 2:07:46 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Initialization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
r376 r386 199 199 DetectDrives_DriveNotFound: 200 200 mov si, g_szNotFound 201 jmp BootMenuPrint_NullTerminatedStringFromCSSIandSetCF201 jmp DetectPrint_NullTerminatedStringFromCSSIandSetCF 202 202 203 203 … … 219 219 jc SHORT DetectDrives_DriveNotFound 220 220 call BootMenuInfo_CreateForHardDisk 221 jmp shortDetectPrint_DriveNameFromBootnfoInESBX221 jmp SHORT DetectPrint_DriveNameFromBootnfoInESBX -
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
r376 r386 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 34 ret 35 36 37 ;-------------------------------------------------------------------- 24 38 ; Prints BIOS name and segment address where it is found. 25 39 ; … … 39 53 push cs ; BIOS segment 40 54 41 DetectPrint_BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay: 42 jmp BootMenuPrint_FormatCSSIfromParamsInSSBP 55 jmp DetectPrint_FormatCSSIfromParamsInSSBP 43 56 44 57 … … 122 135 mov si, g_szDetectOuter ; Load SI with default wrapper string "IDE %s at %s: " 123 136 124 jmp short DetectPrint_BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay137 jmp SHORT DetectPrint_FormatCSSIfromParamsInSSBP 125 138 126 139 … … 146 159 pop di 147 160 ret 161 162 ;-------------------------------------------------------------------- 163 ; DetectPrint_FailedToLoadFirstSector 164 ; Parameters: 165 ; AH: INT 13h error code 166 ; Returns: 167 ; Nothing 168 ; Corrupts registers: 169 ; AX, CX, SI, DI 170 ;-------------------------------------------------------------------- 171 DetectPrint_FailedToLoadFirstSector: 172 push bp 173 mov bp, sp 174 eMOVZX cx, ah 175 push cx ; Push INT 13h error code 176 mov si, g_szReadError 177 jmp SHORT DetectPrint_FormatCSSIfromParamsInSSBP 178 179 180 ;-------------------------------------------------------------------- 181 ; DetectPrint_TryToBootFromDL 182 ; Parameters: 183 ; DL: Drive to boot from (translated, 00h or 80h) 184 ; DS: RAMVARS segment 185 ; Returns: 186 ; Nothing 187 ; Corrupts registers: 188 ; AX, SI, DI 189 ;-------------------------------------------------------------------- 190 DetectPrint_TryToBootFromDL: 191 push bp 192 mov bp, sp 193 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 205 206 mov si, g_szTryToBoot 207 jmp SHORT DetectPrint_FormatCSSIfromParamsInSSBP 208 209 210 ;-------------------------------------------------------------------- 211 ; DetectPrint_NullTerminatedStringFromCSSIandSetCF 212 ; Parameters: 213 ; CS:SI: Ptr to NULL terminated string to print 214 ; Returns: 215 ; CF: Set since menu event was handled successfully 216 ; Corrupts registers: 217 ; AX, DI 218 ;-------------------------------------------------------------------- 219 DetectPrint_NullTerminatedStringFromCSSIandSetCF: 220 ; 221 ; We send all CSSI strings through the Format routine for the case of 222 ; compressed strings, but this doesn't hurt in the non-compressed case either 223 ; (perhaps a little slower, but shouldn't be noticeable to the user) 224 ; and results in smaller code size. 225 ; 226 push bp 227 mov bp,sp 228 ; Fall to BootMenuPrint_FormatCSSIfromParamsInSSBP 229 230 ;-------------------------------------------------------------------- 231 ; DetectPrint_FormatCSSIfromParamsInSSBP 232 ; Parameters: 233 ; CS:SI: Ptr to string to format 234 ; BP: SP before pushing parameters 235 ; Returns: 236 ; BP: Popped from stack 237 ; CF: Set since menu event was handled successfully 238 ; Corrupts registers: 239 ; AX, DI 240 ;-------------------------------------------------------------------- 241 DetectPrint_FormatCSSIfromParamsInSSBP: 242 CALL_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI 243 stc ; Successful return from menu event 244 pop bp 245 ret
Note:
See TracChangeset
for help on using the changeset viewer.