; bring into ebx so we can use it
mov ebx, DWORD PTR [ebp+$ptr]
; dereference: ebx = ebx[3]
mov ebx, DWORD PTR [ebx+12]
; dereference: al = ebx[2]:
mov al, BYTE PTR [ebx+2]
Or a real 2d array:
char ar[10][10]
Code:
; create space:
sub esp, 100
; access [4][3]
mov ecx, 4
; not sure about this line
mov al, BYTE PTR [esp+ecx*10+3]
All the buzzt CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.