Freescale Semiconductor SC140 specifications Instructions, Instruction Definition Layout

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 333
Image 333

DSP Core Instruction Set

A.2 Instructions

The following pages list all of the SC140 instructions and provide specific details about each instruction’s operation and encoding.

A.2.1 Instruction Definition Layout

INST

Description (type)

 

INST

 

A brief description of the instruction

 

 

 

Instruction type

 

 

 

 

 

 

 

 

 

 

 

 

(AGU, DALU, etc.)

 

 

 

Instruction name, the same as in the mnemonic

 

 

 

 

 

Operation

The fields under this header describe the operations carried out by the various forms of this instruction.

Description

Assembler Syntax

The fields under this header illustrate the assembler syntax for the various forms of this instruction. The field in curly brackets to the right of an instruction defines the range of a constant used as an operand, and its alignment (B = byte, W = word,

L = long word/2 words, Q = quad word/4 words) if used as an address or in an address calculation.

The paragraphs under this header provide a detailed description of the various forms of this instruction.

Status and Conditions that Affect or are Changed by Instruction

The paragraphs under this header explain how status bits and condition codes affect the execution of the instruction and how the instruction affects clearing or setting particular condition codes and status bits.

Example (The instruction as it would be entered by a programmer.)

inst

(Optional section added when examples make the instruction definition clearer.)

The first column of the example lists the registers or memory addresses affected in the example.

The second column illustrates those registers, immediates, and memory locations BEFORE execution takes place. The third column illustrate those registers and memory locations AFTER execution takes place.

The examples show the effects on the programmer’s model (registers and memory), and do not reflect the pipeline timing of the updates.

Instruction Formats and Opcodes

The fields under this header define the instruction:

Instruction

Words

Cycles Type

Opcode

The instruction in assembler

 

 

 

 

 

 

One to three words (16 bits per word) of bits defining

syntax.

 

 

 

 

 

 

the opcode as the core decodes it.

 

 

 

 

 

 

Number of words in memory

 

 

 

 

 

 

The instruction’s type relevant to non-prefix grouping. See

used by this instruction.

 

 

 

 

 

 

Section 5.2.2.1, Serial Grouping, for details.

 

 

 

 

 

 

 

 

The number of cycles used in execution of this instruction. Addressing modes and the machine’s state

can affect the cycle count of instructions. See Section 5.3, "Instruction Timing" for more details.

Instruction Fields

(Optional section added when the instruction has one or more operands.)

Each field shows how the operand appears in the Mnemonic and Opcode fields of the Instruction Formats and Opcodes section. A field contains a table of registers or the definition of an immediate value, an absolute address displacement/offset, or an absolute address.

A table of registers lists single register groups, register pair groups, address offset/post increment definition groups, or register quad groups.

SC140 DSP Core Reference Manual

A-19

Page 333
Image 333
Freescale Semiconductor SC140 specifications Instructions, Instruction Definition Layout