Individually Accessible Portions Of The Accumulator - Texas Instruments TMS320C28x Reference Manual

Dsp cpu and instruction set
Table of Contents

Advertisement

Figure 2−3. Individually Accessible Portions of the Accumulator
compare operations from 32-bit-wide data memory. It can also accept the
32-bit result of a multiplication operation.
The halves and quarters of the ACC can also be accessed (see Figure 2−3).
ACC can be treated as two independent 16-bit registers: AH (high 16 bits) and
AL (low 16 bits). The bytes within AH and AL can also be accessed
independently. Special byte-move instructions load and store the most signifi-
cant byte or least significant byte of AH or AL. This enables efficient byte pack-
ing and unpacking.
AH
AH.MSB
AH = ACC (31:16)
AH.MSB = ACC (31:24)
AH.LSB = ACC (23:16)
The accumulator has the following associated status bits. For the details on
these bits, see section 2.3, Status Register ST0.
Overflow mode bit (OVM)
-
Sign-extension mode bit (SXM)
-
Test/control flag bit (TC)
-
Carry bit (C)
-
Zero flag bit (Z)
-
Negative flag bit (N)
-
Latched overflow flag bit (V)
-
Overflow counter bits (OVC)
-
Table 2−2 shows the ways to shift the content of AH, AL, or ACC.
ACC
AH.LSB
AL.MSB
AL = ACC (15:0)
AL.MSB = ACC (15:8)
AL.LSB = ACC (7:0)
Central Processing Unit
CPU Registers
AL
AL.LSB
2-7

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF