Bank Register Annotation

By default, the assembler assumes that the register bank at the entry point is bank 1. To overwrite this default use the .bank directive. It is necessary only for procedures that contain a bsw instruction, for VRAL.

This annotation makes it clear to the assembler to which bank of registers the instructions refer.

 The .bank switch annotation has the following syntax:

.bank   n

where:

n represents 0 or 1.

Example that follows illustrates a .bank annotation.

Using the Bank Switch Annotation

.proc A             //entry annotation
A:
  .bank 0
  ...
  bsw.1
  ...
  bsw.0
  ...
.endp