Data Transfer Instructions - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

5.4 Data Transfer Instructions

The transfer instructions in the S1C17 Core support data transfer between one register and another, as well as be-
tween 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
16-bit data transfer
ld
24/32-bit data transfer
ld.a
In signed byte transfers to registers, the source data is sign-extended to 16 bits. In unsigned byte transfers, the
source data is zero-extended to 16 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
rd
Unsigned byte data transfer
rd
16-bit data transfer
rd
24/32-bit data transfer
rd
Refer to Chapter 3, "Data Formats," for the data layout in the memory.
S1C17 CORE MANUAL
(Rev. 1.2)
23
16 15
0
0
0
0
0
0
0
0
S
S
Extended with the sign in bit 7 of the byte data
23
16 15
0
0
0
0
0
0
0
0
0
0
23
16 15
0
0
0
0
0
0
0
0
23
Seiko Epson Corporation
8
7
S
S
S
S
S
S S
Byte data
8
7
0
0
0
0
0
0
Byte data
16-bit data
24-bit data
5 INSTRUCTION SET
0
0
0
0
5-13

Advertisement

Table of Contents
loading

Table of Contents