11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JScc Jump to Subroutine Conditionally JSccOperation: .If cc, then SP+ 1-+SP; PC-+SSH; SR-+SSL; Oxxx-+PCelse PC+ 1-+PCIf cc, then SP+ 1-+SP; PC-+SSH; SR-+SSL; ea-+PCelse PC+ 1-+PCAssembler Syntax:JScc xxxJScc ea-Description: Jump to the subroutine whose location in program memory is given by theinstruction's effective address if the specified condition is true. If the specified condition istrue, the address <strong>of</strong> the instruction immediately following the JScc instruction (PC) andthe system status register (SR) are pushed onto the system stack. Program executionthen continues at the specified effective address in program memory. If the specifiedcondition is false, the program counter (PC) is incremented, and any extension word isignored. However, the address register specified in the effective address field is alwaysupdated independently <strong>of</strong> the specified condition. All memory alterable addressingmodes may be used for the effective address. A fast short jump addressing mode mayalso be used. The 12-bit data is zero extended to form the effective address. The term"cc" may specify the following conditions:CC (HS)CS (LO)ECEQESGEGTLCLELSLTMINENRPLNN"CC" Mnemonic- carry clear (higher or same)- carry set (lower)- extension clear- equal- extension set- greater than or equal- greater than- limit clear- less than or equal-limit set-less than- minus- not equal- normalized-plus- not normalizedConditionC=OC=1E=OZ=1E=1N E9 V=OZ+(N E9 V)=OL=OZ+(N E9 V)=1L=1N E9 V=1N=1Z=OZ+ (UeE) = 1N=OZ+(UeE)=O

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!