assume cs:code, ds:data
data segment
a db 1,2,3,4,5,6,7,8
b dw 0
x db 88H
address dw OFFSET a, seg a, OFFSET b, seg b ; a的偏移地址,a的段地址, b的偏移地址, b的段地址
data ends
code segment
start: mov bx, data
mov ds, bx
mov si, 0
mov cx, 8
s: mov al, a[si] ; 默认的段地址位 ds
mov ah, 0
add b, ax
inc si
loop s
mov ax, 4C00H
int 21H
code ends
end start