CPU
2.6 Data Formats
2
Mitsubishi
microcomputer
family name
7700 and M16C families
Little/little
M32R family
Big/big
Endian
(bit/byte)
Little/big
+0
LL
+1
LH
+2
HL
+3
+0
+1
HL
+2
+3
LL
+0
+1
HL
+2
LH
+3
LL
Address
Data arrangement
HH
HH
LH
HH
Bit number
7–0
15–8 23–16 31–24
31–24 23–16 15–8
7–0
0–7
8–15 16–23 24–31
Example:
0x01234567
.byte 67,45,23,01
.byte 01,23,45,67
.byte 01,23,45,67
Note: • The M32R family uses the big endian for both bits and bytes.
Figure 2.6.5 Endian Adopted for the M32R Family
(4) Transfer instructions
• Constant transfer
LD24 Rdest, #imm24
imm24
b0
LD24 Rdest, #imm24
b23
LDI
LDI
Rdest, #imm16
Rdest, #imm8
Rdest
00
b0
8
b31
SETH Rdest, #imm16
SETH Rdest, #imm16
imm16
b0
b15
Rdest
00
00
b31
b0
15
• Register to register transfer
MV
Rdest, Rsrc
Rsrc
MV
Rdest, Rsrc
b31
b0
Rdest
b0
b31
• Control register transfer
MVTC Rsrc, CRdest
MVFC Rdest, CRsrc
MVTC Rsrc, CRdest
Rsrc
b0
b31
CRdest
b0
b31
Note: • The condition bit C changes state when data is written to CR0 (PSW) using the MVTC instruction.
Figure 2.6.6 Transfer Instructions
32180 Group User’s Manual (Rev.1.0)
2-11