Example
Table 3–10. Program Counter Values for Example Branch Using a Register
Table 3–10 gives the program counter values and actions for the following
code example. In this example, the B10 register holds the value 1000 000Ch.
B10 1000 000Ch
1000 0000
1000 0004
1000 0008
|| ADD
1000 000C
1000 0010
|| SUB
1000 0014
1000 0018
1000 001C
1000 0020
Program Counter
Cycle
Value
Cycle 0
1000 0000h
Cycle 1
1000 0004h
Cycle 2
1000 000Ch
Cycle 3
1000 0014h
Cycle 4
1000 0018h
Cycle 5
1000 001Ch
Cycle 6
1000 000Ch
Cycle 7
1000 0014h
B
.S2
B10
ADD
.L1
A1, A2, A3
.L2
B1, B2, B3
MPY
.M1X
A3, B3, A4
.D1
A5, A6, A6
MPY
.M1
A3, A6, A5
MPY
.M1
A6, A7, A8
SHR
.S1
A4, 15, A4
ADD
.D1
A4, A6, A4
TMS320C62x/C67x Fixed-Point Instruction Set
Branch Using a Register
Action
Branch command executes
(target code fetched)
Branch target code executes
B
3-43
Need help?
Do you have a question about the TMS320C6000 Series and is the answer not in the manual?
Questions and answers