Changeset 194 in xtideuniversalbios for trunk/Assembly_Library/Src
- Timestamp:
- Nov 17, 2011, 11:07:58 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/Assembly_Library/Src
- Files:
-
- 8 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 -
trunk/Assembly_Library/Src/Menu/MenuBorders.asm
r182 r194 60 60 ; AX, BX, CX, DX, SI, DI 61 61 ;-------------------------------------------------------------------- 62 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 62 63 ALIGN JUMP_ALIGN 63 64 MenuBorders_RefreshItemBorders: … … 68 69 call MenuBorders_GetNumberOfMiddleCharactersToDX 69 70 jmp SHORT RefreshItemBorders 70 71 71 %endif 72 73 72 74 ;-------------------------------------------------------------------- 73 75 ; MenuBorders_AdjustDisplayContextForDrawingBorders -
trunk/Assembly_Library/Src/Menu/MenuText.asm
r133 r194 15 15 ; AX, BX, CX, DX, SI, DI 16 16 ;-------------------------------------------------------------------- 17 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 17 18 ALIGN JUMP_ALIGN 18 19 MenuText_ClearTitleArea: … … 20 21 call PrepareToDrawTitleArea 21 22 mov cl, [bp+MENUINIT.bTitleLines] 22 jmp SHORT ClearCLlinesOfText 23 23 jmp SHORT MenuText_ClearInformationArea.ClearCLlinesOfText 24 %endif 25 24 26 ALIGN JUMP_ALIGN 25 27 MenuText_ClearInformationArea: … … 27 29 call MenuText_PrepareToDrawInformationArea 28 30 mov cl, [bp+MENUINIT.bInfoLines] 29 ClearCLlinesOfText:31 .ClearCLlinesOfText: 30 32 mov al, [bp+MENUINIT.bWidth] 31 33 sub al, MENU_HORIZONTAL_BORDER_LINES+(MENU_TEXT_COLUMN_OFFSET/2) -
trunk/Assembly_Library/Src/String/Char.asm
r181 r194 88 88 ; Nothing 89 89 ;-------------------------------------------------------------------- 90 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 90 91 ALIGN JUMP_ALIGN 91 92 Char_IsDecimalDigitInAL: 92 93 IS_BETWEEN_IMMEDIATES al, '0', '9' 93 94 ret 94 95 %endif 95 96 96 97 ;-------------------------------------------------------------------- -
trunk/Assembly_Library/Src/Util/Memory.asm
r131 r194 116 116 ; AX 117 117 ;-------------------------------------------------------------------- 118 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 118 119 ALIGN JUMP_ALIGN 119 120 Memory_ReserveCXbytesFromStackToDSSI: … … 124 125 mov si, sp 125 126 jmp ax 127 %endif
Note:
See TracChangeset
for help on using the changeset viewer.