| ??? 02/14/01 12:11 Read: times |
#9303 - RE: use of multiply in large data arrays |
Hi Patrick,
the fastest way: You let your array start at XDATA address 0x0000 and you reserve 256 bytes for every member. Then no multiplication and no addition needed: #include <types.h> uchar xdata member_array[50][256] _at_ 0x0000; uchar readbyte( uchar member_no, uchar byte_no ) { return *((uchar xdata *) ((uint)member_no * 256 | byte_no)); } My <types.h> can you found on my web. Peter |



