SWAPF Swap Nibbles in fÂ
Syntaxe : |
SWAPF f,d
|
|
Opération : | (f<3:0>) -> (destination<7:4>);                                    (f<7:4>) -> (destination<3:0>) | 0 < f < 127 |
Bits d'état affectés : | Aucun |
Â
Description : |
Echange les 4 bits MSB avec les 4 bits LSB de f.Â
Le résultat est placé dans le registre W si d=0 ou dans le registre f si d=1.
|
Â
Exemple : |
 SWAPF REG,0
|
|
avant l'instruction | REG1 = A5h | |
après l'instruction |
REG1 = A5h
W = 5Ah
|
Â
< Précédent | Suivant > |
---|