Changeset 76 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS


Ignore:
Timestamp:
Dec 20, 2010, 6:06:51 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Optimizations to old string library (thanks to Krille).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Libraries/string.asm

    r3 r76  
    22; Project name  :   String library
    33; Created date  :   7.10.2009
    4 ; Last update   :   26.11.2009
    5 ; Author        :   Tomi Tilli
     4; Last update   :   20.12.2009
     5; Author        :   Tomi Tilli,
     6;               :   Krille (optimizations)
    67; Description   :   ASM library to work as Standard C String and Character.
    78
     
    9091ALIGN JUMP_ALIGN
    9192String_IsAlphaNum:
    92     call    String_IsAlpha      ; Is alphabetic letter?
    93     jnc     .CheckDigit         ;  If not, jump to check if digit
    94     ret
    95 .CheckDigit:
    96     call    String_IsDigit      ; Is dec digit?
     93    call    String_IsAlpha
     94    jnc     SHORT String_IsDigit
    9795    ret
    9896
    9997ALIGN JUMP_ALIGN
    10098String_IsAlpha:
    101     call    String_IsLower      ; Is lower case letter?
    102     jnc     .CheckUpper         ;  If not, jump to check if upper
    103     ret
    104 .CheckUpper:
    105     call    String_IsUpper      ; Is upper case letter?
     99    call    String_IsLower
     100    jnc     SHORT String_IsUpper
    106101    ret
    107102
Note: See TracChangeset for help on using the changeset viewer.