.model small
.stack 100h
.data
msg db "Enter a number: $"
msg2 db 13,10,"Your number is: $"
.code
start:
mov ax,@data
mov ds,ax
lea dx,msg
mov ah,9h
int 21h
mov ah,1h ;
User input 1
int 21h
mov dl,al
lea dx,msg2
mov ah,9h
int 21h
mov ah,2h
int 21h
mov ah,4ch
int 21h
end start
Comments
Post a Comment