| Instrukcja logiczna | ||||
| Mnemonik | Operandy | Kod instrukcji | Ilość bajtów | Cykle oscylatora |
| SWAP | A | C4 | 1 | 12 |
Instrukcja SWAP powoduje zamianę miejscami czterech górnych bitów z czterema dolnymi bitami Akumulatora.
Przykład:
| A | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| SWAP A | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 |



Lista instrukcji ASM uC51