Hey everyone,

I'm new to ASM (only have some basics in coding), and I'd like to know if anyone could help me here.

What I'm trying to do:
I'd like to convert the letters (from a name entered) to ASCII, and add all their values.

For example, gbouchard would be 67626F756368617264 in ASCII ... so I'd like to add 67+62+6F+75+63+68+61+72+64, and show the result somewhere. I just dont know how to do that in the code!

Any idea how I could do that?
Thanks in advance,

gbouchard

OK, just figured it out: no need to convert anything... this is what I hadn't really understood.

All I needed to do is this - it's probably twisted, but it works:

mov esi, offset NameBuffer
mov edi, offset SerialBuffer
xor ebx,ebx
xor edx,edx
@@:
push eax
xor eax,eax
mov al, byte ptr [esi+edx]
add ebx,eax
inc edx
pop eax
cmp eax,edx
jne @b