简单数组求和,请教!
;数组求和include io32.inc.data array byte 1,2,3,6 msg1 byte 'The factors of the array are: ',0ah,0dh,0 msg2 byte 'The sum of the factors is:',0.codebegin: mov ecx,lengthof array mov eax,offset msg1 call dispmsg mov eax,offset array call dispuid xor eax,eaxagain: add eax,array[ecx] ;不能用变量名直接给eax做加法吗? loop again mov ebx,eax mov eax,offset msg2 call dispmsg mov eax,ebx call dispuidexit 0end begin