Freescale-semiconductor StarCore SC140 Bedienungsanleitung Seite 537

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 760
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 536
LPMARKx
SC140 DSP Core Reference Manual A-223
Status and Conditions Changed by LPMARK Execution
The loop flag (LFn) and short loop flag (SLFn) are cleared as described in the operation field.
Example
Insertion of lpmarkb by assembler.
Prefix Formats and Opcodes
Note: If LPMARKA is present, j = 1. If LPMARKB is present, p = 1. The other bits shown in the encoding table are
independent of LPMARKx.
Instruction Disassembled Instruction Comments
dosetup0 _lab dosetup0 *+e Sets up loop 0 with a start address at _lab.
doen0 d6 doen0 d6 Initializes a long loop with the iteration count from d6.
move.w #1,d1 move.w #<$1,d1 Puts the number one into d1.
move.w #2,d2 move.w #<$2,d2 Puts the number two into d2.
move.w #3,d3 move.w #<$3,d3 Puts the number three into d3.
move.w #4,d4 move.w #<$4,d4 Puts the number four into d4.
loopstart0 An assembler directive that defines the start of the loop.
_lab inc d1 inc d1 Increments d1 each pass through the loop.
inc d2 lpmarkb inc d2
lpmarkb bit placed in the prefix by the assembler. Incre-
ments d2 each pass through the loop.
inc d3 inc d3 Increments d3 each pass through the loop.
inc d4 inc d4 Increments d4 each pass through the loop.
loopend0 An assembler directive that defines the end of the loop.
add d1,d2,d0 add d1,d2,d0
Places the sum of d1and d2 into d0. If two iterations were
selected in d6, d1=3, d2=4, and d0=7.
End-of-Loop Mark Words Cycles Type Opcode
15 8 7 0
LPMARKx 1 1 4 1001aaa0110p j ccc
15 8 7 0
LPMARKx 2 1 4 0011aaa0Hthp j ccc
101bBeETbBeEbBeE
Seitenansicht 536
1 2 ... 532 533 534 535 536 537 538 539 540 541 542 ... 759 760

Kommentare zu diesen Handbüchern

Keine Kommentare