Changeset 52 in xtideuniversalbios for trunk/Assembly_Library/Src/Display
- Timestamp:
- Oct 12, 2010, 6:51:07 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/Assembly_Library/Src/Display
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/CgaSnow.asm
r50 r52 2 2 ; Project name : Assembly Library 3 3 ; Created date : 8.10.2010 4 ; Last update : 9.10.20104 ; Last update : 12.10.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for preventing CGA snow. … … 23 23 cmp WORD [BDA.wVidPort], CGA_STATUS_REGISTER - OFFSET_TO_CGA_STATUS_REGISTER 24 24 jne SHORT .CgaNotFound 25 call DisplayPage_GetColumnsToALandRowsToAH 26 cmp ah, [BDA.bVidRows] ; Video rows stored only by EGA and later 27 je SHORT .CgaNotFound ; Must be EGA or later 25 26 ; All standard CGA modes use 25 rows but only EGA and later store it to BDA. 27 cmp BYTE [BDA.bVidRows], 25 28 jge SHORT .CgaNotFound 28 29 stc 29 30 ret … … 83 84 84 85 ;-------------------------------------------------------------------- 85 ; CgaSnow_Scasb86 ; Parameters:87 ; AL: Byte for comparison88 ; DS: BDA segment (zero)89 ; ES:DI: Ptr to video memory where to output90 ; Returns:91 ; DI: Incremented for next character92 ; Corrupts registers:93 ; AX, DX94 ;--------------------------------------------------------------------95 ALIGN JUMP_ALIGN96 CgaSnow_Scasb:97 call LoadCgaStatusRegisterAddressToDXifCgaPresent98 jz SHORT .ScasbWithoutWaitSinceUnknownPort99 100 mov ah, al101 cli ; Interrupt request would mess up timing102 WAIT_UNTIL_SAFE_CGA_WRITE103 mov al, ah104 .ScasbWithoutWaitSinceUnknownPort:105 scasb106 sti107 ret108 109 110 ;--------------------------------------------------------------------111 86 ; CgaSnow_RepMovsb 112 87 ; Parameters: -
trunk/Assembly_Library/Src/Display/DisplayContext.asm
r50 r52 2 2 ; Project name : Assembly Library 3 3 ; Created date : 25.6.2010 4 ; Last update : 9.10.20104 ; Last update : 11.10.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for managing display context. … … 119 119 120 120 ;-------------------------------------------------------------------- 121 ; DisplayContext_PrepareOffScreenBufferInESBXtoESDI 122 ; Parameters: 123 ; BX:AX: Ptr to off screen buffer 124 ; Returns: 125 ; Nothing 126 ; Corrupts registers: 127 ; AX 128 ;-------------------------------------------------------------------- 129 ALIGN JUMP_ALIGN 130 DisplayContext_PrepareOffScreenBufferInESBXtoESDI: 121 ; DisplayContext_PrepareOffScreenBufferInESBXwithLengthInCX 122 ; Parameters: 123 ; CX: Off screen buffer length in characters 124 ; ES:BX: Ptr to off screen buffer 125 ; Returns: 126 ; Nothing 127 ; Corrupts registers: 128 ; AX, DI 129 ;-------------------------------------------------------------------- 130 ALIGN JUMP_ALIGN 131 DisplayContext_PrepareOffScreenBufferInESBXwithLengthInCX: 131 132 push ds 132 133 … … 139 140 mov ax, BUFFER_OUTPUT_WITH_CHAR_ONLY 140 141 call DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL 142 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCharOutParam], cx 141 143 142 144 mov bx, di -
trunk/Assembly_Library/Src/Display/DisplayPrint.asm
r48 r52 2 2 ; Project name : Assembly Library 3 3 ; Created date : 26.6.2010 4 ; Last update : 27.9.20104 ; Last update : 11.10.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for display output. … … 326 326 ALIGN JUMP_ALIGN 327 327 DisplayPrint_Newline: 328 mov al, LF 329 call DisplayPrint_CharacterFromAL 328 330 mov al, CR 329 call DisplayPrint_CharacterFromAL330 mov al, LF331 331 ; Fall to DisplayPrint_CharacterFromAL 332 333 332 334 333 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.