Changeset 386 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Apr 12, 2012, 2:07:46 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Boot
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r376 r386 61 61 push ax ; the hard disks don't ever use it, but it does no harm) 62 62 63 jmp shortBootMenuPrint_RefreshInformation.FormatRelay63 jmp SHORT BootMenuPrint_RefreshInformation.FormatRelay 64 64 65 65 ;-------------------------------------------------------------------- … … 76 76 BootMenuPrint_TitleStrings: 77 77 mov si, ROMVARS.szTitle 78 call BootMenuPrint_NullTerminatedStringFromCSSIandSetCF78 call DetectPrint_NullTerminatedStringFromCSSIandSetCF 79 79 CALL_DISPLAY_LIBRARY PrintNewlineCharacters 80 80 mov si, ROMVARS.szVersion 81 ; Fall to BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 82 83 ;-------------------------------------------------------------------- 84 ; BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 85 ; Parameters: 86 ; CS:SI: Ptr to NULL terminated string to print 87 ; Returns: 88 ; CF: Set since menu event was handled successfully 89 ; Corrupts registers: 90 ; AX, DI 91 ;-------------------------------------------------------------------- 92 BootMenuPrint_NullTerminatedStringFromCSSIandSetCF: 93 ; 94 ; We send all CSSI strings through the Format routine for the case of 95 ; compressed strings, but this doesn't hurt in the non-compressed case either 96 ; (perhaps a little slower, but shouldn't be noticeable to the user) 97 ; and results in smaller code size. 98 ; 99 push bp 100 mov bp,sp 101 jmp short BootMenuPrint_RefreshInformation.FormatRelay 81 jmp DetectPrint_NullTerminatedStringFromCSSIandSetCF 102 82 103 83 … … 186 166 187 167 .FormatRelay: 188 jmp short BootMenuPrint_FormatCSSIfromParamsInSSBP168 jmp DetectPrint_FormatCSSIfromParamsInSSBP 189 169 190 170 … … 222 202 223 203 test di,di 224 jz short BootMenuPrint_FormatCSSIfromParamsInSSBP204 jz SHORT BootMenuPrint_RefreshInformation.FormatRelay 225 205 226 206 %include "BootMenuPrintCfg.asm" ; inline of code to fill out remainder of information string 227 228 ;;; fall-through to BootMenuPrint_FormatCSSIfromParamsInSSBP 229 230 231 ;-------------------------------------------------------------------- 232 ; BootMenuPrint_FormatCSSIfromParamsInSSBP 233 ; Parameters: 234 ; CS:SI: Ptr to string to format 235 ; BP: SP before pushing parameters 236 ; Returns: 237 ; BP: Popped from stack 238 ; CF: Set since menu event was handled successfully 239 ; Corrupts registers: 240 ; AX, DI 241 ;-------------------------------------------------------------------- 242 BootMenuPrint_FormatCSSIfromParamsInSSBP: 243 CALL_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI 244 stc ; Successful return from menu event 245 pop bp 246 ret 207 jmp DetectPrint_FormatCSSIfromParamsInSSBP 247 208 248 209 … … 371 332 push cx ; Key attribute for last space 372 333 mov si, g_szHotkey 373 374 BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay: 375 jmp SHORT BootMenuPrint_FormatCSSIfromParamsInSSBP 376 377 378 ;-------------------------------------------------------------------- 379 ; BootMenuPrint_InitializeDisplayContext 380 ; Parameters: 381 ; Nothing 382 ; Returns: 383 ; Nothing 384 ; Corrupts registers: 385 ; AX, DI 386 ;-------------------------------------------------------------------- 387 BootMenuPrint_InitializeDisplayContext: 388 CALL_DISPLAY_LIBRARY InitializeDisplayContext 389 ret 334 jmp DetectPrint_FormatCSSIfromParamsInSSBP 390 335 391 336 -
trunk/XTIDE_Universal_BIOS/Src/Boot/BootSector.asm
r376 r386 34 34 ;-------------------------------------------------------------------- 35 35 BootSector_TryToLoadFromDriveDL: 36 call BootPrint_TryToBootFromDL36 call DetectPrint_TryToBootFromDL 37 37 call LoadFirstSectorFromDriveDL 38 38 jc SHORT .FailedToLoadFirstSector … … 46 46 ret 47 47 .FailedToLoadFirstSector: 48 call BootPrint_FailedToLoadFirstSector48 call DetectPrint_FailedToLoadFirstSector 49 49 clc 50 50 ret 51 51 .FirstHardDiskSectorNotBootable: 52 52 mov si, g_szBootSectorNotFound 53 call BootMenuPrint_NullTerminatedStringFromCSSIandSetCF53 call DetectPrint_NullTerminatedStringFromCSSIandSetCF 54 54 clc 55 55 ret
Note:
See TracChangeset
for help on using the changeset viewer.