Changeset 369 in xtideuniversalbios for trunk/Assembly_Library/Src/Display
- Timestamp:
- Mar 29, 2012, 9:29:28 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/Assembly_Library/Src/Display
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/CgaSnow.asm
r223 r369 15 15 ; AX 16 16 ;-------------------------------------------------------------------- 17 ALIGN JUMP_ALIGN17 ALIGN DISPLAY_JUMP_ALIGN 18 18 CgaSnow_IsCgaPresent: 19 19 cmp WORD [BDA.wVidPort], CGA_STATUS_REGISTER - OFFSET_TO_CGA_STATUS_REGISTER … … 25 25 stc 26 26 ret 27 ALIGN JUMP_ALIGN27 ALIGN DISPLAY_JUMP_ALIGN 28 28 .CgaNotFound: 29 29 clc … … 48 48 ; AX, DX 49 49 ;-------------------------------------------------------------------- 50 ALIGN JUMP_ALIGN50 ALIGN DISPLAY_JUMP_ALIGN 51 51 CgaSnow_Stosb: 52 52 call LoadCgaStatusRegisterAddressToDXifCgaPresent … … 62 62 ret 63 63 64 ALIGN JUMP_ALIGN64 ALIGN DISPLAY_JUMP_ALIGN 65 65 CgaSnow_Stosw: 66 66 push bx … … 91 91 ; AX, CX, DX 92 92 ;-------------------------------------------------------------------- 93 ALIGN JUMP_ALIGN93 ALIGN DISPLAY_JUMP_ALIGN 94 94 CgaSnow_RepMovsb: 95 95 call LoadCgaStatusRegisterAddressToDXifCgaPresent … … 119 119 ; Nothing 120 120 ;-------------------------------------------------------------------- 121 ALIGN JUMP_ALIGN121 ALIGN DISPLAY_JUMP_ALIGN 122 122 LoadCgaStatusRegisterAddressToDXifCgaPresent: 123 123 test BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], FLG_CONTEXT_CGA 124 124 jz SHORT .NoCgaDetected 125 125 mov dx, CGA_STATUS_REGISTER 126 ALIGN JUMP_ALIGN, ret126 ALIGN DISPLAY_JUMP_ALIGN, ret 127 127 .NoCgaDetected: 128 128 ret -
trunk/Assembly_Library/Src/Display/Display.asm
r341 r369 16 16 ; AX (unless used as a return register), DI 17 17 ;-------------------------------------------------------------------- 18 ALIGN JUMP_ALIGN18 ALIGN DISPLAY_JUMP_ALIGN 19 19 Display_FunctionFromDI: 20 20 push es … … 43 43 ; AX 44 44 ;-------------------------------------------------------------------- 45 ALIGN JUMP_ALIGN45 ALIGN DISPLAY_JUMP_ALIGN 46 46 Display_FormatNullTerminatedStringFromCSSI: 47 47 pop ax ; Discard return address to inside Display_FunctionFromDI -
trunk/Assembly_Library/Src/Display/DisplayCharOut.asm
r101 r369 21 21 ; AX, DX 22 22 ;-------------------------------------------------------------------- 23 ALIGN JUMP_ALIGN23 ALIGN DISPLAY_JUMP_ALIGN 24 24 DisplayCharOut_TeletypeOutputWithAttribute: 25 25 cmp al, ' ' ; Printable character? … … 28 28 ret 29 29 30 ALIGN JUMP_ALIGN30 ALIGN DISPLAY_JUMP_ALIGN 31 31 DisplayCharOut_TeletypeOutput: 32 32 cmp al, ' ' ; Printable character? … … 45 45 ; AX, DX 46 46 ;-------------------------------------------------------------------- 47 ALIGN JUMP_ALIGN47 ALIGN DISPLAY_JUMP_ALIGN 48 48 DisplayCharOut_BiosTeletypeOutput: 49 49 push ax … … 76 76 ; AX, DX 77 77 ;-------------------------------------------------------------------- 78 ALIGN JUMP_ALIGN78 ALIGN DISPLAY_JUMP_ALIGN 79 79 DisplayCharOut_Attribute: 80 80 xchg al, ah ; Swap character and attribute … … 83 83 ret 84 84 85 ALIGN JUMP_ALIGN85 ALIGN DISPLAY_JUMP_ALIGN 86 86 DisplayCharOut_Character: 87 87 WAIT_RETRACE_IF_NECESSARY_THEN stosb … … 89 89 ret 90 90 91 ALIGN JUMP_ALIGN91 ALIGN DISPLAY_JUMP_ALIGN 92 92 DisplayCharOut_CharacterWithAttribute: 93 93 WAIT_RETRACE_IF_NECESSARY_THEN stosw … … 107 107 ; AX, DX 108 108 ;-------------------------------------------------------------------- 109 ALIGN JUMP_ALIGN109 ALIGN DISPLAY_JUMP_ALIGN 110 110 DisplayCharOut_WriteCharacterToBuffer: 111 111 cmp WORD [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCharOutParam], BYTE 0 -
trunk/Assembly_Library/Src/Display/DisplayContext.asm
r287 r369 14 14 ; AX, DX, DI 15 15 ;-------------------------------------------------------------------- 16 ALIGN JUMP_ALIGN16 ALIGN DISPLAY_JUMP_ALIGN 17 17 DisplayContext_Initialize: 18 18 mov WORD [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fnCharOut], DEFAULT_CHARACTER_OUTPUT … … 79 79 ; AX, DX 80 80 ;-------------------------------------------------------------------- 81 ALIGN JUMP_ALIGN81 ALIGN DISPLAY_JUMP_ALIGN 82 82 DisplayContext_SynchronizeToHardware: 83 83 call DisplayPage_SynchronizeToHardware … … 95 95 ; AX, DI 96 96 ;-------------------------------------------------------------------- 97 ALIGN JUMP_ALIGN97 ALIGN DISPLAY_JUMP_ALIGN 98 98 DisplayContext_Push: 99 99 mov di, ds ; Backup DS … … 121 121 ; AX, DI 122 122 ;-------------------------------------------------------------------- 123 ALIGN JUMP_ALIGN123 ALIGN DISPLAY_JUMP_ALIGN 124 124 DisplayContext_Pop: 125 125 mov di, ds ; Backup DS … … 154 154 ;-------------------------------------------------------------------- 155 155 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 156 ALIGN JUMP_ALIGN156 ALIGN DISPLAY_JUMP_ALIGN 157 157 DisplayContext_PrepareOffScreenBufferInESBXwithLengthInCX: 158 158 push ds … … 185 185 ;-------------------------------------------------------------------- 186 186 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 187 ALIGN JUMP_ALIGN187 ALIGN DISPLAY_JUMP_ALIGN 188 188 DisplayContext_SetCharacterPointerFromBXAX: 189 189 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition], ax … … 205 205 ;-------------------------------------------------------------------- 206 206 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 207 ALIGN JUMP_ALIGN207 ALIGN DISPLAY_JUMP_ALIGN 208 208 DisplayContext_GetCharacterPointerToBXAX: 209 209 mov ax, [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition] … … 224 224 ; BL 225 225 ;-------------------------------------------------------------------- 226 ALIGN JUMP_ALIGN226 ALIGN DISPLAY_JUMP_ALIGN 227 227 DisplayContext_SetCharOutputFunctionFromAXwithAttribFlagInBL: 228 228 and bl, FLG_CONTEXT_ATTRIBUTES … … 243 243 ; Nothing 244 244 ;-------------------------------------------------------------------- 245 ALIGN JUMP_ALIGN245 ALIGN DISPLAY_JUMP_ALIGN 246 246 DisplayContext_SetCharacterAttributeFromAL: 247 247 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bAttribute], al … … 259 259 ; Nothing 260 260 ;-------------------------------------------------------------------- 261 ALIGN JUMP_ALIGN261 ALIGN DISPLAY_JUMP_ALIGN 262 262 DisplayContext_SetCharacterOutputParameterFromAX: 263 263 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCharOutParam], ax … … 275 275 ;-------------------------------------------------------------------- 276 276 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS OR EXCLUDE_FROM_XTIDECFG ; This is currently unused (dead code) 277 ALIGN JUMP_ALIGN277 ALIGN DISPLAY_JUMP_ALIGN 278 278 DisplayContext_GetCharacterOutputParameterToDX: 279 279 mov dx, [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCharOutParam] … … 293 293 ;-------------------------------------------------------------------- 294 294 %ifndef MODULE_STRINGS_COMPRESSED 295 ALIGN JUMP_ALIGN295 ALIGN DISPLAY_JUMP_ALIGN 296 296 DisplayContext_GetCharacterOffsetToAXfromByteOffsetInAX: 297 297 test BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], FLG_CONTEXT_ATTRIBUTES … … 313 313 ;-------------------------------------------------------------------- 314 314 %ifndef MODULE_STRINGS_COMPRESSED 315 ALIGN JUMP_ALIGN315 ALIGN DISPLAY_JUMP_ALIGN 316 316 DisplayContext_GetByteOffsetToAXfromCharacterOffsetInAX: 317 317 test BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], FLG_CONTEXT_ATTRIBUTES 318 318 jz SHORT ReturnOffsetInAX 319 319 sal ax, 1 ; WORD count to BYTE count 320 ALIGN JUMP_ALIGN, ret320 ALIGN DISPLAY_JUMP_ALIGN, ret 321 321 ReturnOffsetInAX: 322 322 ret -
trunk/Assembly_Library/Src/Display/DisplayCursor.asm
r101 r369 15 15 ; Nothing 16 16 ;-------------------------------------------------------------------- 17 ALIGN JUMP_ALIGN17 ALIGN DISPLAY_JUMP_ALIGN 18 18 DisplayCursor_SetShapeFromAX: 19 19 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCursorShape], ax … … 32 32 ; AX, DX 33 33 ;-------------------------------------------------------------------- 34 ALIGN JUMP_ALIGN34 ALIGN DISPLAY_JUMP_ALIGN 35 35 DisplayCursor_SetCoordinatesFromAX: 36 36 xchg dx, ax … … 57 57 ; Nothing 58 58 ;-------------------------------------------------------------------- 59 ALIGN JUMP_ALIGN59 ALIGN DISPLAY_JUMP_ALIGN 60 60 DisplayCursor_GetSoftwareCoordinatesToAX: 61 61 mov ax, [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition] … … 77 77 ; DX 78 78 ;-------------------------------------------------------------------- 79 ALIGN JUMP_ALIGN79 ALIGN DISPLAY_JUMP_ALIGN 80 80 DisplayCursor_GetHardwareCoordinatesToAX: 81 81 push cx … … 101 101 ; AX, DX 102 102 ;-------------------------------------------------------------------- 103 ALIGN JUMP_ALIGN103 ALIGN DISPLAY_JUMP_ALIGN 104 104 DisplayCursor_SynchronizeShapeToHardware: 105 105 mov dx, [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCursorShape] … … 138 138 ; AX, DX 139 139 ;-------------------------------------------------------------------- 140 ALIGN JUMP_ALIGN140 ALIGN DISPLAY_JUMP_ALIGN 141 141 DisplayCursor_SynchronizeCoordinatesToHardware: 142 142 call DisplayCursor_GetSoftwareCoordinatesToAX -
trunk/Assembly_Library/Src/Display/DisplayFormat.asm
r341 r369 18 18 ; AX, BX, CX, DX, BP 19 19 ;-------------------------------------------------------------------- 20 ALIGN JUMP_ALIGN20 ALIGN DISPLAY_JUMP_ALIGN 21 21 DisplayFormat_ParseCharacters: 22 22 call ReadCharacterAndTestForNull … … 69 69 ; AX 70 70 ;-------------------------------------------------------------------- 71 ALIGN JUMP_ALIGN71 ALIGN DISPLAY_JUMP_ALIGN 72 72 ParsePlaceholderSizeDigitFromALtoCX: 73 73 mov [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition], di … … 90 90 ; Nothing 91 91 ;-------------------------------------------------------------------- 92 ALIGN JUMP_ALIGN92 ALIGN DISPLAY_JUMP_ALIGN 93 93 ReadCharacterAndTestForNull: 94 94 cs lodsb ; Load from CS:SI to AL … … 106 106 ; AX, BX 107 107 ;-------------------------------------------------------------------- 108 ALIGN JUMP_ALIGN108 ALIGN DISPLAY_JUMP_ALIGN 109 109 GetFormatSpecifierParserToAX: 110 110 mov bx, .rgcFormatCharToLookupIndex 111 ALIGN JUMP_ALIGN111 ALIGN DISPLAY_JUMP_ALIGN 112 112 .CheckForNextSpecifierParser: 113 113 cmp al, [cs:bx] … … 118 118 mov ax, c_FormatCharacter 119 119 ret 120 ALIGN JUMP_ALIGN120 ALIGN DISPLAY_JUMP_ALIGN 121 121 .ConvertIndexToFunctionOffset: 122 122 sub bx, .rgcFormatCharToLookupIndex … … 171 171 ; AX, BX, CX, DX 172 172 ;-------------------------------------------------------------------- 173 ALIGN JUMP_ALIGN173 ALIGN DISPLAY_JUMP_ALIGN 174 174 PrependOrAppendSpaces: 175 175 mov ax, di … … 210 210 ; AX, BX, CX, DX 211 211 ;-------------------------------------------------------------------- 212 ALIGN JUMP_ALIGN212 ALIGN DISPLAY_JUMP_ALIGN 213 213 .PrependWithSpaces: 214 214 xchg ax, cx … … 248 248 ; AX, CX, DX, SI 249 249 ;-------------------------------------------------------------------- 250 ALIGN JUMP_ALIGN250 ALIGN DISPLAY_JUMP_ALIGN 251 251 .ReverseCopyCXbytesFromESSItoESDI: 252 252 test BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], FLG_CONTEXT_ATTRIBUTES … … 256 256 dec di ; Point to preceeding character instead of attribute 257 257 ret 258 ALIGN JUMP_ALIGN258 ALIGN DISPLAY_JUMP_ALIGN 259 259 .CopyWithoutDisplayProcessing: 260 260 eSEG_STR rep, es, movsb … … 271 271 ; Corrupts registers: 272 272 ; AX, CX, DX 273 ALIGN JUMP_ALIGN273 ALIGN DISPLAY_JUMP_ALIGN 274 274 .ReversePrintAXspacesStartingFromESDI: 275 275 call DisplayContext_GetCharacterOffsetToAXfromByteOffsetInAX … … 292 292 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 293 293 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 294 ALIGN JUMP_ALIGN294 ALIGN DISPLAY_JUMP_ALIGN 295 295 a_FormatAttributeForNextCharacter: 296 296 mov bl, [bp] … … 307 307 %endif 308 308 309 ALIGN JUMP_ALIGN309 ALIGN DISPLAY_JUMP_ALIGN 310 310 A_FormatAttributeForRemainingString: 311 311 mov al, [bp] … … 314 314 315 315 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 316 ALIGN JUMP_ALIGN316 ALIGN DISPLAY_JUMP_ALIGN 317 317 d_FormatSignedDecimalWord: 318 318 mov ax, [bp] … … 321 321 %endif 322 322 323 ALIGN JUMP_ALIGN323 ALIGN DISPLAY_JUMP_ALIGN 324 324 u_FormatUnsignedDecimalWord: 325 325 mov ax, [bp] … … 327 327 jmp DisplayPrint_WordFromAXWithBaseInBX 328 328 329 ALIGN JUMP_ALIGN329 ALIGN DISPLAY_JUMP_ALIGN 330 330 x_FormatHexadecimalWord: 331 331 mov ax, [bp] … … 335 335 jmp DisplayPrint_CharacterFromAL 336 336 337 ALIGN JUMP_ALIGN337 ALIGN DISPLAY_JUMP_ALIGN 338 338 I_FormatDashForZero: 339 339 mov ax, [bp] … … 343 343 ;;; fall-through 344 344 345 ALIGN JUMP_ALIGN345 ALIGN DISPLAY_JUMP_ALIGN 346 346 s_FormatStringFromSegmentCS: 347 347 push si … … 367 367 ret 368 368 369 ALIGN JUMP_ALIGN369 ALIGN DISPLAY_JUMP_ALIGN 370 370 z_FormatStringFromSegmentZero: 371 371 xchg si, [bp] … … 376 376 377 377 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 378 ALIGN JUMP_ALIGN378 ALIGN DISPLAY_JUMP_ALIGN 379 379 S_FormatStringFromFarPointer: 380 380 mov bx, [bp-2] … … 387 387 %endif 388 388 389 ALIGN JUMP_ALIGN389 ALIGN DISPLAY_JUMP_ALIGN 390 390 c_FormatCharacter: 391 391 mov al, [bp] … … 393 393 394 394 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 395 ALIGN JUMP_ALIGN395 ALIGN DISPLAY_JUMP_ALIGN 396 396 t_FormatRepeatCharacter: 397 397 push cx … … 404 404 ret 405 405 406 ALIGN JUMP_ALIGN406 ALIGN DISPLAY_JUMP_ALIGN 407 407 percent_FormatPercent: 408 408 mov al, '%' … … 410 410 %endif 411 411 412 ALIGN JUMP_ALIGN412 ALIGN DISPLAY_JUMP_ALIGN 413 413 PrepareToPrependParameterWithSpaces: 414 414 neg cx 415 415 ; Fall to PrepareToAppendSpacesAfterParameter 416 416 417 ALIGN JUMP_ALIGN417 ALIGN DISPLAY_JUMP_ALIGN 418 418 PrepareToAppendSpacesAfterParameter: 419 419 add sp, BYTE 2 ; Remove return offset -
trunk/Assembly_Library/Src/Display/DisplayFormatCompressed.asm
r241 r369 151 151 ; fall through to DisplayFormat_ParseCharacters 152 152 153 ALIGN JUMP_ALIGN153 ALIGN DISPLAY_JUMP_ALIGN 154 154 DisplayFormat_ParseCharacters: 155 155 ; … … 184 184 185 185 186 ALIGN JUMP_ALIGN186 ALIGN DISPLAY_JUMP_ALIGN 187 187 DisplayFormatCompressed_TranslatesAndFormats: 188 188 ; -
trunk/Assembly_Library/Src/Display/DisplayPage.asm
r194 r369 16 16 ;-------------------------------------------------------------------- 17 17 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 18 ALIGN JUMP_ALIGN18 ALIGN DISPLAY_JUMP_ALIGN 19 19 DisplayPage_SetFromAL: 20 20 xor ah, ah … … 35 35 ; Nothing 36 36 ;-------------------------------------------------------------------- 37 ALIGN JUMP_ALIGN37 ALIGN DISPLAY_JUMP_ALIGN 38 38 DisplayPage_GetColumnsToALandRowsToAH: 39 39 mov al, [VIDEO_BDA.wColumns] ; 40 or 80 … … 51 51 ; AX, DX 52 52 ;-------------------------------------------------------------------- 53 ALIGN JUMP_ALIGN53 ALIGN DISPLAY_JUMP_ALIGN 54 54 DisplayPage_SynchronizeToHardware: 55 55 xor dx, dx -
trunk/Assembly_Library/Src/Display/DisplayPrint.asm
r341 r369 42 42 ; AX, DX 43 43 ;-------------------------------------------------------------------- 44 ALIGN JUMP_ALIGN44 ALIGN DISPLAY_JUMP_ALIGN 45 45 DisplayPrint_FormattedNullTerminatedStringFromCSSI: 46 46 push bp … … 79 79 ;-------------------------------------------------------------------- 80 80 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 81 ALIGN JUMP_ALIGN81 ALIGN DISPLAY_JUMP_ALIGN 82 82 DisplayPrint_SignedWordFromAXWithBaseInBX: 83 83 test ax, ax … … 106 106 ; AX, DX 107 107 ;-------------------------------------------------------------------- 108 ALIGN JUMP_ALIGN108 ALIGN DISPLAY_JUMP_ALIGN 109 109 DisplayPrint_WordFromAXWithBaseInBX: 110 110 push cx … … 112 112 113 113 xor cx, cx 114 ALIGN JUMP_ALIGN114 ALIGN DISPLAY_JUMP_ALIGN 115 115 .DivideLoop: 116 116 xor dx, dx ; DX:AX now holds the integer … … 123 123 PrintAllPushedDigits: 124 124 mov bx, g_rgcDigitToCharacter 125 ALIGN JUMP_ALIGN125 ALIGN DISPLAY_JUMP_ALIGN 126 126 .PrintNextDigit: 127 127 pop ax ; Pop digit … … 149 149 ;-------------------------------------------------------------------- 150 150 %ifndef EXCLUDE_FROM_XTIDECFG ; Not used in XTIDECFG 151 ALIGN JUMP_ALIGN151 ALIGN DISPLAY_JUMP_ALIGN 152 152 DisplayPrint_QWordFromSSBPwithBaseInBX: 153 153 push cx … … 156 156 mov cx, bx ; CX = Integer base 157 157 xor bx, bx ; BX = Character count 158 ALIGN JUMP_ALIGN158 ALIGN DISPLAY_JUMP_ALIGN 159 159 .DivideLoop: 160 160 call Math_DivQWatSSBPbyCX; Divide by base … … 183 183 ;-------------------------------------------------------------------- 184 184 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 185 ALIGN JUMP_ALIGN185 ALIGN DISPLAY_JUMP_ALIGN 186 186 DisplayPrint_CharacterBufferFromBXSIwithLengthInCX: 187 187 jcxz .NothingToPrintSinceZeroLength … … 189 189 push cx 190 190 191 ALIGN JUMP_ALIGN191 ALIGN DISPLAY_JUMP_ALIGN 192 192 .PrintNextCharacter: 193 193 mov ds, bx … … 216 216 ; AX, DX 217 217 ;-------------------------------------------------------------------- 218 ALIGN JUMP_ALIGN218 ALIGN DISPLAY_JUMP_ALIGN 219 219 DisplayPrint_ClearScreenWithCharInALandAttributeInAH: 220 220 push di … … 248 248 ;-------------------------------------------------------------------- 249 249 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 250 ALIGN JUMP_ALIGN250 ALIGN DISPLAY_JUMP_ALIGN 251 251 DisplayPrint_ClearAreaWithHeightInAHandWidthInAL: 252 252 push si … … 259 259 xor cx, cx 260 260 261 ALIGN JUMP_ALIGN261 ALIGN DISPLAY_JUMP_ALIGN 262 262 .ClearRowLoop: 263 263 mov cl, bl ; Area width now in CX … … 291 291 ; DX 292 292 ;-------------------------------------------------------------------- 293 ALIGN JUMP_ALIGN293 ALIGN DISPLAY_JUMP_ALIGN 294 294 DisplayPrint_RepeatCharacterFromALwithCountInCX: 295 295 jcxz .NothingToRepeat 296 296 push cx 297 297 298 ALIGN JUMP_ALIGN298 ALIGN DISPLAY_JUMP_ALIGN 299 299 .RepeatCharacter: 300 300 push ax … … 324 324 ;;; All strings in CSSI should go through the DisplayFormatCompressed code to be decoded. 325 325 ;;; 326 ALIGN JUMP_ALIGN326 ALIGN DISPLAY_JUMP_ALIGN 327 327 DisplayPrint_NullTerminatedStringFromCSSI: 328 328 push bx … … 350 350 ;-------------------------------------------------------------------- 351 351 %ifdef MODULE_STRINGS_COMPRESSED 352 ALIGN JUMP_ALIGN352 ALIGN DISPLAY_JUMP_ALIGN 353 353 DisplayPrint_Newline_FormatAdjustBP: 354 354 inc bp ; we didn't need a parameter after all, readjust BP … … 357 357 %endif 358 358 359 ALIGN JUMP_ALIGN359 ALIGN DISPLAY_JUMP_ALIGN 360 360 DisplayPrint_Newline: 361 361 mov al, LF … … 376 376 ; AX, DX 377 377 ;-------------------------------------------------------------------- 378 ALIGN JUMP_ALIGN378 ALIGN DISPLAY_JUMP_ALIGN 379 379 DisplayPrint_CharacterFromAL: 380 380 test al,al … … 396 396 ; AX, DX 397 397 ;-------------------------------------------------------------------- 398 ALIGN JUMP_ALIGN398 ALIGN DISPLAY_JUMP_ALIGN 399 399 DisplayPrint_NullTerminatedStringFromBXSI: 400 400 push si … … 402 402 403 403 xor cx, cx 404 ALIGN JUMP_ALIGN404 ALIGN DISPLAY_JUMP_ALIGN 405 405 .PrintNextCharacter: 406 406 mov ds, bx ; String segment to DS … … 412 412 jmp SHORT .PrintNextCharacter 413 413 414 ALIGN JUMP_ALIGN414 ALIGN DISPLAY_JUMP_ALIGN 415 415 .EndOfString: 416 416 pop cx
Note:
See TracChangeset
for help on using the changeset viewer.