INCLUDE Irvine32.inc
.data
fullName BYTE "Bob Johnson",0 ; String storing name
nameSize = ($ - fullName) ; Variable storing length of name
.code
main PROC
mov ECX,nameSize ; Set counter for loop
mov ESI,OFFSET fullName ; Set pointer at fullName variable
mov EAX,0 ; Clear the EAX register
mov EBX,0 ; Clear the EBX register
Sum: ; Loop
mov bl,[ESI + ECX - 1] ; Use the bl (8 bit register) to point at characters in the string.
add EAX,EBX ; Add the two registers together
loop Sum ; Loop
call DumpRegs ; Display results
exit
main ENDP
END main
SOLVED WOOT!!