Keil Logo Arm Logo

8051 Instruction Set Manual

SWAP

The SWAP instruction exchanges the low-order and high-order nibbles within the accumulator. No flags are affected by this instruction.

See Also: XCH, XCHD

SWAP A
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
11000100
Operation
SWAP
A3-0 swap A7-4
Example
SWAP A

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.