PSoC® 3: CY8C32 Family
Data Sheet
4.3.1.3 Data Transfer Instructions
addressing mode. Table 4-3 lists the various data transfer
instructions available.
The data transfer instructions are of three types: the core RAM,
xdata RAM, and the lookup tables. The core RAM transfer
includes transfer between any two core RAM locations or SFRs.
These instructions can use direct, indirect, register, and
immediate addressing. The xdata RAM transfer includes only the
transfer between the accumulator and the xdata RAM location.
It can use only indirect addressing. The lookup tables involve
nothing but the read of program memory using the Indexed
4.3.1.4 Boolean Instructions
The 8051 core has a separate bit-addressable memory location.
It has 128 bits of bit addressable RAM and a set of SFRs that are
bit addressable. The instruction set includes the whole menu of
bit operations such as move, set, clear, toggle, OR, and AND
instructions and the conditional jump instructions. Table 4-4 on
page 15Table 4-4 lists the available Boolean instructions.
Table 4-3. Data Transfer Instructions
Mnemonic
MOV A,Rn
Description
Bytes
1
Cycles
Move register to accumulator
1
2
2
2
1
3
2
2
2
3
3
3
2
3
2
3
5
4
4
3
5
4
3
2
2
3
3
3
MOV A,Direct
MOV A,@Ri
Move direct byte to accumulator
2
Move indirect RAM to accumulator
Move immediate data to accumulator
Move accumulator to register
1
MOV A,#data
2
MOV Rn,A
1
MOV Rn,Direct
MOV Rn, #data
MOV Direct, A
MOV Direct, Rn
MOV Direct, Direct
MOV Direct, @Ri
MOV Direct, #data
MOV @Ri, A
Move direct byte to register
2
Move immediate data to register
2
Move accumulator to direct byte
2
Move register to direct byte
2
Move direct byte to direct byte
3
Move indirect RAM to direct byte
2
Move immediate data to direct byte
Move accumulator to indirect RAM
Move direct byte to indirect RAM
3
1
MOV @Ri, Direct
MOV @Ri, #data
MOV DPTR, #data16
MOVC A, @A+DPTR
MOVC A, @A + PC
MOVX A,@Ri
2
Move immediate data to indirect RAM
Load data pointer with 16-bit constant
Move code byte relative to DPTR to accumulator
Move code byte relative to PC to accumulator
Move external RAM (8-bit) to accumulator
Move external RAM (16-bit) to accumulator
Move accumulator to external RAM (8-bit)
Move accumulator to external RAM (16-bit)
Push direct byte onto stack
2
3
1
1
1
MOVX A, @DPTR
MOVX @Ri, A
1
1
MOVX @DPTR, A
PUSH Direct
1
2
POP Direct
Pop direct byte from stack
2
XCH A, Rn
Exchange register with accumulator
Exchange direct byte with accumulator
Exchange indirect RAM with accumulator
Exchange low order indirect digit RAM with accumulator
1
XCH A, Direct
XCH A, @Ri
2
1
XCHD A, @Ri
1
Document Number: 001-56955 Rev. *J
Page 14 of 119
[+] Feedback