TYPES OF INTERRUPTS: -

Similar documents
10-1 C D Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e

TABLE 9-1. Symbolic Convention for Addressing Modes. Register indirect LDA (R1) ACC M[ R1] Refers to Figure 9-4. Addressing mode. Symbolic convention

Fig: Computer memory with Program, data, and Stack. Blog - NEC (Autonomous) 1

Introduction. 3 major parts of CPU : Fig Design Examples of simple CPU. In this chapter : Chap. 8. Chap. 8 Central Processing Unit

COMPUTER HARDWARE. Instruction Set Architecture

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

INSTRUCTION SET ARCHITECTURE

Computer Organization and Architecture

CHAPTER 8: Central Processing Unit (CPU)

CENTRAL PROCESSING UNIT

CENTRAL PROCESSING UNIT

IAS Computer. Instructions

SOEN228, Winter Revision 1.2 Date: October 25,

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Computer Organization CS 206 T Lec# 2: Instruction Sets

Computer Architecture

Programming of 8085 microprocessor and 8051 micro controller Study material

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Microcontroller Intel [Instruction Set]

Digital Blocks Semiconductor IP

Instruction Sets: Characteristics and Functions Addressing Modes

Darshan Institute of Engineering & Technology for Diploma Studies Unit - 1

Digital Blocks Semiconductor IP

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

Digital Blocks Semiconductor IP

3.1 DATA MOVEMENT INSTRUCTIONS 45

COMPUTER ARCHITECTURE AND PARALEL PROCESSING STUDY NOTES

8051 Overview and Instruction Set

Computer Architecture and Organization: L04: Micro-operations

By: Dr. Hamed Saghaei

Q. Classify the instruction set of 8051 and list out the instructions in each type.

complement) Multiply Unsigned: MUL (all operands are nonnegative) AX = BH * AL IMUL BH IMUL CX (DX,AX) = CX * AX Arithmetic MUL DWORD PTR [0x10]

Computer Architecture

Grundlagen Microcontroller Processor Core. Günther Gridling Bettina Weiss

COMPUTER ORGANIZATION & ARCHITECTURE

Instruction Set Of 8051

It is possible to define a number using a character or multiple numbers (see instruction DB) by using a string.

8051 Instruction Set

CSIS1120A. 10. Instruction Set & Addressing Mode. CSIS1120A 10. Instruction Set & Addressing Mode 1

Computer Organization and Technology Processor and System Structures

SPRING TERM BM 310E MICROPROCESSORS LABORATORY PRELIMINARY STUDY

INSTRUCTION SET OF 8085

INSTRUCTION SET AND EXECUTION


Chapter 5. Computer Architecture Organization and Design. Computer System Architecture Database Lab, SANGJI University

S3.0 : A multicore 32-bit Processor

ADVANCE MICROPROCESSOR & INTERFACING

Central Processing Unit

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Ex : Write an ALP to evaluate x(y + z) where x = 10H, y = 20H and z = 30H and store the result in a memory location 54000H.

Q1: Multiple choice / 20 Q2: Protected mode memory accesses

Intel 8086: Instruction Set

FUBAR RISC Computer Architecture

Computer Architecture and Organization: L09: CPU Organization

ก AVR Microcontrollers

Ex: Write a piece of code that transfers a block of 256 bytes stored at locations starting at 34000H to locations starting at 36000H. Ans.

Blog -

Chapter 3 : Control Unit

Computer Architecture /

Assembly Language Programming of 8085

3.0 Instruction Set. 3.1 Overview

CS401 Assembly Language Solved Subjective MAY 03,2012 From Midterm Papers. MC

8085 INSTRUCTION SET INSTRUCTION DETAILS

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

The Assembly Language of the Boz 5

Arithmetic and Logic Instructions And Programs

Computer System Architecture

DR bit RISC Microcontroller. Instructions set details ver 3.10

Lesson 2. Instruction set design

STRUCTURE OF DESKTOP COMPUTERS

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M

Practical Malware Analysis

Code segment Stack segment

Tutorial 1: Programming Model 1

MOS 6502 Architecture

ARM Assembly Language. Programming

Module 3 Instruction Set Architecture (ISA)


Lecture 9. INC and DEC. INC/DEC Examples ADD. ADD Examples SUB. INC adds one to a single operand DEC decrements one from a single operand

Register Transfer Language and Microoperations (Part 2)

SN8F5000 Family Instruction Set

CS401 Assembly Language Solved MCQS From Midterm Papers

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

AVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo

Lecture 2 Assembly Language

Microcontroller. Instruction set of 8051

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Assembly Language Programming of 8085

ENE 334 Microprocessors

EEM336 Microprocessors I. Arithmetic and Logic Instructions

CPU Design John D. Carpinelli, All Rights Reserved 1

CS401 - Computer Architecture and Assembly Language Programming Glossary By

AVR ISA & AVR Programming (I)

9/25/ Software & Hardware Architecture

AVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo

