Changeset 491 in xtideuniversalbios for trunk/Assembly_Library/Src/Display
- Timestamp:
- Dec 15, 2012, 2:46:29 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Assembly_Library/Src/Display
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/CgaSnow.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 … … 94 94 ret 95 95 96 %ifdef INCLUDE_MENU_LIBRARY 96 97 97 ;-------------------------------------------------------------------- 98 98 ; CgaSnow_RepMovsb … … 107 107 ; AX, CX, DX 108 108 ;-------------------------------------------------------------------- 109 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 110 %ifdef MODULE_STRINGS_COMPRESSED 111 %define EXCLUDE 112 %endif 113 %ifdef MODULE_BOOT_MENU 114 %undef EXCLUDE 115 %endif 116 %endif 117 118 %ifndef EXCLUDE 109 119 ALIGN DISPLAY_JUMP_ALIGN 110 120 CgaSnow_RepMovsb: … … 123 133 ret 124 134 %endif 135 %undef EXCLUDE 136 125 137 126 138 ;-------------------------------------------------------------------- -
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 -
trunk/Assembly_Library/Src/Display/DisplayCursor.asm
r489 r491 37 37 ret 38 38 39 %ifdef INCLUDE_MENU_LIBRARY 39 40 40 ;-------------------------------------------------------------------- 41 41 ; DisplayCursor_SetShapeFromAX … … 48 48 ; Nothing 49 49 ;-------------------------------------------------------------------- 50 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 51 %ifndef MODULE_BOOT_MENU 52 %define EXCLUDE 53 %endif 54 %endif 55 56 %ifndef EXCLUDE 50 57 ALIGN DISPLAY_JUMP_ALIGN 51 58 DisplayCursor_SetShapeFromAX: … … 53 60 ret 54 61 %endif 55 62 %undef EXCLUDE 63 64 56 65 ;-------------------------------------------------------------------- 57 66 ; DisplayCursor_SetCoordinatesFromAX -
trunk/Assembly_Library/Src/Display/DisplayPrint.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 … … 109 109 110 110 111 %ifndef MODULE_STRINGS_COMPRESSED112 111 ;-------------------------------------------------------------------- 113 112 ; DisplayPrint_WordFromAXWithBaseInBX … … 122 121 ; AX, DX 123 122 ;-------------------------------------------------------------------- 123 %ifndef MODULE_STRINGS_COMPRESSED 124 124 ALIGN DISPLAY_JUMP_ALIGN 125 125 DisplayPrint_WordFromAXWithBaseInBX: … … 152 152 g_rgcDigitToCharacter: db "0123456789ABCDEF" 153 153 154 %endif ; MODULE_STRINGS_COMPRESSED 155 154 156 ;-------------------------------------------------------------------- 155 157 ; DisplayPrint_QWordFromSSBPwithBaseInBX … … 164 166 ; AX, DX, [SS:BP] 165 167 ;-------------------------------------------------------------------- 166 %ifndef EXCLUDE_FROM_XTIDE CFG ; Not used inXTIDECFG168 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS OR EXCLUDE_FROM_XTIDECFG 167 169 ALIGN DISPLAY_JUMP_ALIGN 168 170 DisplayPrint_QWordFromSSBPwithBaseInBX: … … 181 183 mov cx, bx ; Character count to CX 182 184 jmp SHORT PrintAllPushedDigits 183 %endif ; EXCLUDE_FROM_XTIDECFG 184 185 %endif ; MODULE_STRINGS_COMPRESSED 185 %endif 186 186 187 187 … … 220 220 221 221 222 %ifdef INCLUDE_MENU_LIBRARY223 222 ;-------------------------------------------------------------------- 224 223 ; DisplayPrint_ClearScreenWithCharInALandAttributeInAH … … 233 232 ; AX, DX 234 233 ;-------------------------------------------------------------------- 234 %ifdef INCLUDE_MENU_LIBRARY 235 235 ALIGN DISPLAY_JUMP_ALIGN 236 236 DisplayPrint_ClearScreenWithCharInALandAttributeInAH: … … 251 251 ret 252 252 %endif 253 253 254 254 255 ;-------------------------------------------------------------------- 255 256 ; DisplayPrint_ClearAreaWithHeightInAHandWidthInAL
Note:
See TracChangeset
for help on using the changeset viewer.