Texas-instruments TMS320C3x Instrukcja Użytkownika Strona 171

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 757
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 170
Immediate Addressing
6-18
6.5 Immediate Addressing
In immediate addressing, the operand is a 16-bit (short) or 24-bit (long) immediate
value contained in the 16 or 24 LSBs of the instruction word (expr). Depending
on the data types assumed for the instruction, the short-immediate operand can
be a 2s-complement integer, an unsigned integer, or a floating-point number. This
is the syntax for this mode:
Syntax: expr
Example 6–20 illustrates an instruction example with data before and after the
instruction is executed.
Example 6–20. Short-Immediate Addressing
SUBI 1,R0
Before Instruction After Instruction
R0
00 0000 0000 R0 00 FFFF FFFF
In long-immediate addressing, the operand is a 24-bit unsigned immediate
value contained in the 24 LSBs of the instruction word (expr). This is the syntax
for this mode:
Syntax: expr
Example 6–21 illustrates an instruction example with data from before and after
the instruction is executed.
Example 6–21. Long-Immediate Addressing
BR 8000h
Before Instruction After Instruction
PC 0000 PC 8000
Przeglądanie stron 170
1 2 ... 166 167 168 169 170 171 172 173 174 175 176 ... 756 757

Komentarze do niniejszej Instrukcji

Brak uwag