Topic: DMD0029 SWAPB - Swap Bytes |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
The Swap Bytes (SWAPB) instruction is used to swap the Bytes and/or the Words in the designated range of locations. This instruction will begin at the first Source location and swap the Bytes and/or Words, then store the result in the first destination location. This operation will be repeated the number of times specified by the Elements value on successive Source locations.
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters:Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.
Source -
Destination - designates the
first location to store the result. This can be any writable numeric block
location.
Elements - specifies how many successive Word or DWord elements the Swap Bytes instruction will operate on
Swap Byte - select this option to swap the Bytes in each of the Words or DWord elements
Swap Word - select this option to swap the Words in each of the DWord elements
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
See Also:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Related Topics:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Rung Example:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|