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


Ignore:
Timestamp:
Dec 9, 2010, 5:14:25 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:

  • Forgot to update SI on new File Read and Write functions.
  • Screen clearing function now accepts any character and attribute.
  • Menu library now accepts CR,LF combination as line feed. Previously only LF,CR worked properly.
File:
1 edited

Legend:

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

    r62 r67  
    22; Project name  :   Assembly Library
    33; Created date  :   14.7.2010
    4 ; Last update   :   30.11.2010
     4; Last update   :   9.12.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for drawing menu borders.
     
    2929MenuBorders_RefreshAll:
    3030    call    MenuBorders_AdjustDisplayContextForDrawingBorders
    31     call    GetNumberOfMiddleCharactersToDX
     31    call    MenuBorders_GetNumberOfMiddleCharactersToDX
    3232    call    RefreshTitleBorders
    3333    call    RefreshItemBorders
     
    5151    call    MenuLocation_GetBottomBordersTopLeftCoordinatesToAX
    5252    CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX
    53     call    GetNumberOfMiddleCharactersToDX
     53    call    MenuBorders_GetNumberOfMiddleCharactersToDX
    5454    jmp     SHORT DrawBottomBorderLine
    5555
     
    9595    CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX
    9696
    97     call    GetNumberOfMiddleCharactersToDX
     97    call    MenuBorders_GetNumberOfMiddleCharactersToDX
    9898    jmp     SHORT RefreshItemBorders
    9999
    100100
    101101;--------------------------------------------------------------------
    102 ; GetNumberOfMiddleCharactersToDX
     102; MenuBorders_GetNumberOfMiddleCharactersToDX
    103103;   Parameters
    104104;       SS:BP:  Ptr to MENU
     
    109109;--------------------------------------------------------------------
    110110ALIGN JUMP_ALIGN
    111 GetNumberOfMiddleCharactersToDX:
     111MenuBorders_GetNumberOfMiddleCharactersToDX:
    112112    eMOVZX  dx, BYTE [bp+MENUINIT.bWidth]
    113113    sub     dx, BYTE MENU_HORIZONTAL_BORDER_LINES
     
    300300    pop     bx
    301301
    302     call    PrintMultipleBorderCharactersFromAL ; AL does not matter
     302    call    MenuBorders_PrintMultipleBorderCharactersFromAL ; AL does not matter
    303303
    304304    CALL_DISPLAY_LIBRARY PopDisplayContext
     
    326326    eSEG    cs
    327327    lodsb           ; Load from [si+BORDER_CHARS.cMiddle] to AL
    328     call    PrintMultipleBorderCharactersFromAL
     328    call    MenuBorders_PrintMultipleBorderCharactersFromAL
    329329
    330330    eSEG    cs
     
    334334;--------------------------------------------------------------------
    335335; MenuBorders_PrintSingleBorderCharacterFromAL
    336 ; PrintMultipleBorderCharactersFromAL
     336; MenuBorders_PrintMultipleBorderCharactersFromAL
    337337;   Parameters
    338338;       AL:     Character to print
    339 ;       DX:     Repeat count (PrintMultipleBorderCharactersFromAL)
     339;       DX:     Repeat count (MenuBorders_PrintMultipleBorderCharactersFromAL)
    340340;       SS:BP:  Ptr to MENU
    341341;   Returns:
     
    350350
    351351ALIGN JUMP_ALIGN
    352 PrintMultipleBorderCharactersFromAL:
     352MenuBorders_PrintMultipleBorderCharactersFromAL:
    353353    push    cx
    354354    mov     cx, dx
Note: See TracChangeset for help on using the changeset viewer.