how to print array characters in assembly language.

8086 program to display array characters.

.model small
.data
array db "A","B","C","D","E"
msg db "Array characters are:$"
.code
mov ax,@data
mov ds,ax
mov cx,5
mov si,offset array
mov ah,09h
lea dx,msg
int 21h
up:
  mov dx,[si]
  mov ah,02
  int 21h
  inc si
loop up

mov ah,4ch
int 21h
end

Output:
how to print array in 8086, print array in assembly language 8086.


Comments