I'm trying to read from a reserved memory in NASM using the following instructions:
movzx eax, [mat+100*edi+esi]
mov [dmat+298*edi+3*esi], eax
But I get the following error
invalid effective address
invalid effective address: two index registers
The first error is solved when using a lower factor such as 50 instead of 100. The second error turns into invalid effective address
when the factor turns into 1 instead of 298.
I've checked and NASM is supposed to be able to perform this with the used registers as index, so what's the problem here?