EasyManuals Logo

Texas Instruments TMS320C28x User Manual

Texas Instruments TMS320C28x
695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #467 background imageLoading...
Page #467 background image
ROL ACC
6-310
ROL ACC Rotate Accumulator Left
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
ROL ACC 1111 1111 0101 0011 X Y N+1
Operands ACC Accumulator register
Description Rotate the content of the ACC register left by one bit, filling bit 0 with the
content of the carry flag and loading the carry flag with the bit shifted out:
ACC
Rotate LeftC
ACC
Flags and
Modes
N After the operation, the N flag is set if bit 31 of the ACC is 1, else N is cleared.
Z After the operation, the Z flag is set if the ACC is zero, else Z is cleared.
C The value in bit 31 of the ACC register is transferred to C. The value in C
before the rotation is transferred to bit 0 of the ACC.
Repeat This instruction is repeatable. If the operation follows a RPT instruction, then
the ROL instruction will be executed N+1 times. The state of the Z, N, and C
flags will reflect the final result.
Example
; Rotate contents of VarA left by 5:
MOVL ACC,@VarA ; ACC = VarA
RPT #4 ; Repeat next instruction 5 times
||ROL ACC ; Rotate ACC left
MOVL @VarA,ACC ; Store result into VarA

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TMS320C28x Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320C28x
CategoryProcessor
LanguageEnglish

Related product manuals