News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Accesing array

Started by Farabi, October 09, 2010, 11:14:54 PM

Previous topic - Next topic

Farabi

If I define 4 dword array, how do I access the forth element?
a[3] or a[12]?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Antariy

Quote from: Farabi on October 09, 2010, 11:14:54 PM
If I define 4 dword array, how do I access the forth element?
a[3] or a[12]?

a[12]

I.e.

...
some proc ....
LOCAL a[4]:DWORD
mov eax,dword ptr a[12] ; - get last DWORD from array
...




Alex

Farabi

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"