Keil Logo

REGBANK Linker Directive

Abbreviation

RB

Arguments

REGBANK (regbank <[>(address)<]> <[>, ...<]>)
or
REGBANK (base_addr <[>, regbank <[>(address)<]> <[>, ...<]> <]>)

µVision

Options — L166 Misc — RegBank.

Description

The REGBANK directive defines the base address (base_addr), a memory address (address), or the order of the specified register banks (regbank). Register banks defined in the REGBANK directive are located in memory sequentially.

The first register bank is usually located at the register base address 0xFC00 but may be located anywhere.

Example
L166 MYPROG.OBJ REGBANK (0xFB00)

This example locates all register banks starting at address 0FB00h.


L166 MYPROG.OBJ REGBANK (?C_MAINREGS(0xFC80),IREGS)

This example locates the register bank ?C_MAINREGS at address 0FC80h and locates the register bank IREGS immediately following.

Related Knowledgebase Articles

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.