;************************ Configuration Section ******************************* ?B_NBANKS EQU 16 ; Define max. Number of Banks * ; ; The max. value for ?B_BANKS is 32 * ; ; This number MUST be a power of 2. * ;-----------------------------------------------------------------------------* ; if ?BANK?MODE is 0 define the following values * ; For Bank-Switching via 8051 Port define Port Address / Bits * ?B_PORT EQU P1 ; default is P1 * ?B_FIRSTBIT EQU 0 ; default is Bit 0 * ;-----------------------------------------------------------------------------* ; * ;******************************************************************************
NAME ?BANK?SWITCHING
PUBLIC ?B_NBANKS, ?B_CURRENTBANK, ?B_MASK PUBLIC ?B_FACTOR PUBLIC _SWITCHBANK
?B_FACTOR EQU 1 SHL ?B_FIRSTBIT
?B_CURRENTBANK EQU ?B_PORT |