Fujitsu FR family 32-bit microcontroller instruction manue Manual de usuario Pagina 106

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 314
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 105
82
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.11 CMP (Compare Word Data in Source Register and
Destination Register)
Subtracts the word data in "Rj" from the word data in "Ri", places results in the
condition code register (CCR).
CMP (Compare Word Data in Source Register and Destination Register)
Assembler format: CMP Rj, Ri
Operation: Ri – Rj
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 : Set when an overflow has occurred as a result of the operation, cleared otherwise.
C : Set when a borrow has occurred as a result of the operation, cleared otherwise.
Execution cycles: 1 cycle
Instruction format:
Example: CMP R2, R3
NZVC
CCCC
MSB LSB
10101010 Rj Ri
R2
R3
1234 5678
1234 5678
NZVC
CCR
R2
R3
CCR
0000
NZVC
0100
1234 5678
1234 5678
Before execution After execution
Instruction bit pattern : 1010 1010 0010 0011
Vista de pagina 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 313 314

Comentarios a estos manuales

Sin comentarios