Please can someone help me, I have been researching this for the past few weeks now and I have not found a solution to my problem.
I am trying to determine whether a number entered by a user is a multiple of three or not. The range of numbers is between 1-9.
Below is the code that I am working on:
mov ah,01
int 21h
mov bl,al
mov bl,3
div bl
cmp ah,0 ;Checks to see if remainder is zero
je e ;if it is not, go to e else execute code below
mov dx, var1
mov ah,09
int 21h
jmp exit
e:
mov dx, var2
mov ah,09
int 21h
jmp exit
exit:
mov ah,4ch
int 21h
I know that I need to convert my input into hexadecimal, I have tried to use the below line for that but it does not help, when I output the values to be able to see them, I get symbols like a smiley :
add ch,48