ALP to add list of 10 given numbers

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

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top