SlideShare ist ein Scribd-Unternehmen logo
1 von 22
ASSALAM-O-ALAIKUM EVERYONE
Presented by
Amna Mehmood (3205)
Mehak Usman (3206)
Aiza Zulfiqar (3199)
Humaira Azam (3228)
Haiqa Arshad (3190)
Presented To
Sir Bilal Sardar
Date: 25th Feb, 2022
Table of content
• Logical Operator
• Shift And Rotate Instruction
• Device Drivers
Logical Operator
A logical operator is a symbol or word
used to connect two or more expressions
such that the value of the compound
expression produced depends only on
that of the original expressions
There are Five logical operators:
• AND
• OR
• NOT
• XOR
• TEST
Sr No. Instruction Format
1 AND AND operand1,
operand2
2 OR OR operand1,
operand2
3 XOR XOR operand1,
operand2
4 TEST TEST operand1,
operand2
5 NOT NOT operand1
AND Instruction
• The AND instruction is used for supporting logical
expressions by performing bitwise AND operation.
• The bitwise AND operation returns 1, if the
matching bits from both the operands are 1,
• otherwise it returns 0.
For Example:
Operand1: 0101
Operand2: 0011
After AND -> Operand1: 0001
OR Instruction
• The OR instruction is used for supporting logical
expression by performing bitwise OR operation.
• The bitwise OR operator returns 1, if the matching
bits from either or both operands are one.
• It returns 0, if both the bits are zero.
For Example:
Operand1: 0101
Operand2: 0011
After OR -> Operand1: 0111
NOT Instruction
• The NOT instruction implements the bitwise NOT
operation.
• NOT operation reverses the bits in an operand.
• The operand could be either in a register or in the
memory.
For Example:
Operand1: 0101 0011
After NOT -> Operand1: 1010 1100
XOR Instruction
• The XOR instruction implements the bitwise XOR operation.
• The XOR operation sets the resultant bit to 1, if and only if the
bits from the operands are different.
• If the bits from the operands are same (both 0 or both 1)
• the resultant bit is cleared to 0.
For Example:
Operand1: 0101
Operand2: 0011
After XOR -> Operand1: 0110
TEST Instruction
• The TEST instruction works same as the AND operation, but unlike
AND instruction,
• It does not change the first operand.
• So, if we need to check whether a number in a register is even or
odd, we can also do this using the TEST instruction without
changing the original number.
For Example:
TEST AL, 01H
JZ EVEN_NUMBER
Shift and Rotate Instructions
• Shifting means to move bits right and left inside an operand.
• All of the Shift and Rotate instructions affect Overflow and Carry
Flags.
• The Shift and Rotate instructions include:
• SHL - Shift Left ROL – Rotate Left
• SHR - Shift Right ROR – Rotate Right
• SAL – Shift Arithmetic Left RCL - Rotate Carry Left
• SAR – Shift Arithmetic Right RCR - Rotate Carry Right
SHL & SHR Instruction
• The Shift Left instruction performs a left shift on the destinations
operand, filling the lowest bit with 0.
• The highest bit is moved into the Carry Flag.
The instruction format of SHL is:
• SHL destination, bits shifted.
• The Shift Right instruction performs a right shift on the
• destinations operand, filling the lowest bit with 0.
• The lowest bit is moved into the Carry Flag.
• The instruction format of SHR is:
• SHR destination, bits shifted.
SAL and SAR Instructions
• SAL (Shift Arithmetic Left) is identical to the
SHL instruction.
• SAR (Shift Arithmetic Right) performs a
right arithmetic
• shift on its operand.
• The instruction format is:
SAR destination, bits shifted
ROL & ROR Instruction
• The ROL instruction shifts each bit to the left, with the
• highest bit copied in the Carry flag and into the lowest bit.
• The instruction format of ROL is:
• ROL destination, bits shifted
• The ROR instruction shifts each bit to the right, with the
• lowest bit copied in the Carry flag and into the highest bit.
• • The instruction format of ROR is:
• ROR destination, bits shifted
RCR & RCL Instruction
• The RCL (Rotate and Carry Left) instruction shifts
each bit to the left, copies the Carry flag to the least
significant bit and copies
• The most significant bit into the Carry flag.
• The RCR (Rotate and Carry Right) instruction
shifts each bit to the right, copies
• The Carry flag to the most significant bit and copies
• The least significant bit into the Carry flag.
Device Driver
• A device driver is a computer program
• that enable one or more hardware devices to
communicate with the computer's operating system.
• Without drivers the computer could not send and
receive data correctly to hardware devices
• such as a printer.
Device need Driver
• Hardware devices unknown by operating
system
• have features unknown
• by the operating system all require drivers.
Example: card reader, modem, printer, scanner ,
sound card, video card, USB devices.
Devices may not need Drivers
• Today's operating systems have many generic drivers that
allow hardware to work at a basic level without needing
drivers or software.
• However, if that device has features unknown to the
operating system, it will not work without drivers.
For example: you could plug any keyboard into a
computer and expect it to work. However, if that keyboard
has any special keys or features, they will not work until the
drivers are installed.
Working of a device driver
• A device driver act as a translator between application and
hardware.
For example: a printer driver tells the printer in which
format to print after getting instruction from OS,
similarly A sound card driver is there due to which 1’s
and 0’s data of MP3 file is converted to audio signals
and you enjoy the music.
• The device driver communicates with the computer
system through the computer bus which is used to
connect the device with computer.
Purpose of Device Drivers
• Operate and control a device attached to a computer.
• Provide an interface between the operating system (or
application) and the device.
• To tell the operating system how to communicate with
the hardware component.
• Translate requests between the device and the
computer.
Types of Device Driver
• Kernel-mode Device Driver –This Kernel-mode
device driver includes some generic hardware
• Which loads wit h operating System as part the OS
• These are BIOS, motherboard, processor and some
other hardware which are part of kernel software.
Types of Device Driver
• User-mode Device Driver –Other than the devices
which are brought by kernel for working of the system
• The user also bring some devices for use during the
using of a system
• That devices needs device drivers to functions those
drivers falls under User mode device driver.
Types of Device Driver
 Virtual Device Drivers-Virtual device drivers are
