Changeset 491 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayContext.asm
- Timestamp:
- Dec 15, 2012, 2:46:29 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/DisplayContext.asm
r489 r491 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ; GNU General Public License for more details. 16 ; GNU General Public License for more details. 17 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 18 ; 19 19 20 20 ; Section containing code … … 102 102 103 103 104 %ifdef INCLUDE_MENU_LIBRARY105 106 104 ;-------------------------------------------------------------------- 107 105 ; DisplayContext_Push 106 ; DisplayContext_Pop 108 107 ; Parameters: 109 108 ; Nothing … … 113 112 ; AX, DI 114 113 ;-------------------------------------------------------------------- 114 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 115 %ifndef MODULE_BOOT_MENU 116 %define EXCLUDE 117 %endif 118 %endif 119 120 %ifndef EXCLUDE 115 121 ALIGN DISPLAY_JUMP_ALIGN 116 122 DisplayContext_Push: … … 126 132 %endrep 127 133 %endif 128 134 129 135 mov ds, di ; Restore DS 130 136 jmp ax 131 137 132 ;-------------------------------------------------------------------- 133 ; DisplayContext_Pop 134 ; Parameters: 135 ; Nothing 136 ; Returns: 137 ; Nothing 138 ; Corrupts registers: 139 ; AX, DI 140 ;-------------------------------------------------------------------- 138 141 139 ALIGN DISPLAY_JUMP_ALIGN 142 140 DisplayContext_Pop: … … 145 143 pop ax ; Pop return address 146 144 147 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 145 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 148 146 %assign i DISPLAY_CONTEXT_size-2 149 147 %rep DISPLAY_CONTEXT_size / 2 … … 152 150 %endrep 153 151 %endif 154 152 155 153 push ax ; Push return address 156 154 push dx … … 159 157 mov ds, di ; Restore DS 160 158 ret 161 %endif 159 %endif ; EXCLUDE 160 %undef EXCLUDE 161 162 162 163 163 ;-------------------------------------------------------------------- … … 189 189 pop ds 190 190 ret 191 192 %endif ; INCLUDE_MENU_LIBRARY 191 %endif ; EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 193 192 194 193 … … 231 230 %endif 232 231 233 %ifdef INCLUDE_MENU_LIBRARY 234 232 233 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 234 %ifndef MODULE_BOOT_MENU 235 %define EXCLUDE 236 %endif 237 %endif 235 238 ;-------------------------------------------------------------------- 236 239 ; DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL … … 244 247 ; BL 245 248 ;-------------------------------------------------------------------- 249 %ifndef EXCLUDE ; 1 of 3 246 250 ALIGN DISPLAY_JUMP_ALIGN 247 251 DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL: … … 251 255 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fnCharOut], ax 252 256 ret 257 %endif 253 258 254 259 … … 263 268 ; Nothing 264 269 ;-------------------------------------------------------------------- 270 %ifndef EXCLUDE ; 2 of 3 265 271 ALIGN DISPLAY_JUMP_ALIGN 266 272 DisplayContext_SetCharacterAttributeFromAL: 267 273 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bAttribute], al 268 274 ret 275 %endif 269 276 270 277 … … 279 286 ; Nothing 280 287 ;-------------------------------------------------------------------- 288 %ifndef EXCLUDE ; 3 of 3 281 289 ALIGN DISPLAY_JUMP_ALIGN 282 290 DisplayContext_SetCharacterOutputParameterFromAX: 283 291 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCharOutParam], ax 284 292 ret 285 286 %endif ; INCLUDE_MENU_LIBRARY 287 293 %endif 294 295 %undef EXCLUDE 296 297 288 298 ;-------------------------------------------------------------------- 289 299 ; DisplayContext_GetCharacterOutputParameterToDX … … 295 305 ; Nothing 296 306 ;-------------------------------------------------------------------- 297 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS OR EXCLUDE_FROM_XTIDECFG ; This is currently unused (dead code)307 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS OR EXCLUDE_FROM_XTIDECFG 298 308 ALIGN DISPLAY_JUMP_ALIGN 299 309 DisplayContext_GetCharacterOutputParameterToDX: … … 322 332 %endif 323 333 324 334 325 335 ;-------------------------------------------------------------------- 326 336 ; DisplayContext_GetByteOffsetToAXfromCharacterOffsetInAX
Note:
See TracChangeset
for help on using the changeset viewer.