11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

JSccJump to Subroutine ConditionallyJSccwhereo denotes the logical complement <strong>of</strong> U,+ denotes the logical OR operator,• denotes the logical AND operator, andEB denotes the logical Exclusive OR operatorRestrictions: A JScc instruction used within a DO loop cannot specify the loopaddress (LA) as its target.A JScc instruction used within in a DO loop cannot begin at the address LA within thatDO loop.A JScc instruction cannot be repeated using the REP instruction.Example:JSLS (R3+N3);jump to subroutine at P:(R3+N3) if limit set (L=1)Explanation <strong>of</strong> Example: In this example, program execution is transferred to the subroutineat address P:(R3+N3) in program memory if the limit bit is set (L=1). Both thereturn address (PC) and the status register (SR) are pushed onto the system stack priorto transferring program control to the subroutine if the specified condition is true. If thespecified condition is not true, no jump is taken and the program counter is incrementedby 1.Condition Codes:I LF I DM I T I" I S1 I SO I 11 I 10 I S I L I E I u N I z... MR • ... CCR15 14 13 12 11 10 9 8 7 6 5 4 3 2 oThe condition codes are not affected by this instruction.-

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

Saved successfully!

Ooh no, something went wrong!