一个关于汇编源程序的菜鸟问题
;程序名:T3-9,asm
;功能:说明根据计数法控制循环
DSEG SEGMENT
SUM DW ?
DSEG ENDS
CSEG SEGMENT
ASSUME CS:CSEG
START:MOV AX,40H
MOV DS,AX
MOV SI,0
MOV CX,1024
XOR AX,AX
AGAIN:ADD AX ,[SI]
INC SI
INC SI
LOOP AGAIN
;
ASSUME DS:DSEG
MOV BX,DSEG
MOV DS,BX
MOV SUM,AX
MOV AH,4CH
INT 21H
CSEG ENDS
EDN START
我刚学汇编,看见很多汇编源程序都有上述红色部分,确实看不出有什么作用!!