I'm having a problem with adding two single digit numbers that the user gives (Since they are ASCII I do the add 48 thing, I know that doesn't work past 9, giving some guidance on this would really be appreciated). Anyways, heres the code.
variables:
Value1 db ?
Value2 db ?
inputting:
mov ah, 01
int 21h
mov Value1, al
mov ah, 01
int 21h
mov Value2, al
adding:
mov al, Value1
add al, Value2
add al, 48
outputting:
mov ah, 02
mov dl, al
int 21h
exit:
mov ah, 4Ch
mov AL, 00
int 21h
Excuse any newbish mistakes, this is my, er... Second day I think.
Forgot to say, I am using the A86 assembler.