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.

JSR Jump to Subroutine JSROperation:Assembler Syntax:SP+1 .... SP; PC .... SSH; SR .... SSL; Oxxx .... PC JSR xxxSP+ .... SP; PC .... SSH; SR .... SSL; ea-+PCJSR eaDescription: Jump to the subroutine whose location in program memory is given by theinstruction's effective address. The address <strong>of</strong> the instruction immediately following theJSR instruction (PC) and the system status register (SR) is pushed onto the systemstack. Program execution then continues at the specified effective address in programmemory. All memory alterable addressing modes may be used for the effective address.A fast short jump addressing mode may also be used. The 12-bit data is zero extendedto form the effective address.Restrictions: A JSR instruction used within a DO loop cannot specify the loopaddress (LA) as its target.A JSR instruction used within a DO loop cannot begin at the address LA within that DOloop.A JSR instruction cannot be repeated using the REP instruction.Example:JSR (R5)+;jump to subroutine at (R5), update R5Explanation <strong>of</strong> Example: In this example, program execution is transferred to the subroutineat address P:(R5) in program memory, and the contents <strong>of</strong> the R5 address registerare then updated.Condition Codes:I15 14 13 12 11 10 9 8 7 6 5 4 3 2 0LF I DM I T I ** I S1 I SO I 11... MR ....I 10 Is ILThe condition codes are not affected by this instruction.I E I u I N I z I vCCRI~I

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

Saved successfully!

Ooh no, something went wrong!