I'm trying to understand some assembler code inside a loop. The loop runs from 1 to 255 and does the following inside the loop:
mov eax,DWORD PTR [ebp-0x4]
shl eax,0x2
add eax,DWORD PTR [ebp+0x8]
mov DWORD PTR [eax],0x0
Here the DWORD PTR [ebp-0x4]
refers to the number going from 1 to 255.
Can someone figure out what is going on here? Thanks.