Changeset 96 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
- Timestamp:
- Jan 28, 2011, 4:29:42 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r92 r96 19 19 BootMenuPrint_TitleStrings: 20 20 mov si, ROMVARS.szTitle 21 call PrintNullTerminatedStringFromCSSIandSetCF22 call BootMenuPrint_Newline21 call BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 22 CALL_DISPLAY_LIBRARY PrintNewlineCharacters 23 23 mov si, ROMVARS.szVersion 24 jmp PrintNullTerminatedStringFromCSSIandSetCF25 26 27 ;-------------------------------------------------------------------- 28 ; BootMenuPrint_ Newline24 jmp BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 25 26 27 ;-------------------------------------------------------------------- 28 ; BootMenuPrint_ClearScreen 29 29 ; Parameters: 30 30 ; Nothing … … 35 35 ;-------------------------------------------------------------------- 36 36 ALIGN JUMP_ALIGN 37 BootMenuPrint_Newline:38 CALL_DISPLAY_LIBRARY PrintNewlineCharacters39 ret40 41 42 ;--------------------------------------------------------------------43 ; BootMenuPrint_ClearScreen44 ; Parameters:45 ; Nothing46 ; Returns:47 ; Nothing48 ; Corrupts registers:49 ; AX50 ;--------------------------------------------------------------------51 ALIGN JUMP_ALIGN52 37 BootMenuPrint_ClearScreen: 53 push di54 38 mov ax, ' ' | (MONO_NORMAL<<8) 55 39 CALL_DISPLAY_LIBRARY ClearScreenWithCharInALandAttrInAH 56 pop di57 ret58 59 60 ;--------------------------------------------------------------------61 ; Translates and prints drive number.62 ;63 ; BootMenuPrint_TranslatedDriveNumber64 ; Parameters:65 ; DL: Untranslated drive number66 ; DS: RAMVARS segment67 ; Returns:68 ; Nothing69 ; Corrupts registers:70 ; AX, DI71 ;--------------------------------------------------------------------72 ALIGN JUMP_ALIGN73 BootMenuPrint_TranslatedDriveNumber:74 push dx75 push bx76 77 call DriveXlate_ToOrBack78 eMOVZX ax, dl ; Drive number to AL79 CALL_DISPLAY_LIBRARY PrintWordFromAXwithBaseInBX80 mov al, ' ' ; Print space81 CALL_DISPLAY_LIBRARY PrintCharacterFromAL82 83 pop bx84 pop dx85 40 ret 86 41 … … 155 110 .HardDiskMenuitemForForeignDrive: 156 111 mov si, g_szforeignHD 157 jmp PrintNullTerminatedStringFromCSSIandSetCF112 jmp BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 158 113 159 114 … … 365 320 366 321 ;-------------------------------------------------------------------- 367 ; PrintNullTerminatedStringFromCSSIandSetCF322 ; BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 368 323 ; Parameters: 369 324 ; CS:SI: Ptr to NULL terminated string to print … … 374 329 ;-------------------------------------------------------------------- 375 330 ALIGN JUMP_ALIGN 376 PrintNullTerminatedStringFromCSSIandSetCF:331 BootMenuPrint_NullTerminatedStringFromCSSIandSetCF: 377 332 CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI 378 333 stc
Note:
See TracChangeset
for help on using the changeset viewer.