convert to lower case string

pls..i need sorce codes in assembly language that convert a capital letterword to lower case letterword..

i already have codes in converting lower case to uppercasecapital leeter or word..

but the first one i dont have yet..pls..help i need badly...

thanks..

[email protected]

Comments

  • : pls..i need sorce codes in assembly language that convert a capital letterword to lower case letterword..
    :
    : i already have codes in converting lower case to uppercasecapital leeter or word..
    :
    : but the first one i dont have yet..pls..help i need badly...
    :
    : thanks..
    :
    : [email protected]
    :
    [code]
    lea si, Input

    ; Lower- to uppercase (set bit 5):
    or byte [si], 32

    ; Upper- to lowercase (clear bit 5):
    and byte [si], (255-32)[/code]
  • : : pls..i need sorce codes in assembly language that convert a capital letterword to lower case letterword..
    : :
    : : i already have codes in converting lower case to uppercasecapital leeter or word..
    : :
    : : but the first one i dont have yet..pls..help i need badly...
    : :
    : : thanks..
    : :
    : : [email protected]
    : :
    : [code]
    : lea si, Input
    :
    : ; Lower- to uppercase (set bit 5):
    : or byte [si], 32
    :
    : ; Upper- to lowercase (clear bit 5):
    : and byte [si], (255-32)[/code]
    :
    [blue]It is a good idea to check first if this byte is really the uppercase or lowercase letter. Using this code on ANY letter (like '0') will be not successfull.[/blue]
  • thank you wso much..i find it hard to understand it...
    this is the code in convertig lowercase to uppercase

    mov ah,[si]
    and ah,11011111b
    mov [si],ah
    inc si

    i need the one that converts the uppercase to lowercase..
    pls,...thanks again..
  • [code]
    : mov ah,[si]
    : or ah,00100000b
    : mov [si],ah
    : inc si
    [/code]
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