using VC++ 2005 express
int main()
{
unsigned char array[] = {1, 2, 3, 4, 5, 6, 7};
// Assembly
__asm
{
MOV AL,array[0] ; ok
MOV AL,array+2 ; ok
lea ebx, array
MOV AL, [ebx] ; ok
}
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Offline 21,963 posts
since Aug 2005