Bsr branch to subroutine bsr – Motorola DSP96002 User Manual

Page 246

Advertising
background image

A - 58

DSP96002 USER’S MANUAL

MOTOROLA

BSR

Branch to Subroutine

BSR

11

1111

0000

0000

31

14 13

0

PC RELATIVE DISPLACEMENT

0000

0011

0100

0000

00

11

1111

0000

0000

31

14 13

0

0000

0011

0100

001R

11

1111

0aaa

aaaa

31

14 13

0

0000

0011

11aa

aaaa

aa

Operation:

PC

SSH; SR

SSL; PC+xx

PC

PC

SSH; SR

SSL; PC+xxxx

PC

PC

SSH; SR

SSL; PC+Rn

PC

Assembler Syntax:

BSR label (short)

BSR label

BSR Rn

Description:

The address of the instruction immediately following the BSR instruction and the status register are pushed

onto the stack. Program execution then continues at location PC+displacement. The PC contains the ad-

dress of the next instruction. The displacement is a 2’s complement 32-bit integer that represents the

relative distance from the current PC to the destination PC. Short Displacement, Long Displacement and

Address Register PC Relative addressing modes may be used. The Short Displacement 15-bit data is

sign extended to form the PC relative displacement. See Section A.10 for restrictions.

CCR Condition Codes: Not affected.

ER Status Bits: Not affected.

IER Flags: Not affected.

Instruction Format:

BSR label (short)

Instruction Format:

BSR label

Instruction Format:

BSR Rn

Advertising