![Texas Instruments AM1808 Скачать руководство пользователя страница 335](http://html.mh-extra.com/html/texas-instruments/am1808/am1808_technical-reference-manual_1094558335.webp)
Instruction Formats
335
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
Figure 13-15. Format 4b: (Quick Arithmetic Test and Branch – Immediate Op2)
31
30
29
28
27
26
25
24
23
16
OP
GT
EQ
LT
BrOff[9:8]
IO
Imm
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-20. Format 4b: (Quick Arithmetic Test and Branch – Immediate 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
1 = Op2 is an 8-bit immediate value
23-16
Imm
0-255 = 8-bit immediate value to be used as second operand 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