一、LOOP指令
二、间接寻址
三、汇编数组求和
1 INCLUDE Irvine32.inc 2 includelib Irvine32.lib 3 includelib kernel32.lib 4 includelib user32.lib 5 6 7 .data 8 9 intarray WORD 100h,200h,300h,400h 10 11 .code 12 13 14 main PROC 15 mov edi,OFFSET intarray 16 mov ecx,LENGTHOF intarray 17 mov ax,0 18 L1: 19 add ax,[edi] 20 add edi,TYPE intarray 21 LOOP L1 22 call DumpRegs 23 24 exit 25 main ENDP 26 END main
四、执行结果