208
4
4 Instructions4.5.5 Other Data Processing
◆
Application
●
Before execution of the instruction
●
After execution of the instruction
4.5.5 Other Data Processing
SWAP: Higher and lower byte swap
◆
Overview
The SWAP instruction exchanges the higher and lower bytes of the variable in S.
SWAP S
Higher and lower
byte swap
Applicable model:
H3U
S Operand
Unit that stores the data whose higher and lower bytes
will be exchanged
16-bit instruction
(3 steps)
SWAP:
Continuous
execution
SWAPP: Pulse
execution
32-bit instruction (5
steps)
DSWAP:
Continuous
execution
DSWAPP: Pulse
execution
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.