ALP to SUM THE NUMBERS FROM 1-100



title SUM THE NUMBERS FROM 1-100
dosseg
.model small
.stack 100H
.code
main proc
mov ax, 0
mov cx, 10h ; loop count=10
BACK: add ax, cx ; add two numbers
loop BACK ; repeat until cx=0
mov ax, 4c00h ; return to DOS
int 21h
main endp
end main


About Ekendra

Blogging since 2001 (on this site from 2004), in love with ICT4D and resultant economic development of a 3rd world country like mine. Interested in a bunch of things like · SaaS · Clouds · WiFi · Sensors · Nodes · Geek · Win8 · Techno · Trance · SEO · HTML5 · WP · Joomla · Canvas · Inclusion · BI. Follow me on your social network