Вопрос

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.

Это было полезно?

Решение

I tried

strings[ecx*4]+4

and it worked.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top