Fujitsu FR family 32-bit microcontroller instruction manue Bedienungsanleitung Seite 158

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 314
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 157
134
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.41 DIV2 (Correction when Remainder is 0)
This instruction is used in signed division. It should be used in combinations such as
DIV0S, DIV1 x 32, DIV2, DIV3 and DIV4S.
DIV2 (Correction when Remainder is 0)
Assembler format: DIV2 Ri
Operation: if (D1 = = 1) {
MDH + Ri temp
}
else {
MDH – Ri temp
}
if (Z == 1) {
0 MDH
}
Flag change:
N and V: Unchanged
Z: Set when the operation result of stepwise division is "0", cleared otherwise. Set according to
remainder of division results, not according to quotient.
C: Set when the result of stepwise division involves a carry or borrow operation, cleared otherwise.
Execution cycles: 1 cycle
Instruction format:
NZVC
–C–C
MSB LSB
100101110111 Ri
Seitenansicht 157
1 2 ... 153 154 155 156 157 158 159 160 161 162 163 ... 313 314

Kommentare zu diesen Handbüchern

Keine Kommentare