Frage

I need to access two contiguous elements in a array of pointers. I wrote this two instruction, but when executing it says that I'm trying to access an illegal position:

mov esi, strings[ecx*4]
mov edi, strings[(ecx+1)*4]

ECX contains an index.

Are they correct or not? Thank you.

War es hilfreich?

Lösung

I tried

strings[ecx*4]+4

and it worked.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top