beautypg.com

Skipls, Skip loop if lc less than or, Operation assembler syntax – Freescale Semiconductor StarCore SC140 User Manual

Page 700

background image

A-386

SC140 DSP Core Reference Manual

SKIPLS

SKIPLS

Skip Loop If LC Less Than or

SKIPLS

Equal to Zero (AGU)

Description

Status and Conditions that Affect Instruction

Status and Conditions Changed by Instruction

Example

skipls _label

Operation

Assembler Syntax

If LCn

≤ 0,

then PC + displacement

→ PC

0

→ LFn

SKIPLS label

SKIPLS label

Branches to an address that is the current PC plus the displacement and disables the active loop if its loop
counter (LCn) is less than or equal to zero. The displacement is calculated by the assembler and linker.
SKIPLS is typically placed before a loop to bypass it if the loop count at run time does not indicate any
iterations. 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]

Determines which loop is active.

Register Address

Bit Name

Description

SR[30:27]

LF[3:0]

Clear the active loop flag if the active loop counter is less than or equal
to one.

Register/Memory Address

Before

After

SR

$10E0 0000

$00E0 0000

_label (displacement)

$0010

PC

$0000 000E

$0000 001E