The aim of the programme is to add the Hex data from ffff:0-ffff:b
The result of the add will be saved as dx
assume cs:code
code segment
mov ax,0ffffH ; set ds
mov ds,ax ; point to ffffH
mov ax,4000H ; set ss
mov ss,ax ; point to 4000H
mov bx,0000H ; reset bx
mov sp,0010H ; set ss:sp point to 4000:0010
push bx ; reset stack
mov cx,000cH ; set while number
s: ; while point
pop ax ; get add result
mov dl,[bx] ;get the number which is in ffff:0-ffff:b to dl
sub dh,dh ;set dh=00H
inc bx ;the bx+1
add dx,ax ;add result
push dx ;save the last add result
loop s ;jmp s:
mov ax,004cH ; programme use
int 21H ; int 21H to return
code ends
end