To use a variable without managing the banking you need to have it in access ram. Try moving your variable so it is global and put it in the access area by doing,
Code:
#pragma udata access somename
near unsigned char count;
#pragma udata
Well, if you run out of access ram you need to load the bsr with the bank number of your variable. What is wrong with using the access ram, the compiler doesn't seem to!!
I believe I can use access RAM (near), and it do sound like it would end up being faster and require less cycles. But lets say I wanted to set the BSR with bank information to access the count variable in my simple loop example above. How would I accomplish that?
I am sorry for these newbie questions but I'm just starting up with MPASM syntax (as you can tell)