Ok nevermind I figured it out. In case anyone else cares to know, I was missing one line and the char + 10h was wrong. Here it is:
mov ah, 6
mov dl, char ;load char into dl
---> add dl, 12h ;add 12h to dl, output to screen
int 21h
I wish I figured it out earlier
-HEMPster
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.