Texas Instruments MSP430x1xx Manual de usuario Pagina 85

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 432
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 84
Instruction Set
3-49
RISC 16−Bit CPU
JN Jump if negative
Syntax JN label
Operation if N = 1: PC + 2 × offset −> PC
if N = 0: execute following instruction
Description The negative bit (N) of the status register is tested. If it is set, the 10-bit signed
offset contained in the instruction LSBs is added to the program counter. If N
is reset, the next instruction following the jump is executed.
Status Bits Status bits are not affected.
Example The result of a computation in R5 is to be subtracted from COUNT. If the result
is negative, COUNT is to be cleared and the program continues execution in
another path.
SUB R5,COUNT ; COUNT − R5 −> COUNT
JN L$1 ; If negative continue with COUNT=0 at PC=L$1
...... ; Continue with COUNT0
......
......
......
L$1 CLR COUNT
......
......
......
Vista de pagina 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 431 432

Comentarios a estos manuales

Sin comentarios