![Texas Instruments AM1808 Скачать руководство пользователя страница 334](http://html.mh-extra.com/html/texas-instruments/am1808/am1808_technical-reference-manual_1094558334.webp)
Instruction Formats
334
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
Figure 13-14. Format 4a: (Quick Arithmetic Test and Branch – Register Op2)
31
30
29
28
27
26
25
24
23
21
20
16
OP
GT
EQ
LT
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 3 conditions are satisfied: GT, EQ or LT.
Table 13-19. Format 4a: (Quick Arithmetic Test and Branch – Register Op2)
Bit
Field
Description
31-30
OP
0b01 = Specifies Format 4
29
GT
0-1 = Greater Than: If set specifies that branch should be taken if Op2 > Rs1
(1)
28
EQ
0-1 = Equal: If set specifies that branch should be taken if Op2 == Rs1
(1)
27
LT
0-1 = Less Than: If set specifies that branch should be taken if Op2 < Rs1
(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 second source operand that 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