SET 21 OPERATING SYSTEM USE OF ASSEMBLY LANGUAGE.

Slides:



Advertisements
Similar presentations
MICROPROCESSOR BASED SYSTEM DESIGN
Advertisements

Computer Hardware.
TECH SKILLS COMPUTER BASICS
Computer Parts There are many parts that work together to make a computer work.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Computer Hardware.
Set 20 Interrupts. INTERRUPTS The Pentium has a mechanism whereby external devices can interrupt it. Devices such as the keyboard, the monitor, hard disks.
Computer Components.
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
Practical Session No. 10 Input &Output (I/O). I/O Devices Input/output (I/O) devices provide the means to interact with the “outside world”. An I/O device.
Computers What’s in there and how does it work?. Parts of a computer  There are many different parts to a computer. Some are inside the large case that.
Chapter 4 Section 3.
Internal/External Computer Components Kim Roselli Emily Mross.
THE COMPONENTS OF THE SYSTEM UNIT Peyton Farley & Katelyn Dunham.
 Chasis / System cabinet  A plastic enclosure that contains most of the components of a computer (usually excluding the display, keyboard and mouse)
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Lesson 2 Information Processing. Objectives Define hardware and software Explain the three basic computer functions: input, processing, and output.
CPU (CENTRAL PROCESSING UNIT): processor chip (computer’s brain) found on the motherboard.
Computer Components Checklist There are many parts that work together to make a computer work.
The Computer Systems. Computer System CPU Is the brain of the PC. All program instructions are run through the CPU Control Unit This decodes and executes.
Internal Computer Parts Desiree Robinson. Input Devices Getting information onto the computer Keyboard Microphone Scanner Mouse Video Camera Webcam Touch.
Computer Components.
Practical Session 11 Computer Architecture and Assembly Language Input &Output (I/O)
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Elements of a Computer System Understanding Computers.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
There are many parts that work together to make a computer work. System Unit Computer Parts.
 There are many parts that work together to make a computer work.
Click once to reveal the definition. Think of the answer. Then click to see if you were correct. HARDWARE Physical parts of the computer.
Computer main parts HARDWARE It corresponds to all physical and tangible parts of a computer: your electrical, electronic, electromechanical and mechanical.
Computer Parts There are many parts that work together to make a computer work.
PARTS OF A COMPUTER 2 Hardware Computer Hardware is any of the physical parts of the computer you can touch. There are 4 categories: 1. Input Devices.
1 Microprocessors CSE – 341 Basic I/O Interfacing.
By Tom and James. Hardware is a physical part of the system that you can pick up and move. There are two types of hardware, external and internal. External.
What makes up a computer. By Miranda, Ally and Eloise.
Lets Review Computers. Exactly what is a computer? A computer is an electronic device that manipulates information and data A computer sees data in 1’s.
بسم الله الرحمن الرحيم MEMORY AND I/O.
HARDWARE AND SOFTWARE. What is hardware? Hardware is any physical component of a computer system. Without any hardware, your computer would not exist,
Practical Session 12 Input &Output (I/O). I/O Device Input / Output (I/O) devices Input / Output (I/O) devices provide the means to interact with the.
Computer Parts There are many parts that work together to make a computer work.
PCs ENVIRONMENT and PERIPHERALS Lecture 1. Software The series of instructions that tells the hardware how to perform tasks Software The series of instructions.
Peripherals on or near an edge or constituting an outer boundary; the outer area; "Russia's peripheral provinces"; "peripheral suburbs" (computer science)
Computers Inside & Out. How have computers affected your life? How has technology affected your life?
Practical Session 11 Computer Architecture and Assembly Language Input &Output (I/O)
Computer Basics 1 Chapter One Computer Basics Part 1.
Computer Parts There are many parts that work together to make a computer work.
Nat 4/5 Computing Science Interfaces
Functions and Parts of a Computer
Chapter 7.2 Computer Architecture
Computer Organization & Assembly Language Chapter 3
Parts of a Computer I plan to use this presentation for an introduction at the start of the year. Maybe even create a “word wall” with the cards.
CS703 - Advanced Operating Systems
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Motherboard and its component What is Motherboard? Location Function.
Introduction to Computing Lecture # 1
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
I/O Interfacing CSE 2312 Maher Al-Khaiyat.
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
Computer Hardware.
Computer Architecture and Assembly Language
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
4. Computer system.
Presentation transcript:

SET 21 OPERATING SYSTEM USE OF ASSEMBLY LANGUAGE

SYSTEM USES OF ASSEMBLY LANGUAGE For drivers for external devices connected to the computer, such as printers, digital cameras, etc. In operating system software to control internal devices such as the interrupt controller, DMA controller, timer, etc

INTERNAL DEVICE USE Many of the chips on the motherboard are made for general use, including circuits that are not connected to computers These chips generally need to be programmed in order to carry out the specific functions required in a computer’s circuitry.

EXAMPLES The interrupt controller chip has to be programmed in order to give some interrupts precedence over others. For instance the interrupt for the timer (to update the time of day) cannot itself be interrupted by the keyboard, but the keyboard interrupt can be interrupted by the timer.

Reading and writing from the hard disk requires numerous commands sent to the DMA controller chip and the hard drive controller The timer chip has to be programmed in order, among other functions, to produce interrupts at the desired frequency for use in updating the time of day.

Commands to devices, to get them to perform various functions, or to initialize them, are made by sending one or more bytes to special addresses associated with the devices, called ports To send a byte to a port, one needs to put the byte in AL, and assuming that the port number is (say) 43h, employ the instruction OUT 43h, AL

Depending on the device, one can also send words, or double words to a device, employing e.g. OUT port no., AX or OUT port no., EAX To input a byte from a device, e.g. to obtain status information, one employs IN port no., AL

A SIMPLE EXAMPLE OF USING ASSEMBLER TO WRITE PROGRAMS FOR DEVICES We will consider in the example following this slide set how one can program the timer, and another chip called a Programmable Peripheral Interface (PPI), to play music on the computer’s speakers