Changeset 194 in xtideuniversalbios for trunk/Assembly_Library/Src/Display
- Timestamp:
- Nov 17, 2011, 11:07:58 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/Assembly_Library/Src/Display
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/DisplayContext.asm
r181 r194 100 100 pop ax ; Pop return address 101 101 102 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 102 103 %assign i 0 103 104 %rep DISPLAY_CONTEXT_size / 2 … … 105 106 %assign i i+2 106 107 %endrep 107 108 %endif 109 108 110 mov ds, di ; Restore DS 109 111 jmp ax … … 124 126 pop ax ; Pop return address 125 127 128 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 126 129 %assign i DISPLAY_CONTEXT_size-2 127 130 %rep DISPLAY_CONTEXT_size / 2 … … 129 132 %assign i i-2 130 133 %endrep 131 134 %endif 135 132 136 push ax ; Push return address 133 137 push dx … … 226 230 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fnCharOut], ax 227 231 ret 228 232 229 233 230 234 ;-------------------------------------------------------------------- … … 259 263 ret 260 264 265 261 266 ;-------------------------------------------------------------------- 262 267 ; DisplayContext_GetCharacterOutputParameterToDX … … 286 291 ; Nothing 287 292 ;-------------------------------------------------------------------- 293 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 288 294 ALIGN JUMP_ALIGN 289 295 DisplayContext_GetCharacterOffsetToAXfromByteOffsetInAX: … … 292 298 sar ax, 1 ; BYTE count to WORD count 293 299 ret 294 300 %endif 301 302 295 303 ;-------------------------------------------------------------------- 296 304 ; DisplayContext_GetByteOffsetToAXfromCharacterOffsetInAX … … 303 311 ; Nothing 304 312 ;-------------------------------------------------------------------- 313 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 305 314 ALIGN JUMP_ALIGN 306 315 DisplayContext_GetByteOffsetToAXfromCharacterOffsetInAX: … … 311 320 ReturnOffsetInAX: 312 321 ret 322 %endif -
trunk/Assembly_Library/Src/Display/DisplayFormatCompressed.asm
r186 r194 70 70 %define DisplayFormatCompressed_Format_s DisplayFormat_ParseCharacters_FromAX 71 71 72 DisplayFormatCompressed_Format_A: 72 DisplayFormatCompressed_Format_A: 73 73 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bAttribute], al 74 74 DisplayFormatCompressed_ret: ; jump target for other routines who need a "ret" … … 86 86 test ax,ax ; if parameter equals zero, emit dash string instead 87 87 jz DisplayFormat_ParseCharacters 88 ;;; fall through88 ; fall through 89 89 90 90 DisplayFormatCompressed_Format_2_u: 91 91 mov bh,2 ; only two characters (instead of the default 5) 92 ;;; fall through92 ; fall through 93 93 94 94 DisplayFormatCompressed_Format_u: … … 150 150 ;-------------------------------------------------------------------- 151 151 152 DisplayFormatCompressed_BaseFormatOffset: 153 154 DisplayFormat_ParseCharacters_FromAX: 152 DisplayFormatCompressed_BaseFormatOffset: 153 154 DisplayFormat_ParseCharacters_FromAX: 155 155 mov si,ax 156 ;;; Fall-through 156 ; fall through to DisplayFormat_ParseCharacters 157 157 158 158 ALIGN JUMP_ALIGN -
trunk/Assembly_Library/Src/Display/DisplayPage.asm
r101 r194 15 15 ; AX, DX 16 16 ;-------------------------------------------------------------------- 17 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 17 18 ALIGN JUMP_ALIGN 18 19 DisplayPage_SetFromAL: … … 21 22 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition], ax 22 23 ret 24 %endif 23 25 24 26 -
trunk/Assembly_Library/Src/Display/DisplayPrint.asm
r186 r194 151 151 ; AX, DX 152 152 ;-------------------------------------------------------------------- 153 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 154 153 155 ALIGN JUMP_ALIGN 154 156 DisplayPrint_CharacterBufferFromBXSIwithLengthInCX: … … 170 172 .NothingToPrintSinceZeroLength: 171 173 ret 174 %endif 172 175 173 176 … … 328 331 inc bp ; we didn't need a parameter after all, readjust BP 329 332 inc bp 330 ;;; fall-through 333 ; fall through to DisplayPrint_Newline 331 334 %endif 332 335
Note:
See TracChangeset
for help on using the changeset viewer.