This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

converting to uppercase

iam trying to convert the char i received to uppercase if it is lowercase if not leave it asit is .
igot this code from net.
but unable to understand why they added #224 at the end.

org     0000h

        mov     acc,#'z'
        clr     c
        subb    a, #97
        jc      upper2
        subb    a, #26
        jnc     upper2
          add     a, #224

upper2: mov    r0,a
         end

0