Thanks to all, for your help -----Original Message----- From: Clyde Stubbs [mailto:clyde@HTSOFT.COM] Sent: Monday, November 20, 2000 12:29 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]:Pic memory On Fri, Nov 17, 2000 at 10:59:21AM -0000, Russell Farnhill wrote: > This compiled ok. So what I'am wondering, is there any way of > creating an array bigger than one bank that's made from one or > more banks. Short answer, no. Long answer - think about what the compiler would have to do to implement this. Do you really want this "under the hood"? So you basically need to do it yourself, a couple of macros will help, e.g. bank1 char buf1[0x40]; bank2 char buf2[0x40]; #define array(x) (((x) >= 0x40 ? buf2:buf1)[(x)&0x3F]) IOW, use the high bits to select an array, low bits to index it. Can be extended to bigger sizes. Clyde -- Clyde Stubbs | HI-TECH Software Email: clyde@htsoft.com | Phone Fax WWW: http://www.htsoft.com/ | USA: (408) 490 2885 (408) 490 2885 PGP: finger clyde@htsoft.com | AUS: +61 7 3355 8333 +61 7 3355 8334 --------------------------------------------------------------------------- HI-TECH C: compiling the real world. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.