Changeset 45 in xtideuniversalbios for trunk/Assembly_Library/Src/Display
- Timestamp:
- Sep 29, 2010, 5:59:07 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/Assembly_Library/Src/Display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/Display.asm
r44 r45 2 2 ; Project name : Assembly Library 3 3 ; Created date : 2.7.2010 4 ; Last update : 2 7.9.20104 ; Last update : 28.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Display Library functions for CALL_DISPLAY_LIBRARY macro … … 68 68 69 69 at DISPLAY_LIB.SetCharacterPointerFromBXAX, dw DisplayContext_SetCharacterPointerFromBXAX 70 at DISPLAY_LIB.SetCharOutputFunctionFromAXwithAttribFlagIn DL, dw DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInDL70 at DISPLAY_LIB.SetCharOutputFunctionFromAXwithAttribFlagInBL, dw DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL 71 71 at DISPLAY_LIB.SetCharacterOutputParameterFromAX, dw DisplayContext_SetCharacterOutputParameterFromAX 72 72 at DISPLAY_LIB.SetCharacterAttributeFromAL, dw DisplayContext_SetCharacterAttributeFromAL -
trunk/Assembly_Library/Src/Display/DisplayContext.asm
r44 r45 2 2 ; Project name : Assembly Library 3 3 ; Created date : 25.6.2010 4 ; Last update : 2 7.9.20104 ; Last update : 28.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for managing display context. … … 153 153 154 154 ;-------------------------------------------------------------------- 155 ; DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagIn DL155 ; DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL 156 156 ; Parameters: 157 157 ; AX: Offset to character output function 158 ; DL: Attribute Flag159 ; DS: BDA segment (zero) 160 ; Returns: 161 ; Nothing 162 ; Corrupts registers: 163 ; Nothing 164 ;-------------------------------------------------------------------- 165 ALIGN JUMP_ALIGN 166 DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagIn DL:158 ; BL: Attribute Flag 159 ; DS: BDA segment (zero) 160 ; Returns: 161 ; Nothing 162 ; Corrupts registers: 163 ; Nothing 164 ;-------------------------------------------------------------------- 165 ALIGN JUMP_ALIGN 166 DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL: 167 167 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 172 169 ret 173 170
Note:
See TracChangeset
for help on using the changeset viewer.