
TMS320C240, TMS320F240
DSP CONTROLLERS
SPRS042D – OCTOBER 1996 – REVISED NOVEMBER 1998
54
POST OFFICE BOX 1443
HOUSTON, TEXAS 77251–1443
instruction set summary (continued)
Table 14. TMS320x240 Instruction Set Summary
’x240
DESCRIPTION
WORDS/
CYCLES
OPCODE
MNEMONIC
MSB
LSB
ABS
Absolute value of accumulator
1/1
1011
1110
0000
0000
Add to accumulator with shift
1/1
0010
SHFT
IADD
RESS
ADD
Add to high accumulator
1/1
0110
0001
IADD
RESS
Add to accumulator short immediate
1/1
1011
1000
KKKK
KKKK
Add to accumulator long immediate with shift
2/2
1011
1111
1001
SHFT
ADDC
Add to accumulator with carry
1/1
0110
0000
IADD
RESS
ADDS
Add to low accumulator with sign extension suppressed
1/1
0110
0010
IADD
RESS
ADDT
Add to accumulator with shift specified by T register
1/1
0110
0011
IADD
RESS
ADRK
Add to auxiliary register short immediate
1/1
0111
1000
KKKK
KKKK
AND with accumulator
1/1
0110
1110
IADD
RESS
AND immediate with accumulator with shift
2/2
1011
1111
16-Bit Constant
1011
SHFT
AND
AND immediate with accumulator with shift of 16
2/2
1011
1110
16-Bit Constant
1000
0001
APAC
Add P register to accumulator
1/1
1011
1110
0000
0100
B
Branch unconditionally
2/4
0111
1001
Branch Address
IADD
RESS
BACC
Branch to address specified by accumulator
1/4
1011
1110
0010
0000
BANZ
Branch on auxiliary register not zero
2/4/2
0111
1011
Branch Address
IADD
RESS
≠
Branch if TC bit
0
2/4/2
1110
0001
Branch Address
0000
0000
Branch if TC bit = 0
2/4/2
1110
0010
Branch Address
0000
0000
Branch on carry
2/4/2
1110
0011
Branch Address
0001
0001
≥
Branch if accumulator
0
2/4/2
1110
0011
Branch Address
1000
1100
>
Branch if accumulator
0
2/4/2
1110
0011
Branch Address
0000
0100
BCND
Branch on I/O status low
2/4/3
1110
0000
Branch Address
0000
0000
≤
Branch if accumulator
0
2/4/2
1110
0011
Branch Address
1100
1100
<
Branch if accumulator
0
2/4/2
1110
0011
0100
0100
Branch Address
Branch on no carry
2/4/2
1110
0011
0000
0001
Branch Address
Branch if no overflow
2/4/2
1110
0011
Branch Address
0000
0010