SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
Microprocessor & its Applications
Module 3 Continued……
Dr. Girisha G S
Dept. of CSE
SoE, DSU, Bengaluru
1
Agenda
• Rotate Instructions
- ROL, ROR, RCL, RCR
2
Rotate Instructions – ROL, ROR, RCL, RCR
ROL – Rotate Left without carry
Syntax:
ROL Dest, Count
Examples:
Flags Affected: CF, OF
AL = D5H
CF
CF
; AL=ABH
MOV CL, 04
ROL BL,CL
ROL AL,1 ;
ROR -Rotate Right without carry
Examples:
ROR AL,1 ; AL=D5H
; AL = EAH
MOV CL, 04
ROR BL,CL
Syntax:
ROR Dest, Count
Flags Affected: CF, OF
CF
C
F
RCL – Rotate Through Carry Left
RCR – Rotate Through Carry Right
Syntax:
RCL Dest, Count
Syntax:
RCR Dest, Count
; AL=D5H
; AL=6AH
CF
CF
Examples: RCR AL,1
; AL=D5H
; AL=AAH
Examples: RCL AL,1

More Related Content

PDF
Microprocessor 8086-lab-mannual
PDF
Computer organization memory
PPSX
CISC & RISC ARCHITECTURES
PPTX
Logical, Shift, and Rotate Instruction
PPTX
Register organization, stack
PPT
Programming with 8085
PPTX
Addressing modes of 8086
Microprocessor 8086-lab-mannual
Computer organization memory
CISC & RISC ARCHITECTURES
Logical, Shift, and Rotate Instruction
Register organization, stack
Programming with 8085
Addressing modes of 8086

What's hot (20)

PPTX
ARM Processor
PDF
Arm instruction set
PPTX
8251 USART
PDF
8085 arithmetic instructions
PPTX
Register introduction
PDF
SRAM Design
PPT
Sequential Logic Circuit
PPTX
Johnson counter
PPTX
Addressing modes
PPT
8251 universal synchronous asynchronous receiver transmitter
PDF
Serial Communication Interfaces
PPTX
Instruction Set Architecture
PPT
Registers
PPTX
Addressing mode Computer Architecture
PPT
CPU Register Organization.ppt
PPTX
Instruction set of 8051 Microcontrollers
DOCX
ARM7-ARCHITECTURE
PDF
Displacement addressing
PPT
Types of instructions
ARM Processor
Arm instruction set
8251 USART
8085 arithmetic instructions
Register introduction
SRAM Design
Sequential Logic Circuit
Johnson counter
Addressing modes
8251 universal synchronous asynchronous receiver transmitter
Serial Communication Interfaces
Instruction Set Architecture
Registers
Addressing mode Computer Architecture
CPU Register Organization.ppt
Instruction set of 8051 Microcontrollers
ARM7-ARCHITECTURE
Displacement addressing
Types of instructions
Ad

More from Dr. Girish GS (14)

PPTX
Unix- the process
PPTX
unix- Sort, uniq,tr,grep
PPTX
unix- the process states, zombies, running jobs in background
PPTX
Unix - Filters
PPTX
Customizing the unix environment
PPTX
File systems and inodes
PPTX
Basic regular expression, extended regular expression
PPTX
Loop instruction, controlling the flow of progam
PPT
Logic instructions part 1
PPTX
Bcd arithmetic instructions
PPTX
Bcd and ascii arithmetic instructions
PPTX
Ascii arithmetic instructions
PPTX
Program control instructions
PPTX
Memory interface
Unix- the process
unix- Sort, uniq,tr,grep
unix- the process states, zombies, running jobs in background
Unix - Filters
Customizing the unix environment
File systems and inodes
Basic regular expression, extended regular expression
Loop instruction, controlling the flow of progam
Logic instructions part 1
Bcd arithmetic instructions
Bcd and ascii arithmetic instructions
Ascii arithmetic instructions
Program control instructions
Memory interface
Ad

Recently uploaded (20)

PPTX
Artificial Intelligence
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPT
Project quality management in manufacturing
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
UNIT 4 Total Quality Management .pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
web development for engineering and engineering
Artificial Intelligence
Embodied AI: Ushering in the Next Era of Intelligent Systems
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Project quality management in manufacturing
Automation-in-Manufacturing-Chapter-Introduction.pdf
Foundation to blockchain - A guide to Blockchain Tech
OOP with Java - Java Introduction (Basics)
Current and future trends in Computer Vision.pptx
Geodesy 1.pptx...............................................
UNIT 4 Total Quality Management .pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Internet of Things (IOT) - A guide to understanding
web development for engineering and engineering

Rotate instructions

  • 1. Microprocessor & its Applications Module 3 Continued…… Dr. Girisha G S Dept. of CSE SoE, DSU, Bengaluru 1
  • 2. Agenda • Rotate Instructions - ROL, ROR, RCL, RCR 2
  • 3. Rotate Instructions – ROL, ROR, RCL, RCR ROL – Rotate Left without carry Syntax: ROL Dest, Count Examples: Flags Affected: CF, OF AL = D5H CF CF ; AL=ABH MOV CL, 04 ROL BL,CL ROL AL,1 ;
  • 4. ROR -Rotate Right without carry Examples: ROR AL,1 ; AL=D5H ; AL = EAH MOV CL, 04 ROR BL,CL Syntax: ROR Dest, Count Flags Affected: CF, OF CF C F
  • 5. RCL – Rotate Through Carry Left RCR – Rotate Through Carry Right Syntax: RCL Dest, Count Syntax: RCR Dest, Count ; AL=D5H ; AL=6AH CF CF Examples: RCR AL,1 ; AL=D5H ; AL=AAH Examples: RCL AL,1

Editor's Notes

  • #6: RCR instruction rotates the bits in the operand specified by op1 towards right by the count specified in op2.