汇编编程:求1~100的累加和将结果放在SUM开始的单元中

来源:百度知道 编辑:UC知道 时间:2024/05/28 12:55:05
初学汇编,求高手,做做参考,非常感谢

; 本程序通过编译,运行正确
Code Segment
Assume CS:Code,DS:Code
Start: mov cx,100
xor ax,ax
Addition: add ax,cx
loop Addition
Exit_Proc: mov ah,4ch ;结束程序
int 21h
Code ENDS
END Start ;编译到此结束