Changeset 45 in xtideuniversalbios for trunk/Assembly_Library/Src/Display


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.

Location:
trunk/Assembly_Library/Src/Display
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Display/Display.asm

    r44 r45  
    22; Project name  :   Assembly Library
    33; Created date  :   2.7.2010
    4 ; Last update   :   27.9.2010
     4; Last update   :   28.9.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Display Library functions for CALL_DISPLAY_LIBRARY macro
     
    6868
    6969    at  DISPLAY_LIB.SetCharacterPointerFromBXAX,                    dw  DisplayContext_SetCharacterPointerFromBXAX
    70     at  DISPLAY_LIB.SetCharOutputFunctionFromAXwithAttribFlagInDL,  dw  DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInDL
     70    at  DISPLAY_LIB.SetCharOutputFunctionFromAXwithAttribFlagInBL,  dw  DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL
    7171    at  DISPLAY_LIB.SetCharacterOutputParameterFromAX,              dw  DisplayContext_SetCharacterOutputParameterFromAX
    7272    at  DISPLAY_LIB.SetCharacterAttributeFromAL,                    dw  DisplayContext_SetCharacterAttributeFromAL
  • trunk/Assembly_Library/Src/Display/DisplayContext.asm

    r44 r45  
    22; Project name  :   Assembly Library
    33; Created date  :   25.6.2010
    4 ; Last update   :   27.9.2010
     4; Last update   :   28.9.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for managing display context.
     
    153153
    154154;--------------------------------------------------------------------
    155 ; DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInDL
     155; DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL
    156156;   Parameters:
    157157;       AX:     Offset to character output function
    158 ;       DL:     Attribute Flag
    159 ;       DS:     BDA segment (zero)
    160 ;   Returns:
    161 ;       Nothing
    162 ;   Corrupts registers:
    163 ;       Nothing
    164 ;--------------------------------------------------------------------
    165 ALIGN JUMP_ALIGN
    166 DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInDL:
     158;       BL:     Attribute Flag
     159;       DS:     BDA segment (zero)
     160;   Returns:
     161;       Nothing
     162;   Corrupts registers:
     163;       Nothing
     164;--------------------------------------------------------------------
     165ALIGN JUMP_ALIGN
     166DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL:
    167167    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fnCharOut], ax
    168     and     BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], ~FLG_CONTEXT_ATTRIBUTES
    169     mov     al, dl
    170     and     al, FLG_CONTEXT_ATTRIBUTES
    171     or      [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], al
     168    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], bl
    172169    ret
    173170
Note: See TracChangeset for help on using the changeset viewer.