different than most drivers.
 Unlike the majority of drivers, which allow pieces of
hardware to work with a particular operating system
 virtual device drivers emulate a piece of hardware
and essentially trick the computer into thinking that
it is reading from a piece of actual hardware.
 A particularly popular use for virtual device drivers.
Thank You !
ACHA LAGGY YEH NA LAGGY
TALLIYAN BAJJA DY !

Weitere ähnliche Inhalte

Ähnlich wie CO-AL Presentation.pptx

Ähnlich wie CO-AL Presentation.pptx (20)

Arithmetic & Logic Unit
Arithmetic & Logic UnitArithmetic & Logic Unit
Arithmetic & Logic Unit
 
Instruction types
Instruction typesInstruction types
Instruction types
 
introduction COA(M1).pptx
introduction COA(M1).pptxintroduction COA(M1).pptx
introduction COA(M1).pptx
 
VIRA_Basics_of_Robot_Level_1.pptx
VIRA_Basics_of_Robot_Level_1.pptxVIRA_Basics_of_Robot_Level_1.pptx
VIRA_Basics_of_Robot_Level_1.pptx
 
instruction format.pptx
instruction format.pptxinstruction format.pptx
instruction format.pptx
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
CNC Programmingmodifies1
CNC Programmingmodifies1CNC Programmingmodifies1
CNC Programmingmodifies1
 
Presentation computer architechure (1)
Presentation computer architechure (1)Presentation computer architechure (1)
Presentation computer architechure (1)
 
Computer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptxComputer_Organization and architecture _unit 1.pptx
Computer_Organization and architecture _unit 1.pptx
 
embedded systems and robotics on avr platform
embedded systems and robotics on avr platformembedded systems and robotics on avr platform
embedded systems and robotics on avr platform
 
W8_1: Intro to UoS Educational Processor
W8_1: Intro to UoS Educational ProcessorW8_1: Intro to UoS Educational Processor
W8_1: Intro to UoS Educational Processor
 
Digital Computer System Introduction - New
Digital Computer System Introduction - NewDigital Computer System Introduction - New
Digital Computer System Introduction - New
 
MPMC
MPMC MPMC
MPMC
 
UNIT 3 - General Purpose Processors
UNIT 3 - General Purpose ProcessorsUNIT 3 - General Purpose Processors
UNIT 3 - General Purpose Processors
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Uc1(vii sem)
Uc1(vii sem)Uc1(vii sem)
Uc1(vii sem)
 
PLC Basic
PLC BasicPLC Basic
PLC Basic
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Running a Program.pdf
Running a Program.pdfRunning a Program.pdf
Running a Program.pdf
 

Kürzlich hochgeladen

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Kürzlich hochgeladen (20)

%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 

