How do you do this?
Posted on 2004-07-23 15:06:31 by x86asm
array RECT 16 DUP (<>)

then you address it as follows:

mov eax, SIZEOF RECT

mov ecx, [nIndex]
mul ecx ; if the size of the structure is a power of 2 then use SHL instead
add eax, offset array

mov [eax+RECT.left], 10

If you are using MASM then you will find that there may be a big slowdown in compile speed. In that case you can get around it by either declaring the buffer dynamically or by creating an OMF instead of a COFF file for output.
Posted on 2004-07-23 18:02:55 by donkey