> Ok, odd subject, admittedly. I'm a bit confused by the various methods > of program control on the 18F. On the 16F it's easy, GOTO and CALL. And the various SKIPs, and direct writes to PCL. > But > with the 18F there's now BRA (Branch) and RCALL as well. Here is my > (likely wrong) understanding. GOTO and CALL use the full addressing, > which BRA and RCALL are sort of relative to the current PC value. Not sortof, they *are* relative to the PC. > As I > don't truly understand everything about the PC and it's cronies, I'm > likely wrong. In general though, what would be prefereable to use, say > in an ISR? I know not to use CAll or RCALL unless there will be a return > somewhere, but in an ISR is there an advantage to using BRA over GOTO > (in a small program anyways)? BRA is preferable if the target is within the +-2Kbyte range. Generally, use BRA and RCALL within a module, and GOTO and CALL between modules. If the BRA or RCALL target is out of range, the assembler will let you know. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads