ALP to add list of 10 given numbers

0 47

title ALP to add list of 10 given numbers

dosseg
.model small
.stack 100
.code
main proc
mov ax, @data
mov ds, ax
mov, cx, 0aH
mov dx, 00
mov SI, offset array1
BACK: add dl, SI
adc dh, 00
LOOP back
mov result, dx
mov ax, 4c00h
INT 21h
main endp
.data
array1 db 01, 02, 03, 04, 05, 06, 07, 08, 09, 10
result db ?
end main

You might also like More from author

Leave a Reply

Font Resize