Accumulator and memory instructions 1. Loads, stores, and transfers 2. Arithmetic operations 3. Multiply and divide 4. Logical operations 5. Data test

CPU: SOFTWARE ARCHITECTURE INSTRUCTION SET (PART

Instructions moving data

Transcription:

There are 3 types of interrupts. TYPES OF INTERRUPTS: - External Interrupts. Internal Interrupts. Software interrupts. Hardware Interrupts (1) External interrupts come from I/O devices, from a timing device (or) from any other external source. (2) Internal interrupts are also called as traps. They arise from illegal (or) erroneous use of an instruction (or) data. Examples: 1. Register overflow. 2. Attempt to divide by zero. 3. An invalid operation code. 4. Stack overflow. 5. Protection violation. (3) Software Interrupts: - It is initiated by executing an instruction. Stack Organization: - Stack: LIFO Stack Pointer: The register that holds the address for the stack is called a SP. Two operations of a stack: Push and Pop. FULL EMPTY 63 SP C B A 3 2 1 0 DR

Push operation is implemented with the following sequence of micro operations. SP SP+1 Increment Stack Pointer. M[SP] DR write item on the top of the stack. If (SP=0) then (FULL 1) check if stack is full. EMPTY 0 mark the stack not empty. Note:- Initially SP is cleared to 0, EMPTY is set to 1, FULL is cleared to 0. When data is pushed on to the stack, SP gets incremented by 1. In step 3, we are checking whether Full is set to 1. If SP reaches 0, stack is full of items, so FULL is set to 1. Pop operation is implemented by the following sequence of Micro-Operations. 1. DR M[SP] Read item from the top of the stack. 2. SP SP-1 Decrement stack pointer. 3. If (SP=0) then (EMPTY 1) Check if stack is empty. 4. FULL 0 Mark the stack not full. Instruction Formats: - The bits of the instruction are divided into groups called fields. 1. An operation code field. 2. An address field. 3. A mode field. Most computers fall into one of three types of CPU organizations. 1. Single Accumulator Organization. 2. General Register Organization. 3. Stack Organization. ADD X - Where X is the address of the operand. AC AC + M [X] ADD R1, R1, R2, R2, R3 R3 R1 R2 + R3

ADD R1, R2 R2 R1 R1 + R2. Timing Diagram: - Addressing Modes: - Instruction format with mode field. OP Code Mode Address Addressing Mode Field

Addressing modes Implied Mode. Immediate Mode. Register Mode. Register Indirect Mode. Auto Increment (or) Auto Decrement Mode. Direct Address Mode. Indirect Address Mode. Relative Address Mode. Indexed Addressing Mode. Base Register Addressing Mode. Data Transfer and Manipulation: - Computer interactions can be classified into three categories. Data transfer instructions. Data manipulation instructions. Program Control instructions. (1) Data Transfer Instructions: - Load Store Move Exchange Input Output Push Pop LD ST MOV XCH IN OUT PUSH POP (2) Data Manipulation Instructions: - Arithmetic Instructions. Logical and Bit Manipulation Instructions. Shift Instructions.

Arithmetic Instructions: - Increment Decrement Add Subtract Multiply Divide Add with Carry Subtract with Borrow Negate (2 s Complement) INC DEC ADD SUB MUL DIV ADDC SUBB NEG Logic & Bit Manipulation Instructions: - Clear Complement AND OR Exclusive-OR Clear Carry Set Carry Complement Carry Enable Interrupt Disable Interrupt CLR COM AND OR XOR CLRC SETC COMC EI DI Shift Instructions: - Logical Shift Right Logical Shift Left Arithmetic Shift Right Arithmetic Shift Left Rotate Right Rotate Left Rotate Right through Carry Rotate Left through Carry SHR SHL SHRA SHLA ROR ROL RORC ROLC

(3) Program Control Instructions: - Branch Jump Skip Call Return Compare Test (By AND ing) BR JMP SKP CALL RET CMP TST REDUCED INSTRUCTION SET COMPUTER: - An Important aspect of computer Architecture is the design of the Instruction set for the Processor. A Computer with a large number of instructions is classified as a Complex Instruction Set Computer abbreviated as CISC. If the computer use fewer instruction set, the instructions can be executed at a faster rate. This type of computer is called Reduced Instruction Set Computer (or)risc. There are two types of Computer Architectures: CISC Architecture Characteristics: - CISC. RISC. A large number of instructions typically 100 to 250 instructions. Some instructions that perform specialized tasks and are not used frequently. A large variety of addressing modes from 5 to 20 different modes. Variable length instruction formats. Instructions that manipulate operands in memory. RISC Characteristics: - RISC Architecture involves an attempt to reduce execution time by simplifying the instruction set of the computer. Relatively few instructions.

Relatively few addressing modes. Memory access limited to load and store instructions. All operations done within the register of CPU. Fixed length, easily decoded instruction format. Single-cycle instruction execution. Hardwired rather than micro programmed control.