15
15 – 74
MOVE
I/O SPACE READ/WRITE
(ADSP-218x only)
Syntax:
IO (<addr>) = dreg ; I/O write
dreg = IO (<addr>) ; I/O read
<addr> is an 11-bit direct address value between 0 and 2047
Permissible dregs
AX0 MX0 SI
AX1 MX1 SE
AY0 MY0 SR1
AY1 MY1 SR0
AR MR2
MR1
MR0
Examples: IO(23) = AX0;
MY1 = IO(2047);
Description: The I/O space read and write instructions are used to
access the ADSP-218x’s I/O memory space. These instructions move data
between the processor data registers and the I/O memory space.
Status Generated: None affected.
Instruction Format:
I/O Memory Space Read/Write, Instruction Type 29:
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 1 D ADDR DREG
ADDR contains the 11-bit direct address of the source or destination
location in I/O Memory Space.
DREG selects the Data Register. One of the 16 Data Registers is selected
according to the Register Selection Table (see Appendix A).
D specifies the direction of the transfer (0=read, 1=write).