I want to check if ‘ep’ is a upper case letter.
So I check it in ascii table, and I found that it is from 0x41 to <0x5A.
I tried to do an if function, that ask if it is a upper case letter. Can some one please tell me how the check this condition in Assembly? I tried to write this, but it of course not correct :
cmp ep, (>0X40 & <0X5a)
je letter
You can do this using two checks. Something like this:
Alternatively, you can subtract the lower bound and check if the value is less than the difference, i.e.:
Disclaimer: I don’t know your assembly format (I tried to copy it, though). But don’t trust my syntax to be exact.