CO-AL Presentation.pptx

  • 1. ASSALAM-O-ALAIKUM EVERYONE Presented by Amna Mehmood (3205) Mehak Usman (3206) Aiza Zulfiqar (3199) Humaira Azam (3228) Haiqa Arshad (3190) Presented To Sir Bilal Sardar Date: 25th Feb, 2022
  • 2. Table of content • Logical Operator • Shift And Rotate Instruction • Device Drivers
  • 3. Logical Operator A logical operator is a symbol or word used to connect two or more expressions such that the value of the compound expression produced depends only on that of the original expressions There are Five logical operators: • AND • OR • NOT • XOR • TEST Sr No. Instruction Format 1 AND AND operand1, operand2 2 OR OR operand1, operand2 3 XOR XOR operand1, operand2 4 TEST TEST operand1, operand2 5 NOT NOT operand1
  • 4. AND Instruction • The AND instruction is used for supporting logical expressions by performing bitwise AND operation. • The bitwise AND operation returns 1, if the matching bits from both the operands are 1, • otherwise it returns 0. For Example: Operand1: 0101 Operand2: 0011 After AND -> Operand1: 0001
  • 5. OR Instruction • The OR instruction is used for supporting logical expression by performing bitwise OR operation. • The bitwise OR operator returns 1, if the matching bits from either or both operands are one. • It returns 0, if both the bits are zero. For Example: Operand1: 0101 Operand2: 0011 After OR -> Operand1: 0111
  • 6. NOT Instruction • The NOT instruction implements the bitwise NOT operation. • NOT operation reverses the bits in an operand. • The operand could be either in a register or in the memory. For Example: Operand1: 0101 0011 After NOT -> Operand1: 1010 1100
  • 7. XOR Instruction • The XOR instruction implements the bitwise XOR operation. • The XOR operation sets the resultant bit to 1, if and only if the bits from the operands are different. • If the bits from the operands are same (both 0 or both 1) • the resultant bit is cleared to 0. For Example: Operand1: 0101 Operand2: 0011 After XOR -> Operand1: 0110
  • 8. TEST Instruction • The TEST instruction works same as the AND operation, but unlike AND instruction, • It does not change the first operand. • So, if we need to check whether a number in a register is even or odd, we can also do this using the TEST instruction without changing the original number. For Example: TEST AL, 01H JZ EVEN_NUMBER
  • 9. Shift and Rotate Instructions • Shifting means to move bits right and left inside an operand. • All of the Shift and Rotate instructions affect Overflow and Carry Flags. • The Shift and Rotate instructions include: • SHL - Shift Left ROL – Rotate Left • SHR - Shift Right ROR – Rotate Right • SAL – Shift Arithmetic Left RCL - Rotate Carry Left • SAR – Shift Arithmetic Right RCR - Rotate Carry Right
  • 10. SHL & SHR Instruction • The Shift Left instruction performs a left shift on the destinations operand, filling the lowest bit with 0. • The highest bit is moved into the Carry Flag. The instruction format of SHL is: • SHL destination, bits shifted. • The Shift Right instruction performs a right shift on the • destinations operand, filling the lowest bit with 0. • The lowest bit is moved into the Carry Flag. • The instruction format of SHR is: • SHR destination, bits shifted.
  • 11. SAL and SAR Instructions • SAL (Shift Arithmetic Left) is identical to the SHL instruction. • SAR (Shift Arithmetic Right) performs a right arithmetic • shift on its operand. • The instruction format is: SAR destination, bits shifted
  • 12. ROL & ROR Instruction • The ROL instruction shifts each bit to the left, with the • highest bit copied in the Carry flag and into the lowest bit. • The instruction format of ROL is: • ROL destination, bits shifted • The ROR instruction shifts each bit to the right, with the • lowest bit copied in the Carry flag and into the highest bit. • • The instruction format of ROR is: • ROR destination, bits shifted
  • 13. RCR & RCL Instruction • The RCL (Rotate and Carry Left) instruction shifts each bit to the left, copies the Carry flag to the least significant bit and copies • The most significant bit into the Carry flag. • The RCR (Rotate and Carry Right) instruction shifts each bit to the right, copies • The Carry flag to the most significant bit and copies • The least significant bit into the Carry flag.
  • 14. Device Driver • A device driver is a computer program • that enable one or more hardware devices to communicate with the computer's operating system. • Without drivers the computer could not send and receive data correctly to hardware devices • such as a printer.
  • 15. Device need Driver • Hardware devices unknown by operating system • have features unknown • by the operating system all require drivers. Example: card reader, modem, printer, scanner , sound card, video card, USB devices.
  • 16. Devices may not need Drivers • Today's operating systems have many generic drivers that allow hardware to work at a basic level without needing drivers or software. • However, if that device has features unknown to the operating system, it will not work without drivers. For example: you could plug any keyboard into a computer and expect it to work. However, if that keyboard has any special keys or features, they will not work until the drivers are installed.
  • 17. Working of a device driver • A device driver act as a translator between application and hardware. For example: a printer driver tells the printer in which format to print after getting instruction from OS, similarly A sound card driver is there due to which 1’s and 0’s data of MP3 file is converted to audio signals and you enjoy the music. • The device driver communicates with the computer system through the computer bus which is used to connect the device with computer.
  • 18. Purpose of Device Drivers • Operate and control a device attached to a computer. • Provide an interface between the operating system (or application) and the device. • To tell the operating system how to communicate with the hardware component. • Translate requests between the device and the computer.
  • 19. Types of Device Driver • Kernel-mode Device Driver –This Kernel-mode device driver includes some generic hardware • Which loads wit h operating System as part the OS • These are BIOS, motherboard, processor and some other hardware which are part of kernel software.
  • 20. Types of Device Driver • User-mode Device Driver –Other than the devices which are brought by kernel for working of the system • The user also bring some devices for use during the using of a system • That devices needs device drivers to functions those drivers falls under User mode device driver.
  • 21. Types of Device Driver  Virtual Device Drivers-Virtual device drivers are different than most drivers.  Unlike the majority of drivers, which allow pieces of hardware to work with a particular operating system  virtual device drivers emulate a piece of hardware and essentially trick the computer into thinking that it is reading from a piece of actual hardware.  A particularly popular use for virtual device drivers.
  • 22. Thank You ! ACHA LAGGY YEH NA LAGGY TALLIYAN BAJJA DY !