![Texas Instruments AM1808 Technical Reference Manual Download Page 336](http://html.mh-extra.com/html/texas-instruments/am1808/am1808_technical-reference-manual_1094558336.webp)
Instruction Formats
336
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
Figure 13-16. Format 5a: (Quick Bit Test and Branch – Register Op2)
31
29
28
27
26
25
24
23
21
20
16
OP
BS
BC
BrOff[[9:8]
IO
Rs2Sel
Rs2
15
13
12
8
7
0
Rs1Sel
Rs1
BrOff[7:0]
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
(1)
Branch is taken if any of the 2 conditions are satisfied: BS or BC.
Table 13-21. Format 5a: (Quick Bit Test and Branch – Register Op2)
Bit
Field
Description
31-29
OP
0b110 = Specifies Format 5
28
BS
0-1 = Bit Set: If set specifies that branch should be taken if Rs1[Op2[4:0]] == 1
(1)
27
BC
0-1 = Bit Clear: If set specifies that branch should be taken if Rs1[Op2[4:0]] == 0
(1)
26-25
BrOff[9:8]
0-3 = This field contains the 2-MSBs of the 2s complement signed offset for the branch
24
IO
0 = Op2 is a register
23-21
Rs2Sel
0 = Select bits 7:0 from the source register 2
1 = Select bits 15:8 from the source register 2
2 = Select bits 23:16 from the source register 2
3 = Select bits 31:24 from the source register 2
4 = Select bits 15:0 from the source register 2
5 = Select bits 23:8 from the source register 2
6 = Select bits 31:16 from the source register 2
7 = Select bits 31:0 from the source register 2
20-16
Rs2
0-31 = This field selects the register number which contains the bit number of the first operand
which is to be compared.
15-13
Rs1Sel
0 = Select bits 7:0 from the source register 1
1 = Select bits 15:8 from the source register 1
2 = Select bits 23:16 from the source register 1
3 = Select bits 31:24 from the source register 1
4 = Select bits 15:0 from the source register 1
5 = Select bits 23:8 from the source register 1
6 = Select bits 31:16 from the source register 1
7 = Select bits 31:0 from the source register 1
12-8
Rs1
0-31 = This field selects the register number which contains the first source operand that is to be
compared.
7-0
BrOff[7:0]
0-255 = This field contains the 8-LSBs of the 2-s complement signed offset for the branch