Changeset 369 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayFormat.asm


Ignore:
Timestamp:
Mar 29, 2012, 9:29:28 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed align directives for initalization code and added define for align in boot-time calls to the assembly library (defaulting to 1), resulting in a significant savings for the AT and 386 builds. Fixed a bug with switch command line handling in the serial server. Put in CR characters in licesnse.txt, so that it properly displays on Windows. In the configurator, added default values for user supplied CHS and LBA values, defaulting to values within range when those features are enabled. Updated the copyright message in the configurator as the literal word Copyright is important.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Display/DisplayFormat.asm

    r341 r369  
    1818;       AX, BX, CX, DX, BP
    1919;--------------------------------------------------------------------
    20 ALIGN JUMP_ALIGN
     20ALIGN DISPLAY_JUMP_ALIGN
    2121DisplayFormat_ParseCharacters:
    2222    call    ReadCharacterAndTestForNull
     
    6969;       AX
    7070;--------------------------------------------------------------------
    71 ALIGN JUMP_ALIGN
     71ALIGN DISPLAY_JUMP_ALIGN
    7272ParsePlaceholderSizeDigitFromALtoCX:
    7373    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fpCursorPosition], di
     
    9090;       Nothing
    9191;--------------------------------------------------------------------
    92 ALIGN JUMP_ALIGN
     92ALIGN DISPLAY_JUMP_ALIGN
    9393ReadCharacterAndTestForNull:
    9494    cs lodsb                                ; Load from CS:SI to AL
     
    106106;       AX, BX
    107107;--------------------------------------------------------------------
    108 ALIGN JUMP_ALIGN
     108ALIGN DISPLAY_JUMP_ALIGN
    109109GetFormatSpecifierParserToAX:
    110110    mov     bx, .rgcFormatCharToLookupIndex
    111 ALIGN JUMP_ALIGN
     111ALIGN DISPLAY_JUMP_ALIGN
    112112.CheckForNextSpecifierParser:
    113113    cmp     al, [cs:bx]
     
    118118    mov     ax, c_FormatCharacter
    119119    ret
    120 ALIGN JUMP_ALIGN
     120ALIGN DISPLAY_JUMP_ALIGN
    121121.ConvertIndexToFunctionOffset:
    122122    sub     bx, .rgcFormatCharToLookupIndex
     
    171171;       AX, BX, CX, DX
    172172;--------------------------------------------------------------------
    173 ALIGN JUMP_ALIGN
     173ALIGN DISPLAY_JUMP_ALIGN
    174174PrependOrAppendSpaces:
    175175    mov     ax, di
     
    210210;       AX, BX, CX, DX
    211211;--------------------------------------------------------------------
    212 ALIGN JUMP_ALIGN
     212ALIGN DISPLAY_JUMP_ALIGN
    213213.PrependWithSpaces:
    214214    xchg    ax, cx
     
    248248;       AX, CX, DX, SI
    249249;--------------------------------------------------------------------
    250 ALIGN JUMP_ALIGN
     250ALIGN DISPLAY_JUMP_ALIGN
    251251.ReverseCopyCXbytesFromESSItoESDI:
    252252    test    BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bFlags], FLG_CONTEXT_ATTRIBUTES
     
    256256    dec     di                  ; Point to preceeding character instead of attribute
    257257    ret
    258 ALIGN JUMP_ALIGN
     258ALIGN DISPLAY_JUMP_ALIGN
    259259.CopyWithoutDisplayProcessing:
    260260    eSEG_STR rep, es, movsb
     
    271271;   Corrupts registers:
    272272;       AX, CX, DX
    273 ALIGN JUMP_ALIGN
     273ALIGN DISPLAY_JUMP_ALIGN
    274274.ReversePrintAXspacesStartingFromESDI:
    275275    call    DisplayContext_GetCharacterOffsetToAXfromByteOffsetInAX
     
    292292;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    293293%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    294 ALIGN JUMP_ALIGN
     294ALIGN DISPLAY_JUMP_ALIGN
    295295a_FormatAttributeForNextCharacter:
    296296    mov     bl, [bp]
     
    307307%endif
    308308
    309 ALIGN JUMP_ALIGN
     309ALIGN DISPLAY_JUMP_ALIGN
    310310A_FormatAttributeForRemainingString:
    311311    mov     al, [bp]
     
    314314
    315315%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    316 ALIGN JUMP_ALIGN
     316ALIGN DISPLAY_JUMP_ALIGN
    317317d_FormatSignedDecimalWord:
    318318    mov     ax, [bp]
     
    321321%endif
    322322
    323 ALIGN JUMP_ALIGN
     323ALIGN DISPLAY_JUMP_ALIGN
    324324u_FormatUnsignedDecimalWord:
    325325    mov     ax, [bp]
     
    327327    jmp     DisplayPrint_WordFromAXWithBaseInBX
    328328
    329 ALIGN JUMP_ALIGN
     329ALIGN DISPLAY_JUMP_ALIGN
    330330x_FormatHexadecimalWord:
    331331    mov     ax, [bp]
     
    335335    jmp     DisplayPrint_CharacterFromAL
    336336
    337 ALIGN JUMP_ALIGN
     337ALIGN DISPLAY_JUMP_ALIGN
    338338I_FormatDashForZero:
    339339    mov     ax, [bp]
     
    343343;;; fall-through
    344344
    345 ALIGN JUMP_ALIGN
     345ALIGN DISPLAY_JUMP_ALIGN
    346346s_FormatStringFromSegmentCS:
    347347    push    si
     
    367367    ret
    368368
    369 ALIGN JUMP_ALIGN
     369ALIGN DISPLAY_JUMP_ALIGN
    370370z_FormatStringFromSegmentZero:
    371371    xchg    si, [bp]
     
    376376
    377377%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    378 ALIGN JUMP_ALIGN
     378ALIGN DISPLAY_JUMP_ALIGN
    379379S_FormatStringFromFarPointer:
    380380    mov     bx, [bp-2]
     
    387387%endif
    388388
    389 ALIGN JUMP_ALIGN
     389ALIGN DISPLAY_JUMP_ALIGN
    390390c_FormatCharacter:
    391391    mov     al, [bp]
     
    393393
    394394%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    395 ALIGN JUMP_ALIGN
     395ALIGN DISPLAY_JUMP_ALIGN
    396396t_FormatRepeatCharacter:
    397397    push    cx
     
    404404    ret
    405405
    406 ALIGN JUMP_ALIGN
     406ALIGN DISPLAY_JUMP_ALIGN
    407407percent_FormatPercent:
    408408    mov     al, '%'
     
    410410%endif
    411411
    412 ALIGN JUMP_ALIGN
     412ALIGN DISPLAY_JUMP_ALIGN
    413413PrepareToPrependParameterWithSpaces:
    414414    neg     cx
    415415    ; Fall to PrepareToAppendSpacesAfterParameter
    416416
    417 ALIGN JUMP_ALIGN
     417ALIGN DISPLAY_JUMP_ALIGN
    418418PrepareToAppendSpacesAfterParameter:
    419419    add     sp, BYTE 2              ; Remove return offset
Note: See TracChangeset for help on using the changeset viewer.