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


Ignore:
Timestamp:
Sep 29, 2010, 5:59:07 PM (14 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to assembly library:
Changed SetCharOutputFunctionFromAXwithAttribFlagInDL to SetCharOutputFunctionFromAXwithAttribFlagInBL since DX register gets corrupted by Display_FunctionFromDI.
Implemented quicksort.

File:
1 edited

Legend:

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

    r44 r45  
    22; Project name  :   Assembly Library
    33; Created date  :   14.7.2010
    4 ; Last update   :   27.9.2010
     4; Last update   :   28.9.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for drawing menu borders.
     
    4545;       Nothing
    4646;   Corrupts registers:
    47 ;       AX, DX, SI, DI
     47;       AX, BX, SI, DI
    4848;--------------------------------------------------------------------
    4949ALIGN JUMP_ALIGN
    5050MenuBorders_AdjustDisplayContextForDrawingBorders:
    51     mov     dl, ATTRIBUTES_ARE_USED
     51    mov     bl, ATTRIBUTES_ARE_USED
    5252    mov     ax, MenuCharOut_MenuBorderTeletypeOutputWithAttribute
    53     CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInDL
     53    CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInBL
    5454
    5555    mov     ax, bp
     
    269269    call    MenuAttribute_SetToDisplayContextFromTypeInSI
    270270
    271     push    dx
    272     mov     dl, ATTRIBUTES_ARE_USED
     271    push    bx
     272    mov     bl, ATTRIBUTES_ARE_USED
    273273    mov     ax, FAST_OUTPUT_WITH_ATTRIBUTE_ONLY
    274     CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInDL
    275     pop     dx
     274    CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInBL
     275    pop     bx
    276276
    277277    call    PrintMultipleBorderCharactersFromAL ; AL does not matter
Note: See TracChangeset for help on using the changeset viewer.