INSTRUCTION DESCRIPTIONS

 

JSSET

Jump to Subroutine if Bit Set

JSSET

Operation:

Assembler Syntax

If S[n]=1,

JSSET

#n,X:ea,xxxx

then SP+1SP; PCSSH; SRSSL; xxxxPC

 

else PC+1PC

 

 

If S[n]=1,

JSSET

#n,X:aa,xxxx

then SP+1SP; PCSSH; SRSSL; xxxxPC

 

else PC+1PC

 

 

If S[n]=1,

JSSET

#n,X:pp,xxxx

then SP+1SP; PCSSH; SRSSL; xxxxPC

 

else PC+1PC

 

 

If S[n]=1,

JSSET

#n,Y:ea,xxxx

then SP+1SP; PCSSH; SRSSL; xxxxPC

 

else PC+1PC

 

 

If S[n]=1,

JSSET

#n,Y:aa,xxxx

then SP+1SP; PCSSH; SR SSL; xxxxPC

 

else PC+1PC

 

 

If S[n]=1,

JSSET

#n,Y:pp,xxxx

then SP+1SP; PCSSH; SRSSL; xxxx PC

 

else PC+1PC

 

 

If S[n]=1,

JSSET

#n,S,xxxx

then SP+1SP; PCSSH; SRSSL; xxxxPC else PC+1PC

Description: Jump to the subroutine at the 16-bit absolute address in program memory specified in the instruction’s 24-bit extension word if the nth bit of the source operand S is set. The bit to be tested is selected by an immediate bit number from 0–23. If the nth bit of the source operand S is set, the address of the instruction immediately following the JSSET instruction (PC) and the system status register (SR) are pushed onto the system stack. Program execution then continues at the specified absolute address in the instruc- tion’s 24-bit extension word. If the specified memory bit is not set, the program counter (PC) is incremented, and the extension word is ignored. However, the address register specified in the effective address field is always updated independently of the state of the

A - 138

INSTRUCTION SET DETAILS

MOTOROLA

Page 407
Image 407
Motorola 24-Bit Digital Signal Processor, DSP56000 manual Jump to Subroutine if Bit Set, Jsset