Fujitsu FR family 32-bit microcontroller instruction manue Instrukcja Użytkownika Strona 170

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 314
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 169
146
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.52 ASR2 (Arithmetic Shift to the Right Direction)
Makes an arithmetic right shift of the word data in "Ri" by "{u4 + 16}" bits, stores the
result to "Ri".
ASR2 (Arithmetic Shift to the Right Direction)
Assembler format: ASR2 #u4, Ri
Operation: Ri >> {u4 + 16} 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.
Execution cycles: 1 cycle
Instruction format:
Example: ASR2 #8, R3
NZVC
CCC
MSB LSB
10111001 u4 Ri
R3 R3
FFFF FFF0F0FF FFFF
NZVC
CCR CCR
NZVC
10010000
Instruction bit pattern : 1011 1001 1000 0011
Before execution After execution
Przeglądanie stron 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 313 314

Komentarze do niniejszej Instrukcji

Brak uwag