Changeset 369 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/MenuBorders.asm


Ignore:
Timestamp:
Mar 29, 2012, 9:29:28 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed align directives for initalization code and added define for align in boot-time calls to the assembly library (defaulting to 1), resulting in a significant savings for the AT and 386 builds. Fixed a bug with switch command line handling in the serial server. Put in CR characters in licesnse.txt, so that it properly displays on Windows. In the configurator, added default values for user supplied CHS and LBA values, defaulting to values within range when those features are enabled. Updated the copyright message in the configurator as the literal word Copyright is important.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Menu/MenuBorders.asm

    r293 r369  
    2222;       AX, BX, CX, DX, SI, DI
    2323;--------------------------------------------------------------------
    24 ALIGN JUMP_ALIGN
     24ALIGN MENU_JUMP_ALIGN
    2525MenuBorders_RefreshAll:
    2626%ifndef USE_186
     
    5252;       AX, BX, DX, SI, DI
    5353;--------------------------------------------------------------------
    54 ALIGN JUMP_ALIGN
     54ALIGN MENU_JUMP_ALIGN
    5555MenuBorders_RedrawBottomBorderLine:
    5656    call    MenuBorders_AdjustDisplayContextForDrawingBorders
     
    7171;--------------------------------------------------------------------
    7272%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    73 ALIGN JUMP_ALIGN
     73ALIGN MENU_JUMP_ALIGN
    7474MenuBorders_RefreshItemBorders:
    7575    call    MenuBorders_AdjustDisplayContextForDrawingBorders
     
    9191;       AX, BX, SI, DI
    9292;--------------------------------------------------------------------
    93 ALIGN JUMP_ALIGN
     93ALIGN MENU_JUMP_ALIGN
    9494MenuBorders_AdjustDisplayContextForDrawingBorders:
    9595    mov     bl, ATTRIBUTES_ARE_USED
     
    116116;       Nothing
    117117;--------------------------------------------------------------------
    118 ALIGN JUMP_ALIGN
     118ALIGN MENU_JUMP_ALIGN
    119119MenuBorders_GetNumberOfMiddleCharactersToDX:
    120120    eMOVZX  dx, [bp+MENUINIT.bWidth]
     
    133133;       AX, BX, CX, SI, DI
    134134;--------------------------------------------------------------------
    135 ALIGN JUMP_ALIGN
     135ALIGN MENU_JUMP_ALIGN
    136136RefreshTitleBorders:
    137137    call    DrawTopBorderLine
     
    149149;       AX, BX, CX, SI, DI
    150150;--------------------------------------------------------------------
    151 ALIGN JUMP_ALIGN
     151ALIGN MENU_JUMP_ALIGN
    152152RefreshInformationBorders:
    153153    call    DrawSeparationBorderLine
     
    165165;       AX, BX, CX, SI, DI
    166166;--------------------------------------------------------------------
    167 ALIGN JUMP_ALIGN
     167ALIGN MENU_JUMP_ALIGN
    168168RefreshItemBorders:
    169169    call    DrawSeparationBorderLine
     
    184184DrawTextBorderLinesByCXtimes:
    185185    jcxz    .NoBorderLinesToDraw
    186 ALIGN JUMP_ALIGN
     186ALIGN MENU_JUMP_ALIGN
    187187.DrawBordersWithFunctionInBX:
    188188    call    DrawTextBorderLine
     
    207207;       AX, SI, DI
    208208;--------------------------------------------------------------------
    209 ALIGN JUMP_ALIGN
     209ALIGN MENU_JUMP_ALIGN
    210210DrawTopBorderLine:
    211211    mov     si, g_rgbTopBorderCharacters
     
    213213    jmp     SHORT PrintNewlineToEndBorderLine
    214214
    215 ALIGN JUMP_ALIGN
     215ALIGN MENU_JUMP_ALIGN
    216216DrawSeparationBorderLine:
    217217    mov     si, g_rgbSeparationBorderCharacters
    218218    jmp     SHORT PrintBorderCharactersFromCSSIandShadowCharacter
    219219
    220 ALIGN JUMP_ALIGN
     220ALIGN MENU_JUMP_ALIGN
    221221DrawBottomBorderLine:
    222222    mov     si, g_rgbBottomBorderCharacters
     
    231231    ret
    232232
    233 ALIGN JUMP_ALIGN
     233ALIGN MENU_JUMP_ALIGN
    234234DrawBottomShadowLine:
    235235    CALL_DISPLAY_LIBRARY GetSoftwareCoordinatesToAX
     
    243243    ret
    244244
    245 ALIGN JUMP_ALIGN
     245ALIGN MENU_JUMP_ALIGN
    246246DrawTextBorderLine:
    247247    mov     si, g_rgbTextBorderCharacters
     
    259259;       AX, SI, DI
    260260;--------------------------------------------------------------------
    261 ALIGN JUMP_ALIGN
     261ALIGN MENU_JUMP_ALIGN
    262262PrintBorderCharactersFromCSSIandShadowCharacter:
    263263    call    PrintBorderCharactersFromCSSI
     
    277277;       AX, DI
    278278;--------------------------------------------------------------------
    279 ALIGN JUMP_ALIGN
     279ALIGN MENU_JUMP_ALIGN
    280280PrintNewlineToEndBorderLine:
    281281    CALL_DISPLAY_LIBRARY PrintNewlineCharacters
     
    293293;       AX, SI, DI
    294294;--------------------------------------------------------------------
    295 ALIGN JUMP_ALIGN
     295ALIGN MENU_JUMP_ALIGN
    296296PrintShadowCharactersByDXtimes:
    297297    CALL_DISPLAY_LIBRARY PushDisplayContext
     
    323323;       AX, SI, DI
    324324;--------------------------------------------------------------------
    325 ALIGN JUMP_ALIGN
     325ALIGN MENU_JUMP_ALIGN
    326326PrintBorderCharactersFromCSSI:
    327327    cs lodsb        ; Load from [cs:si+BORDER_CHARS.cLeft] to AL
     
    346346;       AX, DI
    347347;--------------------------------------------------------------------
    348 ALIGN JUMP_ALIGN
     348ALIGN MENU_JUMP_ALIGN
    349349MenuBorders_PrintSingleBorderCharacterFromAL:
    350350    CALL_DISPLAY_LIBRARY PrintCharacterFromAL
    351351    ret
    352352
    353 ALIGN JUMP_ALIGN
     353ALIGN MENU_JUMP_ALIGN
    354354MenuBorders_PrintMultipleBorderCharactersFromAL:
    355355    push    cx
     
    369369;       AX, SI, DI
    370370;--------------------------------------------------------------------
    371 ALIGN JUMP_ALIGN
     371ALIGN MENU_JUMP_ALIGN
    372372DrawTimeoutCounterString:
    373373    call    MenuTime_GetTimeoutSecondsLeftToAX
Note: See TracChangeset for help on using the changeset viewer.