Instruction Set
320
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Programmable Real-Time Unit Subsystem (PRUSS)
13.5 Instruction Set
The instruction set is divided into four major categories:
1. Instructions which move data in or out of the processors internal registers
2. Instructions which perform an arithmetic operation
3. Instructions which perform a logical operation
4. Instructions which control program flow
The following sections give a complete list and short description of all of the supported instructions. In
these descriptions, the following abbreviations are used:
Table 13-2. Abbreviations for Instruction Descriptions
Abbreviation
Description
Rs1
Source register 1 from the instruction
Op2
Operand 2 from the instruction – can be either a register (Rs2) or an 8-bit immediate
value
Rd
Destination register from the instruction
BrOff
Branch offset from the instruction – a 10-bit 2’s complement relative offset
WdCnt
Word count – the # of 32-bit data phases that occur in the burst on an external
memory interface
CPI
Clock Cycles Per Instruction
Table 13-3. Load/Store Instructions
Mnemonic
Instruction
Description
CPI
LDI
Load Immediate
Load 16-bit immediate value into internal register
1
LBBO
Load Burst, Base + Offset
Load variable length burst of bytes through one of the memory
interfaces into internal register(s) using a register as the base
address and a register or an 8-bit immediate as the offset
1 + WdCnt
(VBUS)
2 + WdCnt
(VBUSP)
SBBO
Store Burst, Base + Offset
Store variable length burst of bytes through one of the memory
interfaces from internal register(s) using a register as the base
address and a register or 8-bit immediate as the offset
1 + WdCnt
LBCO
Load Burst, Co
Offset
Load variable length burst of bytes through one of the memory
interfaces into internal register(s) using an indexed constant as
the base address and a register or an 8-bit immediate as the
offset
1 + WdCnt
(VBUS)
2 + WdCnt
(VBUSP)
SBCO
Store Burst, Co
Offset
Store variable length burst of bytes through one of the memory
interfaces from internal register(s) using an indexed constant as
the base address and a register or 8-bit immediate as the offset
1 + WdCnt
Table 13-4. Arithmetic Instructions
Mnemonic
Instruction
Description
CPI
ADD
Integer Add
Adds Rs1 and Op2, writes result to Rd, and saves carry.
1
ADC
Integer Add With Carry
Adds Rs1, Op2 and the saved carry, writes result to Rd, and
saves carry.
1
SUB
Integer Subtract
Subtracts Op2 from Rs1 and writes result to Rd and saves carry
(borrow).
1
SUC
Integer Subtract With
Carry
Subtracts Op2 from Rs1 then subtracts the saved carry (borrow)
and writes result to Rd and saves carry (borrow).
1
RSB
Integer Reverse Subtract
Subtracts Rs1 from Op2 and writes result to Rd and saves carry
(borrow).
1
RSC
Interger Reverse Subtract
With Carry
Subtracts Rs1 from Op2 then subtracts the saved carry (borrow)
and writes result to Rd and saves carry (borrow).
1