Common Register Bank Prefix (Cmr); Table 2-9 Instructions Requiring Care When Using Bank Select Prefix; Table 2-10 Instructions Requiring Care When Using Bank Select Prefix (Cmr) - Fujitsu MB90420/5 (A) Series Hardware Manual

F2mc-16lx family 16-bit microcontrollers
Table of Contents

Advertisement

MB90420/5 (A) SERIES F

Table 2-9 Instructions Requiring Care When Using Bank Select Prefix

Instruction Type
Flag change instruction
ILM Setting instruction
PS Return instruction

2.9.2 Common Register Bank Prefix (CMR)

When an instruction that accesses the register bank is prefixed by the common register bank prefix (CMR),
all the access destination of the instruction can be changed to the common bank at 000180
common bank is the register bank selected when RP = 0), irrespective of the value of the current register
bank pointer (RP).
n Common register bank prefix (CMR)
To facilitate data exchange between plural tasks, it is necessary to be able to access the same defined
register bank relatively easily, irrespective of the value of the current register bank pointer (RP). For this
2
end, the F
MC-16LX has register bank called the common bank that can be shared between each task. The
common bank is at addresses 000180
When an instruction that accesses the register bank is prefixed by the common register bank prefix (CMR),
all the access destination of the instruction can be changed to the common bank at 000180
common bank is the register bank selected when RP = 0), irrespective of the value of the current register
bank pointer (RP). Table 2-10 shows the instructions requiring care when using the common register bank
prefix.

Table 2-10 Instructions Requiring Care When Using Bank Select Prefix (CMR)

Instruction Type
String instruction
MOVS
SCEQ
FILS
Flag change
AND CCR, #imm8
instruction
PS return
POPW PS
instruction
ILM setting
MOV ILM, #imm8
instruction
2
MC-16LX FAMILY 16-BIT MICROCONTROLLERS HARDWARE MANUAL
Instruction
AND
CCR, #imm8
OR
CCR, #imm8
MOV
ILM, #imm8
POPW PS
to 00018F
.
H
H
Instruction
MOVSW
SCWEQ
FILSW
OR CCR, #imm8
The prefix affects up to the next instruction.
The prefix affects up to the next instruction.
Do not add the bank select prefix to the PS return
instruction.
Do not add the CMR prefix to string instructions.
The prefix affects up to the next instruction.
The prefix affects up to the next instruction.
The prefix affects up to the next instruction.
2-32
Explanation
to 00018F
H
to 00018F
H
Explanation
(the
H
(the
H

Advertisement

Table of Contents
loading

Table of Contents