> > How do you select the bank? You first make sure you know which bank the variable is in, then save the current bank bits, then change them to those that the variable is in, then access it, then restore the bank bits to their original values, to avoid the C compiler getting confused. I believe there are #pragma commands to ensure that your variable will be in the correct location. > BTW to all those who say, look it up - thank you, I got your > message, can you now please not disturb others who might > want to help me (yes - for free, in the internet spirit) Personally, I feel that if you get feedback to look things up, it usually means you asked the question in a wrong way (spending 15-30 minutes to correctly phrase a question and do some preliminary research is only polite towards the experts that are providing you with free help). Generally people on the Internet are quite helpful, and on this list they are even more so (also because we have a very kind list manager keeping an eye on things). \ The fact is, I do not have the mcc18, however, the above piece about the bank bits is based on common sense and a one minute search on google, which provided me with the link: http://gputils.sourceforge.net/51288a.pdf which I would call very useful. It even has a whole section (2.8.2) on inline assembly, explaining how it fits between _asm and _endasm statements, and what the differences are with the regular MPLAB assembler, and a friendly reminder that using it will make your code slower. Elsewhere in that document you will most certainly find how to make sure a variable is in a certain bank. Greetings, Maarten Hofman. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist