Data Transfer Instructions - Epson S1C33 Series Core Manual

Cmos 32-bit single chip microcomputer
Hide thumbs Also See for S1C33 Series:
Table of Contents

Advertisement

5.7 Data Transfer Instructions

The transfer instructions in the C33 PE Core support data transfer between one register and another, as well as
between a register and memory. A transfer data size and data extension format can be specified in the instruction
code. In mnemonics, this specification is classified as follows:
Signed byte data transfer
ld.b
Unsigned byte data transfer
ld.ub
Signed halfword data transfer
ld.h
Unsigned halfword data transfer
ld.uh
Word data transfer
ld.w
In signed byte or halfword transfers to registers, the source data is sign-extended to 32 bits. In unsigned byte or
halfword transfers, the source data is zero-extended to 32 bits.
In transfers in which data is transferred from registers, data of a specified size on the lower side of the register is the
data to be transferred.
If the destination of transfer is a general-purpose register, the register content after a transfer is as follows:
Signed byte data transfer
31
rd
S
S
S
S
Extended with the sign in bit 7 of the byte data
Unsigned byte data transfer
31
0
0
0
0
rd
Signed halfword data transfer
31
rd
S
S
S
S
Extended with the sign in bit 15 of the halfword data
Unsigned halfword data transfer
31
0
0
0
0
rd
S1C33 FAMILY C33 PE CORE MANUAL
24
23
S
S
S
S
S
S
S
S
S
S
24 23
0
0
0
0
0
0
0
0
0
0
S
S
S
S
S
S
S
S
S
S
0
0
0
0
0
0
0
0
0
0
16 15
S
S
S
S
S
S
S
S
S
S S
16 15
0
0
0
0
0
0
0
0
0
16 15
S
S
S
Halfword data
16 15
0
0
Halfword data
EPSON
5 INSTRUCTION SET
8
7
0
Byte data
8
7
0
0
Byte data
0
0
31

Advertisement

Table of Contents
loading

Table of Contents