kravnus wolf wrote: > The question is why use accessram??? It can be useful to have some variables that can be accessed without regard to the current bank setting. > What is it doing internally? When the accessbank bit is set, the upper 4 RAM address bits are forced to either all 0 or all 1 depending on the value of the low 8 bits compared to a threshold. Normally 0-127 forces 0 and 128-255 forces 1, but some PICs have more SFRs and the threshold is a little lower. > Don't you hate it when the C compiler does something without your > knowledge. You can't blame the compiler, that's its job. If you don't like it don't use it. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist