Multi byte Addition
1 year ago
Microprocessors
Assume cs: code, ds:
data Data segment
Ip1 dd 12233449h
Ip2 dd 56677889h
Res dd 00000000h Data
ends
Code segment
Start: mov ax, data
mov ds,ax
mov si,offset ip1
mov di,offset ip2
mov bx,offset res
mov cx,03
sub ax, ax
mov al,[si]
mov dl,[di] add al,dl
mov [bx],al
back: inc si
inc d
I inc bx
mov al,[si]
mov dl,[di] ADC al,dl mov [bx],al loop back nop
int 03h code ends
end start
Rusma Khadka
Sep 15, 2022