View Single Post
Old 28th December 2007, 14:00   #127  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
Code:
_declspec(align(64)) const unsigned char* sourcep[64]
__asm{
mov     ecx, [sourcep]      ;=sourcep[0]
mov     ecx, [sourcep+4]    ;=sourcep[1]
}
but
Code:
const unsigned char** sourcep = (const unsigned char**) _aligned_malloc(sizeof(unsigned char*)*length, 64);
__asm{
mov     ecx, [sourcep]      ;=sourcep[0]
mov     ecx, [sourcep+4]    ;=&sourcep+4
}
redfordxx is offline   Reply With Quote