DATA SEGMENT SUM DW 0 DATA ENDS STACK SEGMENT STACK DB 200 DUP(0) STACK ENDS CODE SEGMENT ASSUME DS:DATA,CS:CODE,SS:STACK START: MOV AX,DATA MOV DS,AX MOV CX,50 MOV AX,0 MOV BX,1 NEXT: ADD AX,BX INC BX INC BX DEC CX JNE NEXT MOV SUM,AX MOV AH,4CH INT 21H CODE ENDS END START ---------------------------------------------------------------------------------------------- -U
0BC5:0000 B8B70B MOV AX,0BB7 0BC5:0003 8ED8 MOV DS,AX 0BC5:0005 B93200 MOV CX,0032 0BC5:0008 B80000 MOV AX,0000 0BC5:000B BB0100 MOV BX,0001 0BC5:000E 03C3 ADD AX,BX 0BC5:0010 43 INC BX 0BC5:0011 43 INC BX 0BC5:0012 49 DEC CX 0BC5:0013 75F9 JNZ 000E 0BC5:0015 A30000 MOV [0000],AX 0BC5:0018 B44C MOV AH,4C 0BC5:001A CD21 INT 21 0BC5:001C 8956FE MOV [BP-02],DX 0BC5:001F C45EFC LES BX,[BP-04] ---------------------------------------------------------------------------------------------- 代码段CODE的段首址及偏移地址范围: 数据段DATA的段首址,变量SUM的偏移地址(首地址): 标号START和NEXT的偏移地址值:
[此贴子已经被作者于2005-3-25 11:39:30编辑过]