Changeset 293 in xtideuniversalbios for trunk/Configurator/Src/Libraries/menu/prntvram.asm
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/Libraries/menu/prntvram.asm
r2 r293 1 ; File name : prntvram.asm2 1 ; Project name : Print library 3 ; Created date : 7.12.2009 4 ; Last update : 7.12.2009 5 ; Author : Tomi Tilli 6 ; Description : ASM library to for character and string 2 ; Description : ASM library for character and string 7 3 ; printing using direct access to VRAM. 8 4 ; … … 27 23 ;-------------------------------------------------------------------- 28 24 ; Return pointer to VRAM for current cursor position. 29 ; 25 ; 30 26 ; PrntVram_GetPtr 31 27 ; Parameters: … … 43 39 44 40 ; Calculate offset to VRAM 45 eMOVZX di, BYTE [es:BDA.bVidPageIdx]; Load page index41 eMOVZX di, [es:BDA.bVidPageIdx] ; Load page index 46 42 shl di, 1 ; Shift for word lookup 47 43 mov ax, [es:di+BDA.rgwVidCurPos] ; Load cursor position … … 70 66 ; use this macro to print characters (so printing implementation 71 67 ; can be easily modified when needed). 72 ; 68 ; 73 69 ; PRINT_CHAR 74 70 ; Parameters: … … 117 113 pop es 118 114 je .IncRow 119 115 120 116 ; Inc column only 121 117 push dx … … 147 143 ; use this macro to print strings (so printing implementation 148 144 ; can be easily modified when needed). 149 ; 145 ; 150 146 ; PRINT_STR 151 147 ; Parameters: … … 167 163 ; All string printing functions must use this macro to print strings 168 164 ; (so printing implementation can be easily modified when needed). 169 ; 165 ; 170 166 ; PRINT_STR_LEN 171 167 ; Parameters: … … 194 190 cmp al, 20h ; Printable character? 195 191 jb .Bios ; If not, use BIOS functions 196 192 197 193 push dx 198 194 mov al, dl 199 195 PRINT_CHAR 200 196 pop dx 201 197 202 198 ;stosb ; Store char to [ES:DI] 203 199 inc dx ; Increment chars printed
Note: See TracChangeset
for help on using the changeset viewer.