32.13.4.3 Explanation of the XCH and XCHP Instructions

XCH and XCHP instructions are exchange instructions. When a XCH instruction is run, the data in operands D1 and D2 are switched.

The XCH and XCHP instructions always pass power. When using the XCH and XCHP instructions, an error will occur if the variables specified in operands S1 and D1 are not the same type. Designate the same variable type in operands D1 and D2.