Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TMS320C2x DSP - syntax [<label>] cala http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SYNTAX      [<LABEL>] CALA

OPERANDS    None

EXECUTION   (PC) + 1 . TOS
            (ACC(15-0)) . PC

DESCRIPTION The current program counter is incremented and pushed onto
            the top of the stack. Then, the contents of the lower half of
            the accumulator are loaded into the PC. The carry bit on the
            TMS320C25 is unaffected by this instruction.

            The CALA instruction is used to perform computed subroutine
            calls.

WORDS       1

ENCODING    15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |1  1  0  0  1  1  1  0  0  0  1  0  0  1  0  0 |
            +-----------------------------------------------+

CYCLES

            +----------------------------------------------------+
            |       Cycle Timings for a Single Instruction       |
            |----------------------------------------------------|
            |  PI/DI |  PI/DE |  PE/DI |  PE/DE  | PR/DI | PR/DE |
            |--------+--------+--------+---------+-------+-------|
       '20  |    2   |    2   |   2+p  |   2+p   |   -   |   -   |
            |----------------------------------------------------|
      'C25  |              Destination on-chip RAM:              |
            |----------------------------------------------------|
            |    2   |   2    |  2+2p  |  2+2p   |   2   |   2   |
            |----------------------------------------------------|
            |              Destination on-chip ROM:              |
            |----------------------------------------------------|
            |    3   |   3    |  3+2p  |  3+2p   |   3   |   3   |
            |----------------------------------------------------|
            |            Destination external memory:            |
            |----------------------------------------------------|
            |   3+p  |  3+p   |  3+3p  |  3+3p   |  3+p  |  3+p  |
            |----------------------------------------------------|
            |       Cycle Timings for a Repeat Instruction       |
            |----------------------------------------------------|
     'C25   |           not repeatable           |   -   |   -   |
            |----------------------------------------------------|
     'C25   |                     not repeatable                 |
            +----------------------------------------------------+



EXAMPLE     CALA

                     BEFORE             AFTER

                  PC    >25         PC    >83
                  ACC   >83         ACC   >83

                  STACK >32         STACK >26
                  '20   >75         '20   >32
                        >84               >75
                        >49               >84

                  STACK >32         STACK >26
                  'C25  >75         'C25  >32
                        >84               >75
                        >49               >84
                         >0               >49
                         >0                >0
                         >0                >0
                         >0                >0

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson