beautypg.com

Jscc jump to subroutine conditionally jscc – Motorola DSP96002 User Manual

Page 388

background image

A - 200

DSP96002 USER’S MANUAL

MOTOROLA

JScc

Jump to Subroutine Conditionally

JScc

Operation:

If cc, then PC

SSH; SR

SSL; xx

PC

else PC + 1

PC

If cc, then PC

SSH; SR

SSL; ea

PC

else PC + 1

PC

Assembler Syntax:

JScc label (short)

JScc ea

Description:

If the specified condition is true, the address of the instruction immediately following the JScc instruction

and the status register are pushed onto the stack. Program execution then continues at the effective ad-

dress in program memory. If the specified condition is false, the PC is incremented and any extension

word is ignored. However, the address register specified in the effective address field is always updated

independently of the condition. All memory alterable addressing modes may be used for the effective ad-

dress. A fast Short Jump addressing mode may also be used. The 15-bit data is sign extended to form

the effective address. See Section A.10 for restrictions.

"cc" may specify the following conditions:

Mnemonic

Condition

CC (HS) - carry clear (higher or same)

C = 0

CS (LO) - carry set (lower)

C = 1

EQ

- equal

Z = 1

GE

- greater or equal

N && V = 0

GT

- greater than

Z v (N && V) = 0

HI

- higher

Z v C = 0

LE

- less or equal

Z v (N && V) = 1

LS

- lower or same

Z v C = 1

LT

- less than

N && V = 1

MI

- minus

N = 1

NE(Q)

- not equal

Z = 0

PL

- plus

N = 0

VC

- overflow clear

V = 0

VS

- overflow set

V = 1

CCR Condition Codes: Not affected.

ER Status Bits: Not affected.

IER Flags: Not affected.