Fujitsu FR family 32-bit microcontroller instruction manue Manuel d'utilisateur Page 166

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 314
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 165
142
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.48 LSR (Logical Shift to the Right Direction)
Makes a logical right shift of the word data in "Ri" by "u4" bits, stores the result to "Ri".
LSR (Logical Shift to the Right Direction)
Assembler format: LSR #u4, Ri
Operation: Ri >> u4 Ri
Flag change:
N: Set when the MSB of the operation result is "1", cleared when the MSB is "0".
Z: Set when the operation result is "0", cleared otherwise.
V: Unchanged
C: Holds the bit value shifted last. Cleared when the shift amount is "0".
Execution cycles: 1 cycle
Instruction format:
Example: LSR #8, R3
NZVC
CCC
MSB LSB
10110000 u4 Ri
R3 R3
00FF FFFFFFFF FFFF
NZVC
CCR CCR
NZVC
00010000
Instruction bit pattern : 1011 0000 1000 0011
Before execution After execution
Vue de la page 165
1 2 ... 161 162 163 164 165 166 167 168 169 170 171 ... 313 314

Commentaires sur ces manuels

Pas de commentaire