Texas Instruments TMS320C2XX Calculator User Manual


 
Instruction Set Comparison Table
B-15
TMS320C1x/C2x/C2xx/C5x Instruction Set Comparison
Syntax
Description5x2xx2x1x
BZ
pma
BZ
pma
[
,
{
ind
} [
, next ARP
]]
Branch if Accumulator = Zero
If the contents of the accumulator = 0, branch to the
specified program-memory address.
TMS320C2x, TMS320C2xx and TMS320C5x de-
vices: Modify the current AR and ARP as specified.
TMS320C2xx and TMS320C5x devices: To modify the
AR and ARP, use the –p porting switch.
CALA
Call Subroutine Indirect
The contents of the accumulator specify the address
of a subroutine. Increment the PC, push the PC onto
the stack, then load the 12 (TMS320C1x) or 16
(TMS320C2x/C2xx) LSBs of the accumulator into the
PC.
CALA[
D
]
Call Subroutine Indirect With Optional Delay
The contents of the accumulator specify the address
of a subroutine. Increment the PC and push it onto the
stack; then load the 16 LSBs of the accumulator into
the PC.
If you specify a delayed branch (CALAD), the next two
instruction words (two 1-word instructions or one
2-word instruction) are fetched and executed before
the call.
CALL
pma
CALL
pma
[
,
{
ind
} [
, next ARP
]]
Call Subroutine
The contents of the addressed program-memory loca-
tion specify the address of a subroutine. Increment the
PC by 2, push the PC onto the stack, then load the
specified program-memory address into the PC.
TMS320C2x and TMS320C2xx devices: Modify the
current AR and ARP as specified.
CALL[
D
]
pma
[
,
{
ind
} [
, next
ARP
]]
Call Unconditionally With Optional Delay
The contents of the addressed program-memory loca-
tion specify the address of a subroutine. Increment the
PC and push the PC onto the stack; then load the
specified program-memory address (symbolic or nu-
meric) into the PC. Modify the current AR and ARP as
specified.
If you specify a delayed branch (CALLD), the next two
instruction words (two 1-word instructions or one
2-word instruction) are fetched and executed before
the call.