ADSP-21020

IMMEDIATE MOVE INSTRUCTIONS

14a. DM(<addr32>) = ureg ; PM(<addr24>)

14b. ureg =

DM(<addr32>)

;

 

PM(<addr24>)

 

15a. DM(<data32>, Ia) = ureg; PM(< data24>, Ic)

15b. ureg =

DM(<data32>, Ia)

;

 

PM(<data24>, Ic)

 

16.DM(Ia, Mb) = <data32>; PM(Ic, Md)

17.ureg = <data32>;

MISCELLANEOUS INSTRUCTIONS

 

 

18.

BIT

 

SET

 

 

sreg <data32>;

 

 

 

 

 

 

 

 

 

 

 

 

 

CLR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TGL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XOR

 

 

 

 

 

 

 

 

 

19a. MODIFY

 

 

(Ia, <data32>)

 

;

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Ic, <data32>)

 

 

 

 

 

 

19b. BITREV

 

(Ia, <data32>)

;

 

 

 

20.

 

PUSH

 

 

 

LOOP

,

 

 

 

PUSH

 

STS ;

 

 

 

 

 

 

 

 

 

POP

 

 

 

 

 

 

 

 

 

 

POP

 

 

21.NOP ;

22.IDLE ;

Table I. Syntax Notation Conventions

Notation

Meaning

UPPERCASE

Explicit syntax—assembler keyword (nota-

 

tion only; assembler is not case-sensitive

 

and lowercase is the preferred programming

 

convention)

;

Instruction terminator

,

Separates parallel operations in an

 

instruction

italics

Optional part of instruction

between lines

List of options (choose one)

<datan>

n-bit immediate data value

<addrn>

n-bit immediate address value

<reladdrn>

n-bit immediate PC-relative address value

compute

ALU, multiplier, shifter or multifunction

 

operation (from Tables IV-VII)

shiftimm

Shifter immediate operation

 

(from Table VI)

condition

Status condition (from Table II)

termination

Termination condition (from Table II)

ureg

Universal register (from Table III)

sreg

System register (from Table III)

dreg

R15-R0, F15-F0; register file location

Ia

I7-I0; DAG1 index register

Mb

M7-M0; DAG1 modify register

Ic

I15-I8; DAG2 index register

Md

M15-M8; DAG2 modify register

 

 

Table II. Condition and Termination Codes

 

 

Name

Description

 

 

eq

ALU equal to zero

ne

ALU not equal to zero

ge

ALU greater than or equal to zero

lt

ALU less than zero

le

ALU less than or equal to zero

gt

ALU greater than zero

ac

ALU carry

not ac

Not ALU carry

av

ALU overflow

not av

Not ALU overflow

mv

Multiplier overflow

not mv

Not multiplier overflow

ms

Multiplier sign

not ms

Not multiplier sign

sv

Shifter overflow

not sv

Not shifter overflow

sz

Shifter zero

not sz

Not shifter zero

flag0_in

Flag 0

not flag0_in

Not Flag 0

flag1_in

Flag 1

not flag1_in

Not Flag l

flag2_in

Flag 2

not flag2_in

Not Flag 2

flag3_in

Flag 3

not flag3_in

Not Flag 3

tf

Bit test flag

not tf

Not bit test flag

lce

Loop counter expired (DO UNTIL)

not lce

Loop counter not expired (IF)

forever

Always False (DO UNTIL)

true

Always True (IF)

 

 

In a conditional instruction, the execution of the entire instruction is based on the specified condition.

–8–

REV. C

Page 8
Image 8
Analog Devices ADSP-21020 manual Notation Meaning, Italics, Name Description