On Tue, Jul 1, 2008 at 8:05 PM, teletep <[EMAIL PROTECTED]> wrote: > for 1-byte access: index = memoryaddress - array-base > for 2-byte access: index = (memoryaddress - array-base)/2 > for 4-byte access: index = (memoryaddress - array-base)/4
For these, you'd be better off using bit masks, the & bit operator (and possibly the shift operator) -- PJH 'Two Dead in Baghdad' not 'product-friendly' - Kent Ertugrul, chief executive of Phorm. http://shabbleland.myminicity.com/ind