Freescale-semiconductor StarCore SC140 Manual do Utilizador Página 447

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 760
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 446
CONT
SC140 DSP Core Reference Manual A-133
CONT Continue to the Next Loop Iteration (AGU) CONT
Description
Status and Conditions that Affect Instruction
Status and Conditions Changed by Instruction
Example
cont _label
Loop count 3 (LC3) is 1, so loop count is decremented to 0, loop flag 3 (SR26) is cleared, and program
continues at _label, address $0000 0020.
Operation Assembler Syntax
If LCn > 1, then SAn PC, LCn-1 LCn
else PC + displacement PC
0 LFn,
0 LCn
CONT label
CONT label
Continues the active loop n from the start address of the loop (SAn) if its loop counter (LCn) is greater than
one. Otherwise, it clears the active loop flag (LFn) and branches to an address determined by a 16-bit
signed displacement [–2
16
displacement < 2
16
,W] added to the PC. In either case, the active loop counter
is decremented by one. Some programming rules apply to the use of this instruction. If no loops are
enabled, this instruction is undefined.
Register Address Bit Name Description
SR[30:27] LF[3:0] Read loop flags to determine active loop.
Register Address Bit Name Description
SR[30:27] LF[3:0] Clear active loop flag if the active loop counter is less than or equal to
one.
Register/Memory Address Before After
_label (displacement)
$C
LC3
$1 $0
SR
$40E4 0000 $00E4 0000
PC
$0000 0014 $0000 0020
Vista de página 446
1 2 ... 442 443 444 445 446 447 448 449 450 451 452 ... 759 760

Comentários a estes Manuais

Sem comentários