Howdy, Stranger!

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

Categories

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..

job_derink@yahoo.com

Comments

  • anthrax11anthrax11 Member Posts: 511
    : 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..
    :
    : job_derink@yahoo.com
    :
    [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]
  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : : 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..
    : :
    : : job_derink@yahoo.com
    : :
    : [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]
  • job_derinkjob_derink Member Posts: 4
    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..
  • AsmGuru62AsmGuru62 Member Posts: 6,519
    [code]
    : mov ah,[si]
    : or ah,00100000b
    : mov [si],ah
    : inc si
    [/code]
Sign In or Register to comment.