banks.inc


Author: Jonathan Weaver, jonw0224@netscape.net
Date: 11/9/2005
Version: 2.0
Filename: banks.inc
Description: Banking macro. A replacement for the banksel command. Uses minimal bit set/clear commands to set desired bank.


Procedure Heading List


BNKSEL macro reg


Procedure Descriptions


BNKSEL macro reg
Description:
Sets the STATUS bits RP0 and RP1 correctly depending on the label passed. Comparable to banksel command, except that it remembers the last bank selected in a variable named CURRENTBANK. Based on CURRENTBANK and label, it will execute only necessary bsf, bcf commands. 1 to 2 program words and cycles.
Parameters:
reg the register whose bank to select