Ureg÷Dm|Pm (Indirect Addressing) - Analog Devices ADSP-2106x SHARC User Manual

Table of Contents

Advertisement

Instruction Set Reference
ureg DM|PM (indirect addressing)
Syntax:
a.
DM(<data32>, Ia)
PM(<data24>, Ic)
b.
ureg = DM(<data32>, Ia) ;
PM(<data24>, Ic)
Function:
Access between data memory or program memory and a universal
register, with indirect addressing using I registers. The I register is
pre-modified with an immediate value specified in the instruction. The
I register is not updated. Data memory address modifiers are 32 bits
32
wide (0 to 2
–1). Program memory address modifiers are 24 bits wide
24
(0 to 2
–1).
Notes:
1. ureg may not be from the same DAG (i.e. DAG1 or DAG2) as Ia/Mb or Ic/Md.
2. See Section 4.4.1, "DAG Register Transfer Restrictions", in Chapter 4,
Data Addressing.
Examples:
DM(24,I5)=TCOUNT;
USTAT1=PM(offs,I13);
Opcode:
47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
1 0 1
G
I
D
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D selects the access type (read or write). G selects the memory type
(data or program). UREG specifies the number of a universal register.
ADDR contains the immediate address value. The I field specifies the
I register. The DATA field specifies the immediate modify value for the
I register.
www.BDTIC.com/ADI
Immediate Move
= ureg ;
{"offs" is a defined constant}
UREG
DATA
A
A – 41

Advertisement

Table of Contents
loading

Table of Contents