.8086
.model small
.data
msg1 db 13,10 "Enter no. to be displayed.$"
msg2 db 13,10 "display enteries.$"
.code
Start:
Mov ax,@data
mov ds,ax
back:lea msg1,dx
mov Ah,09h
INT 21
MOv Ah,01h
INT 21h
cmp al,30h
jz lebel1
lea msg2,dx
Mov Ah,02h
int 21h
mov dl,al
lebel1:mov ax,4C00h
int 21H
jmp back
End start
;Result
;ds:0008: 10h,20h,30h,40h,50h,60h,70h,80h,90h,0ah(src) 10h,20h,30h,40h,50h,60h,70h,80h,90h,0ah des
No comments:
Post a Comment