What
Assume cs: code, ds: data
The data segment
A db 1,2,3,4,5,6,7,8
B the dw 0
The data ends
Code segment. Initialization register
Start: mov ax, data
Mov ds, ax
Mov si, 0
Cx, mov 8
S: mov al, [si]
Mov ah, 0
The add b, ax
Inc si
Loop s
Mov ax, 4 c00h
Int 21 h
Code ends
The end start

