3.5.2 Data Transfer Instructions
Table 3-10 describes the seven data transfer instructions.
Table 3-10 Data Transfer Instructions
Instruction Size* Function
Data MOV (EAs) → (EAd), #IMM → (EAd)
transfer MOV:G B/W Moves data between two general registers, or between
MOV:E B a general register and memory, or moves immediate data
MOV:I W to a general register or memory.
MOV:F B/W
MOV:L B/W
MOV:S B/W
LDM W Stack → Rn (register list)
Pops data from the stack to one or more registers.
STM W Rn (register list) → stack
Pushes data from one or more registers onto the stack.
XCH W Rs ↔ Rd
Exchanges data between two general registers.
SWAP B Rd (upper byte) ↔ Rd (lower byte)
Exchanges the upper and lower bytes in a general register.
MOVTPE B Rn → (EAd)
Transfers data from a general register to memory in
synchronization with the E clock.
MOVFPE B (EAs) → Rd
Transfers data from memory to a general register in
synchronization with the E clock.
Note: B—byte; W—word
52
Downloaded from Elcodis.com electronic components distributor