Freescale-semiconductor StarCore SC140 Manual de usuario Pagina 689

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 760
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 688
RTSTK
SC140 DSP Core Reference Manual A-375
Example
rtstk
Instruction Formats and Opcodes
Instruction Comment
- - -
jsr SUB
Jump to subroutine at SUB. Push the PC and SR onto the
stack.
- - - Skip over these instructions.
SUB MOVE.w #$16,d4 Execute the subroutine here.
- - -
move.w #lbl,(SP-8) Change the original value in the stack for PC to lbl.
rtstk Restore the new value lbl to PC.
move.l #$16,d5 This instruction skipped.
lbl move.l #$16,d6 Continue executing here.
Instruction Words
Cycles
1
Note 1: RTSTK uses 5 cycles if the shadow SP is valid. RTSTK uses 6 cycles if the shadow SP is not valid.
Type Opcode
15 8 7 0
RTSTK 1 5/6 4 1001111101110101
Vista de pagina 688
1 2 ... 684 685 686 687 688 689 690 691 692 693 694 ... 759 760

Comentarios a estos manuales

Sin comentarios