lowercase strings to uppercase strings

does anyone have codes for (1)converting lowercase strings to uppercase strings and (2) vice-versa? thanks.

Comments

  • : does anyone have codes for (1)converting lowercase strings to uppercase strings and (2) vice-versa? thanks.
    [green]
    The key to it is bit 5

    CMP AL,'a'
    JB NOTLOWER
    CMP AL,'z' ; don't alter a non alph
    JA NOTLOWER
    AND AL,11011111b ; clear bit 5 = to UPPER case
    NOTLOWER:

    CMP AL,'A'
    JB NOTUPPER
    CMP AL,'Z' ; don't alter a non alph
    JA NOTUPPER
    OR AL,00100000b ; set bit 5 = to lower case
    NOTUPPER:

    You can do a string search (left) through the posts and get all kinds
    of information about all kinds of things, like upper/lower case.
    Most of your questions already have answers waiting for you. (now)

    Bitdog
    [/green]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion