.model small
.stack 100h
.data
a db ?
b db ?
c db "Insert first value: ?"
d db 10,13,"Insert second value: ?"
e db 10,13,"Result: ?"
.code
main proc
mov ax,@data
mov ds,ax
;Input
mov ah,9
lea dx,c
int 21h
mov ah,1
int 21h
sub al,48
mov a,al
mov ah,9
lea dx,d
int 21h
mov ah,1
int 21h
sub al,48
mov b,al
mov ah,9
lea dx,e
int 21h
;Multiplication
mov al,a
mul b
;Outut
mov ah,2
mov dl,al
add dl,48
int 21h
mov ah,4ch
int 21h
main endp
end main
I wrote this code from youtube but his code works however when i run this code this following message shows
INT 21h, AH=09h - address: 0722F byte 24h not found after 2000 bytes.
i was expecting two values taken from the user will multiply and the result will be shown