Prefix Codes - Fujitsu F2MC-16LX Hardware Manual

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 2 CPU
2.4

Prefix Codes

By inserting a prefix code before an instruction, part of an instruction operation may
change. Three types of prefix code are provided: bulk select prefixes, common
register bank prefixes, and flag change suppress prefixes.
I Bank select prefix
Memory space used in data access is determined according to the addressing mode.
By inserting a bank select prefix before an instruction, the instruction may select the memory
address used for data access regardless of the addressing mode in use.
Table 2.4-1 "Bank select prefix" shows the relationship between the bank select prefix and a
selected space.
Table 2.4-1 Bank select prefix
Bank select prefix
Be careful when you are using the following instructions:
❍ String instruction (MOVS, MOVSW, SCEQ, SCWEQ, FILS, FILSW)
This uses bank registers specified with an operand regardless of a prefix.
❍ Stack operation instruction (PUCHW, POPW)
SSV or USB is used depending on the S-flag, regardless of a prefix.
❍ I/O access instruction
MOVA A, io/MOV io, A/MOVX A, io/MOVW A, io/MOVW io, A
MOV io, #imm8/MOVW io, #imm8/MOBV A, io: bp/MOVB io: bp, A
SETB io: bp/CLRB io: bp/BBC io:bp, rel/BBS io:bp, rel WBTC
WBTS
The I/O space of a bank is used regardless of whether a prefix is in an instruction.
❍ Flag change instruction (AND CCR,#imm8,OR CCR,#imm8)
An instruction operation is normal, but a prefix affects the next instruction.
❍ POPW PS
Regardless of prefix, SSB or USB is used depending on the S-flag. A prefix affects the next
instruction.
38
PCC
DTB
ADB
SPB
Either SSP or USP space is used depending on the stack flag value.
Selected space
PC space
Data space
AD space

Advertisement

Table of Contents
loading

Table of Contents