assume cs:code
data1 segment
db 1,2,3,4,5
data1 ends
data2 segment
db 6,7,8,9,10
data2...ends
data3 segment
db 0,0,0,0,0
data3 ends
code segment
start: mov ax,data1
mov ds,ax...:[bx],al ;保存结果到data3中
inc bx
loop s
mov ax,4c00h
int 21h
code ends...;dw用来定义字类型数据
assume cs:code
data segment ;数据段
dw 1,2,3,4,5,6,7,8,9
data ends
stack...segment ;栈段
dw 0,0,0,0,0,0,0,0,0
stack ends
code segment ;代码段
start