64
CHAPTER 6 INSTRUCTION OVERVIEW
6.1 Instruction Formats

The FR family CPU uses six types of instruction format, TYPE-A through TYPE-F.

Instruction Formats

All instructions used by the FR family CPU are written in the six formats shown in Figure 6.1-1.
Figure 6.1-1 Instruction Formats

Relation between Bit Patterns "Ri" and "Rj" and Register Values

Table 6.1-1 shows the relation between general-purpose register numbers and field bit pattern values.
MSBLSB
16bits
8bits
8bits
4bits
4bits
4bits
4bits
OP
OP
Rj Ri
8bits4bits4bits
OP u4/m4/i4 Ri
8bits8bits
OP u8/rel8/dir/rlist
12bits4bits
OP Ri/Rs
5bits11bits
OP rel11
Rii8/o8
TYPE-A
TYPE-B
TYPE-C
TYPE-D
TYPE-F
TYPE-E
Table 6.1-1 General-purpose Register Numbers and Field Bit Pattern Values
Ri/Rj Register Ri/Rj Register Ri/Rj Register Ri/Rj Register
0000 R0 0100 R4 1000 R8 1100 R12
0001 R1 0101 R5 1001 R9 1101 R13
0010 R2 01 10 R6 1010 R1 0 1110 R14
0011 R3 01 11 R7 1011 R1 1 1111 R15