BL51 User's Guide

Locating Modules

The BL51 Linker provides the BANKx and COMMON keywords to locate modules (specified in the inputlist) in code banks and the common area. Refer to the Command Prompt for more details.

The general format for the BANKx and COMMON keywords is:

BANKx {filename <[>(modulename)<]> <[>, ...<]>}

COMMON {filename <[>(modulename)<]> <[>, ...<]>}

Where

xis the bank number. It may be a value in the range 0-63 depending on the number of specified code banks.
{ and }enclose object files or library files.
filenameis the name of an object file or library file.
modulenameis the name of an object module in a library file.

For example:

BL51 COMMON{C_ROOT.OBJ}, &
     BANK0{C_BANK0.OBJ, MODUL1.OBJ}, &
     BANK1{C_BANK1.OBJ}, &
     BANK2{C_BANK2.OBJ} &
     TO MYPROG.ABS &
     BANKAREA(8000H,0FFFFH)