Changeset 369 in xtideuniversalbios for trunk/Assembly_Library/Src/String


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.

Location:
trunk/Assembly_Library/Src/String
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/String/Char.asm

    r201 r369  
    3535;       Nothing
    3636;--------------------------------------------------------------------
    37 ALIGN JUMP_ALIGN
     37ALIGN STRING_JUMP_ALIGN
    3838Char_IsLowerCaseLetterInAL:
    3939    IS_BETWEEN_IMMEDIATES al, 'a', 'z'
     
    5151;--------------------------------------------------------------------
    5252%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    53 ALIGN JUMP_ALIGN
     53ALIGN STRING_JUMP_ALIGN
    5454Char_IsUpperCaseLetterInAL:
    5555    IS_BETWEEN_IMMEDIATES al, 'A', 'Z'
     
    6969;--------------------------------------------------------------------
    7070%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    71 ALIGN JUMP_ALIGN
     71ALIGN STRING_JUMP_ALIGN
    7272Char_IsHexadecimalDigitInAL:
    7373    call    Char_IsDecimalDigitInAL
     
    8989;--------------------------------------------------------------------
    9090%ifndef MODULE_STRINGS_COMPRESSED
    91 ALIGN JUMP_ALIGN
     91ALIGN STRING_JUMP_ALIGN
    9292Char_IsDecimalDigitInAL:
    9393    IS_BETWEEN_IMMEDIATES al, '0', '9'
     
    108108;--------------------------------------------------------------------
    109109%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    110 ALIGN JUMP_ALIGN
     110ALIGN STRING_JUMP_ALIGN
    111111Char_ConvertIntegerToALfromDigitInALwithBaseInBX:
    112112    push    dx
     
    119119    jbe     SHORT .ConvertToDecimalDigit
    120120    sub     al, 'a'-'0'-10          ; Convert to hexadecimal integer
    121 ALIGN JUMP_ALIGN
     121ALIGN STRING_JUMP_ALIGN
    122122.ConvertToDecimalDigit:
    123123    sub     al, '0'                 ; Convert to decimal integer
     
    137137;--------------------------------------------------------------------
    138138%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    139 ALIGN JUMP_ALIGN
     139ALIGN STRING_JUMP_ALIGN
    140140Char_CharIsValid:
    141141    stc
     
    143143%endif
    144144
    145 ALIGN JUMP_ALIGN
     145ALIGN STRING_JUMP_ALIGN
    146146Char_CharIsNotValid:
    147147    clc
     
    159159;--------------------------------------------------------------------
    160160%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    161 ALIGN JUMP_ALIGN
     161ALIGN STRING_JUMP_ALIGN
    162162Char_ALtoLowerCaseLetter:
    163163    call    Char_IsUpperCaseLetterInAL  ; Is upper case character?
     
    174174;       Nothing
    175175;--------------------------------------------------------------------
    176 ALIGN JUMP_ALIGN
     176ALIGN STRING_JUMP_ALIGN
    177177Char_ALtoUpperCaseLetter:
    178178    call    Char_IsLowerCaseLetterInAL  ; Is lower case character?
     
    205205;--------------------------------------------------------------------
    206206%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    207 ALIGN JUMP_ALIGN
     207ALIGN STRING_JUMP_ALIGN
    208208Char_GetFilterFunctionToDXforNumericBaseInBX:
    209209    mov     dx, Char_IsDecimalDigitInAL
  • trunk/Assembly_Library/Src/String/String.asm

    r293 r369  
    1515;       Nothing
    1616;--------------------------------------------------------------------
    17 ALIGN JUMP_ALIGN
     17ALIGN STRING_JUMP_ALIGN
    1818String_ConvertDSSItoLowerCase:
    1919    push    dx
     
    4242;       Nothing
    4343;--------------------------------------------------------------------
    44 ALIGN JUMP_ALIGN
     44ALIGN STRING_JUMP_ALIGN
    4545String_ConvertWordToAXfromStringInDSSIwithBaseInBX:
    4646    push    di
     
    6868;       Nothing
    6969;--------------------------------------------------------------------
    70 ALIGN JUMP_ALIGN
     70ALIGN STRING_JUMP_ALIGN
    7171String_CopyDSSItoESDIandGetLengthToCX:
    7272    push    ax
    7373
    7474    xor     cx, cx
    75 ALIGN JUMP_ALIGN
     75ALIGN STRING_JUMP_ALIGN
    7676.CopyNextCharacter:
    7777    lodsb                       ; Load from DS:SI to AL
     
    8282    jmp     SHORT .CopyNextCharacter
    8383
    84 ALIGN JUMP_ALIGN
     84ALIGN STRING_JUMP_ALIGN
    8585.EndOfString:
    8686    pop     ax
     
    9797;       Nothing
    9898;--------------------------------------------------------------------
    99 ALIGN JUMP_ALIGN
     99ALIGN STRING_JUMP_ALIGN
    100100String_GetLengthFromDSSItoCX:
    101101    push    ax
  • trunk/Assembly_Library/Src/String/StringProcess.asm

    r162 r369  
    3333;       Nothing (processing function can corrupt BX,DI,ES)
    3434;--------------------------------------------------------------------
    35 ALIGN JUMP_ALIGN
     35ALIGN STRING_JUMP_ALIGN
    3636StringProcess_DSSIwithFunctionInDX:
    3737    push    si
     
    3939
    4040    xor     cx, cx
    41 ALIGN JUMP_ALIGN
     41ALIGN STRING_JUMP_ALIGN
    4242.ProcessNextCharacter:
    4343    lodsb
     
    4848    jnc     SHORT .ProcessNextCharacter
    4949
    50 ALIGN JUMP_ALIGN
     50ALIGN STRING_JUMP_ALIGN
    5151.EndOfString:
    5252    pop     ax
     
    6565;       AL
    6666;--------------------------------------------------------------------
    67 ALIGN JUMP_ALIGN
     67ALIGN STRING_JUMP_ALIGN
    6868StringProcess_ConvertToLowerCase:
    6969    call    Char_ALtoLowerCaseLetter
     
    8484;       AX
    8585;--------------------------------------------------------------------
    86 ALIGN JUMP_ALIGN
     86ALIGN STRING_JUMP_ALIGN
    8787StringProcess_ConvertToWordInDIWithBaseInBX:
    8888    call    Char_ConvertIntegerToALfromDigitInALwithBaseInBX
Note: See TracChangeset for help on using the changeset viewer.