BXCH
BXCH, BXCHP
XCH instruction exchanges between the specified data of source 1 and source 2.
| |
D1,D2 | Source 1 and Source 2 |
n | Number of source |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
BXCH BXCHP | D1 | o | - | o | o | o | - | o | o | - | o | o | o | - | 4 | o | - | - |
D2 | o | - | o | o | o | - | o | o | - | o | o | o | - | |||||
n | o | o | o | o | o | o | o | o | - | o | o | o | o |
The BXCH instruction exchanges (n)number of words from D1 to the D2.
Example)
If F12 is ON, the BXCH instruction exchanges between 3 bytes of Y00 (Y00, Y10 and Y20) and 3 bytes of Y200 (Y200, Y210 and Y220)