Texas-instruments TMS320C3x Uživatelský manuál Strana 163

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 757
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 162
Indirect Addressing
6-10
Example 6–5. Indirect Addressing With Predisplacement Add and Modify
The address of the operand to fetch is the sum of an auxiliary register (AR
n
) and
the displacement (
disp
). The displacement is either an 8-bit unsigned integer
contained in the instruction word or an implied value of 1. After the data is
fetched, the auxiliary register is updated with the address generated.
Operation: operand address = AR
n
+
disp
AR
n
= AR
n
+
disp
Assembler Syntax: *++AR
n
(
disp
)
Modification Field: 00010
(+)
0
0
31 24 23
Addressxx
AR
n
31
disp
00
0
31
87
Integer
Operand
0...0
Example 6–6. Indirect Addressing With Predisplacement Subtract and Modify
The address of the operand to fetch is the contents of an auxiliary register
(AR
n
) minus the displacement (
disp
). The displacement is either an 8-bit
unsigned integer contained in the instruction word or an implied value of 1.
After the data is fetched, the auxiliary register is updated with the address
generated.
Operation: operand address = AR
n
disp
AR
n
= AR
n
disp
Assembler Syntax: *––AR
n
(
disp
)
Modification Field: 00011
(–)
0
31 24 23
Addressxx
AR
n
31
disp
00
0
31
87
Integer
Operand
0...0
0
Zobrazit stránku 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 756 757

Komentáře k této Příručce

Žádné komentáře