BTFSS Bit Test f, Skip if Set
Syntaxe : | BTFSS f,b | |
Opération : | Saut si (f<b>) = 1 |
0Â <Â f < 127
0Â <Â b < 7
|
Cycles : | 1 ou 2 | |
Bits d'état affectés : | Aucun |
Â
Description : |
Si le bit numéro b de f est à 1, l’instruction suivante est ignorée et traitée comme un NOP.
BTFSS nécessite alors 2 cycles.
Si ce bit est à 0, l’instruction suivante est traitée normalement. BTFSS ne nécessite alors qu’un seul cycle.
|
Â
Exemple : |
ICIÂ Â Â Â Â Â Â Â Â BTFSSÂ Â Â Â FLAG,1
FAUXÂ Â Â GOTOÂ Â Â Â Â Â AILLEURS
VRAIÂ Â Â Â *
            *
            *
|
|
avant l'instruction | PC = adresse ICI | |
après l'instruction |
Si FLAG<1> = 0Â PC = adresse FAUX
Si FLAG<1> = 1 PC = adresse VRAI
|
Â
< Précédent | Suivant > |
---|