Data Segment
arr1 db 20,30,40,50,60,70,80,90,100,110,120
number db 20
arr2 db 20 dup(?)
Data Ends
Code Segment
Assume cs:code, ds:data
Begin:
mov ax, data
mov ds, ax
mov es, ax
mov cx, 10
lea si, arr1
lea di, arr2
L1:
mov al, [si]
mov ah, 00
div number
mov [di], al
inc di
mov [di], ah
inc di
inc si
loop L1
Exit:
mov ax, 4c00h
int 21h
Code Ends
End Begin