Domanda

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.

È stato utile?

Soluzione

I tried

strings[ecx*4]+4

and it worked.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top