<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">name "somme"   ; output file name (max 8 chars for DOS compatibility)

org  100h	; set location counter to 100h

mov si, 0
mov cx, 10

boucle:

mov al, tab[si]
add somme, al
inc si
loop boucle


mov dl, somme
mov ah, 2
int 21h

msg         db "press any key..."
msg_size =  $ - offset msg

somme db 0
tab db 4, 5, 7, 9, 2, 6, 1, 0, 4, 3 
tabsize db 10</pre></body></html>