AGCB
Member
I have a 18F program with several computed GOTOs. When the second one is called, the PCL jumps backward one full byte (I.E. PCL = 174, on 1st table entry PCL should jump to 176 but instead jumps to 76.
I'm only using the access bank, so this could have something to do with it.
I've read on another forum that it is possible to place subroutines in a bank (not in access bank). But I do not understand how to do that. I have read the datasheet over and over and searched this and other forums, but it's still not clear to me how to use anything outside the access bank.
I do see how to place registers in a bank by stating address of CBLOCK at bank starting address.
Then again, I may be way off on this as I'm fairly new to 18F so your input will be appreciated.
I'm only using the access bank, so this could have something to do with it.
I've read on another forum that it is possible to place subroutines in a bank (not in access bank). But I do not understand how to do that. I have read the datasheet over and over and searched this and other forums, but it's still not clear to me how to use anything outside the access bank.
I do see how to place registers in a bank by stating address of CBLOCK at bank starting address.
Then again, I may be way off on this as I'm fairly new to 18F so your input will be appreciated.