Hello,
I need to add a hex digit to a character, but am having trouble figuring it out.
For example, the user enters a character, say, "B"
Then I add 10h to it, which should be "R". I tried to do this, but it didnt turn out the way it was supposed to.
mov ah, 6
mov dl, char + 10h ;char is entered by the user
int 21h
I thought it was going to be that simple, but I was so wrong. By the way I'm new to this and have searched through the forums and in my book, but couldnt find anything. I'm sure it's simple, but I have no idea.
Thanks in advance
I need to add a hex digit to a character, but am having trouble figuring it out.
For example, the user enters a character, say, "B"
Then I add 10h to it, which should be "R". I tried to do this, but it didnt turn out the way it was supposed to.
mov ah, 6
mov dl, char + 10h ;char is entered by the user
int 21h
I thought it was going to be that simple, but I was so wrong. By the way I'm new to this and have searched through the forums and in my book, but couldnt find anything. I'm sure it's simple, but I have no idea.
Thanks in advance