Hello, i am using htsoft picc lite compile to generate code for pic 16f84. i see that compiler doesn't produce the necessary bankswitch instructions (setting/clearing rp0 bit) while accessing the variables in different banks. for instance: unsigned char bank1 var1; unsigned char var2; var1++; var2++; for this piece of code, i would like it to issue bank switch instructions before accessing the variables. i know this is unnecessary as the banks are shadowd. the reason why i am asking is: i am developing an application in 16f84 simulator. after writing the code, i realize that 68 bytes of ram is insuffcient. i need more memory. however, i don't have time to change the simulator to simulate a bigger processor. so, i changed the simulator such that two banks are not shadowed and there are two separate memory banks. i could access the correct banks if the rp0 bit is set correctly. is there any way to force the compiler to generate these bank switch instructions? thanks, Deva Seetharam ------------------------------------------------- 617.666.6674 (h) 617.253.1522 (w) E15-426, MIT Media Laboratory, 20 Ames Street, Cambridge, MA 02139 ------------------------------------------------- -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu