beautypg.com

Sel rbn – NEC 78K/0 Series User Manual

Page 117

background image

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

117

User's Manual U12326EJ4V0UM

Select Register Bank

SEL RBn

Register Bank Selection

[Instruction format]

SEL RBn

[Operation]

RBS0, RBS1

n; (n = 0-3)

[Operand]

Mnemonic

Operand(RBn)

SEL

RBn

[Flag]

Z

AC

CY

[Description]

The register bank specified by the operand (RBn) is made a register bank for use by the next and subsequent

instructions.

RBn ranges from RB0 to RB3.

[Description example]

SEL RB2; Register bank 2 is selected as the one for use by the next and subsequent instructions.