;PROGRAM TO DISPLAY A STRING USING FUNCTION CALL 06H
data segment
string db 'Microprocessor'
count equ $-string
data ends
code segment
assume ds:data, cs:code
start:
mov ax,data
mov ds,ax
lea di,string
mov cl,count
again:
mov dl,[di]
mov al,06h
int 21h
inc di
dec cl
jnz again
int 3
code ends
end start
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment