Changeset 130 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm


Ignore:
Timestamp:
Mar 4, 2011, 5:54:41 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Boot menu finally works but timeout and drive numbers not yet implemented.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm

    r128 r130  
    44; Section containing code
    55SECTION .text
     6
     7;--------------------------------------------------------------------
     8; BootMenuPrint_ClearScreen
     9;   Parameters:
     10;       Nothing
     11;   Returns:
     12;       Nothing
     13;   Corrupts registers:
     14;       AX, DI
     15;--------------------------------------------------------------------
     16ALIGN JUMP_ALIGN
     17BootMenuPrint_ClearScreen:
     18    call    BootMenuPrint_InitializeDisplayContext
     19    xor     ax, ax
     20    CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX
     21    mov     ax, ' ' | (MONO_NORMAL<<8)
     22    CALL_DISPLAY_LIBRARY ClearScreenWithCharInALandAttrInAH
     23    ret
     24
     25
     26;--------------------------------------------------------------------
     27; BootMenuPrint_InitializeDisplayContext
     28;   Parameters:
     29;       Nothing
     30;   Returns:
     31;       Nothing
     32;   Corrupts registers:
     33;       AX, DI
     34;--------------------------------------------------------------------
     35ALIGN JUMP_ALIGN
     36BootMenuPrint_InitializeDisplayContext:
     37    CALL_DISPLAY_LIBRARY InitializeDisplayContext
     38    ret
     39
    640
    741;--------------------------------------------------------------------
     
    4074    pop     di
    4175    stc
    42     ret
    43 
    44 
    45 ;--------------------------------------------------------------------
    46 ; BootMenuPrint_ClearScreen
    47 ;   Parameters:
    48 ;       Nothing
    49 ;   Returns:
    50 ;       Nothing
    51 ;   Corrupts registers:
    52 ;       AX, DI
    53 ;--------------------------------------------------------------------
    54 ALIGN JUMP_ALIGN
    55 BootMenuPrint_ClearScreen:
    56     mov     ax, ' ' | (MONO_NORMAL<<8)
    57     CALL_DISPLAY_LIBRARY ClearScreenWithCharInALandAttrInAH
    5876    ret
    5977
Note: See TracChangeset for help on using the changeset viewer.