Common Register Bank Prefix (Cmr); Flag Change Disable Prefix (Ncc) - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

MOV ILM,#imm8
The instruction is executed normally, but the prefix affects the next instruction.
RETI
SSB is used regardless of the prefix.

Common Register Bank Prefix (CMR)

To simplify data exchange between multiple tasks, the same register bank must be accessed relatively
easily regardless of the RP value. When CMR is placed before an instruction that accesses a register bank,
the register accessed by that instruction can be changed to the common bank (the register bank selected
when RP=0) at addresses from 000180
instructions with care:
String instructions (MOVS, MOVSW, SCEQ, SCWEQ, FILS, FILSW)
If an interrupt request occurs during execution of a string instruction with a prefix code, the prefix code
becomes invalid when the string instruction is resumed after the interrupt is processed. Thus, the string
instruction is executed falsely after the interrupt is processed. Do not prefix any of the above string
instructions with CMR.
Flag change instructions (AND CCR,#imm8, OR CCR,#imm8, POPW PS)
The instruction is executed normally, but the prefix affects the next instruction.
MOV ILM,#imm8
The instruction is executed normally, but the prefix affects the next instruction.

Flag Change Disable Prefix (NCC)

To disable flag changes, use the flag change disable prefix code (NCC). Placing NCC before an instruction
that suppresses unnecessary flag change disables flag changes associated with that instruction. Use the
following instructions with care:
String instructions (MOVS, MOVSW, SCEQ, SCWEQ, FILS, FILSW)
If an interrupt request occurs during execution of a string instruction with a prefix code, the prefix code
becomes invalid when the string instruction is resumed after the interrupt is processed. Thus, the string
instruction is executed incorrectly after the interrupt is processed. Do not prefix any of the above string
instructions with NCC.
Flag change instructions (AND CCR,#imm8, OR CCR,#imm8, POPW PS)
The instruction is executed normally, but the prefix affects the next instruction.
Interrupt instructions (INT #vct8, INT9, INT addr16, INTP addr24, RETI)
CCR changes according to the instruction specifications regardless of the prefix.
JCTX @A
CCR changes according to the instruction specifications regardless of the prefix.
to 00018F
regardless of the current RP value. Use the following
H
H
CHAPTER 2 CPU
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90360 series

Table of Contents