INCLUDE Irvine32.inc

.data

aName DB "all this is in lowercase",0

nameSize = ($ - aName) - 1

.code

main PROC



; Display the name.

mov edx,OFFSET aName

call Writestring

call Crlf

mov ecx,nameSize

mov esi,0

A20:

     MOV AH, aName[esi]; Read letter from aName

     CMP AH, 61H ; IS it a character that its ASCII code less than 61H?

      JB A30 ; UPPER

      CMP AH,7AH ; CASE

       JA A30 ; Is LETTER that its ASCII value larger than 7AH?

       XOR AH, 00100000B ; YES, CONVERT

      MOV aName[esi],AH ; send the changed letter back to aName

      A30:

     INC esi ; SET FOR NEXT CHAR

     LOOP A20 ; LOOP based on ECX number

      ; DONE

; Display the name.



mov edx,OFFSET aName

call Writestring

call Crlf

exit

main ENDP

END main