救解 新手学汇编 关于array
INCLUDE Irvine32.inc.data
HELLO dword 0,0,0,0,0,0
str1 BYTE "Enter Integer: ",0
totalODD dword ?
str2 BYTE "TotalODD is : ",0
totalEVEN dword ?
str3 BYTE "TotalEVEN is : ",0
.code
main PROC
mov edi,OFFSET HELLO
mov ecx,LENGTHOF HELLO
mov edx,OFFSET str1
call writestring
call readint
mov HELLO[0],eax
mov edx,OFFSET str1
call writestring
call readint
mov HELLO[1],eax
mov edx,OFFSET str1
call writestring
call readint
mov HELLO[2],eax
mov edx,OFFSET str1
call writestring
call readint
mov HELLO[3],eax
mov edx,OFFSET str1
call writestring
call readint
mov HELLO[4],eax
mov edx,OFFSET str1
call writestring
call readint
mov HELLO[5],eax
mov eax,0
L1:
add eax,[edi]
add edi ,TYPE HELLO
loop L1
call writeint
call crlf
exit
main endp
end main
我想要吧HELLO的value 全部加起来
但是 却得到其他的答案
有哪位大大 能帮我解吗