Microprocessor Programming & Interfacing Tutorial 1 Module 1 &2.

Slides:



Advertisements
Similar presentations
Registers of the 8086/ /2002 JNM.
Advertisements

Microprocessors.
2.3) Example of program execution 1. instruction  B25 8 Op-code B means to change the value of the program counter if the contents of the indicated register.
Introduction to 8086 Microprocessor
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 1: Bits, bytes and a simple processor dr.ir. A.C. Verschueren.
Princess Sumaya University
TK 2633 Microprocessor & Interfacing
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Assembly Language for Intel-Based Computers Chapter 2: IA-32 Processor Architecture Kip Irvine.
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
University of Texas Pan AmDr. John P. Abraham Information Technology Computer Architecture Dr. John P. Abraham.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Addressing Mode.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
Computer Architecture and Organization
Computer Architecture EKT 422
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
What is a program? A sequence of steps
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
Introduction to Microprocessors Chapter 3. Programming Model (8086)  Shows the various internal registers that are accessible to the programmer.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Instruction Sets. Instruction set It is a list of all instructions that a processor can execute. It is a list of all instructions that a processor can.
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Computer Organization 1
Internal Programming Architecture or Model
Intel 8086 MICROPROCESSOR ARCHITECTURE
BITS Pilani Pilani Campus Pawan Sharma Lecture / ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
CSC 221 Computer Organization and Assembly Language Lecture 06: Machine Instruction Characteristics.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Chapter Overview General Concepts IA-32 Processor Architecture
8085 Microprocessor Architecture
Assembly language.
x86 Processor Architecture
Gunjeet Kaur Dronacharya Group of institutions
Introduction to 8086 Microprocessor
ELEN 468 Advanced Logic Design
Microprocessor and Assembly Language
Microcomputer Programming
Intel 8088 (8086) Microprocessor Structure
Decode and Operand Read
Microcomputer & Interfacing Lecture 1
Assembly Programming using MIPS R3000 CPU
Processor Organization and Architecture
Number Representations and Basic Processor Architecture
Intel 8088 (8086) Microprocessor Structure
CS 301 Fall 2002 Computer Organization
Chapter 8 Central Processing Unit
8085 MICROPROCESSOR 8085 CPU Registers and Status Flags S Z AC P C A B
Fundamental Concepts Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations.
Computer Architecture CST 250
Introduction to Microprocessor Programming
Assembly Programming using MIPS R3000 CPU
Unit-I 80386DX Architecture
CPU Structure CPU must:
Intel 8086.
Computer Operation 6/22/2019.
COMPUTER ARCHITECTURE
Presentation transcript:

Microprocessor Programming & Interfacing Tutorial 1 Module 1 &2

Question 1 What will be the result and what will be the nature of the result in terms (All operations should be done using sign- magnitude form of representation) –is the result zero? –is there a carry –is there an auxiliary carry? –is the result negative? –is there an two’s complement overflow? –is the result even or odd parity

Question 1 (a) (b) (c) (d) (e) (f) (g) (h) 27 – 100 ACPCOSZ PCOSZ 1E00PL0 ACPCOSZ 1E00PL0 0O01NG0 ACPCOSZ 1E00PL0 0O01NG0 0E00PL0 ACPCOSZ 1E00PL0 0O01NG0 0E00PL0 1E10NG0 ACPCOSZ 1E00PL0 0O01NG0 0E00PL0 1E10NG0 0E10 0 0E11PL0 ACPCOSZ 1E00PL0 0O01NG0 0E00PL0 1E10NG0 0E10 0 ACPCOSZ 1E00PL0 0O01NG0 0E00PL0 1E10NG0 0E10 0 0E11PL0 1O01NG0

Question 2 Three, 16 bit numbers are stored in memory location ‘a’,’ b’ and ’c’. Write ALP programs for adding the 3 numbers for CISC and a RISC processor. Assume that CISC processor has two temporary storage registers and RISC processor has 8 registers. The result is to be stored in memory location ‘d’. The instructions involving ALU follow 3 operand format. Compare the performance of the CISC & RISC Processor.

Question 2 CISC add r1,a,b add d,r1,c RISC ld r1,a ld r2,b ld r3,c add r1,r1,r2 add r1,r1,r3 st d,r1

Question 3 Given the following ALU chip (ALU 181) S3 – S0 -Selects ALU operation to perform M (1–Logical, 0-Arthimetic ) C IN C4 along with A= B can be used for unsigned comparison A 0 -A 3 B 0 -B 3 F 0 -F 3 C’ in M C4C4 A=B S 0 -S 3

Question 3 (a)What will be the size of CPU built around this ALU (b) If other than ALU operations- the processor performs  Load data from mem to reg  Store dats from reg to mem  Move data from reg to reg  1 Unconditional Branch  4 Conditional branches  1 Call  1 Return And Instruction is of the format – Opcode dst,src, All ALU operations are performed on registers, There are totally 16 Registers R0- R15. What will be the normal size of the instruction?

Question 3 (c) What type of Architecture does the processor implement? (d) 64K and Memory is byte organized- How many address are required? (e) What will the number by which the Program Counter be incremented to support the normal sized instruction? (f) Can you think of any other major digital modules that the processor may require?

Question 4 If CS=2000 and IP= FFFE. What is the next address generated for fetching the instruction by 8086 processor

Question 5 Why is instruction pointer generally incremented by 2 in 8086 processors?

Question 6 If the starting address of various segments of 8086 processor is given as follows, find the ending address. SegmentStarting AddressEnding Address Code SegmentF0000 Data Segment30000 Extra Segment00000 Stack SegmentAB000 SegmentStarting AddressEnding Address Code SegmentF0000FFFFF Data Segment30000 Extra Segment00000 Stack SegmentAB000 SegmentStarting AddressEnding Address Code SegmentF0000FFFFF Data Segment300003FFFF Extra Segment00000 Stack SegmentAB000 SegmentStarting AddressEnding Address Code SegmentF0000FFFFF Data Segment300003FFFF Extra Segment000000FFFF Stack SegmentAB000 SegmentStarting AddressEnding Address Code SegmentF0000FFFFF Data Segment300003FFFF Extra Segment000000FFFF Stack SegmentAB000BAFFF

Question 7 CS:2100 IP: FFFC CS:FE00 IP:ABBE CS:3220 IP:2140 CS:F000 IP:A1C4 30FFC 08BBE FA1C4 For the Following Combinations of CS& IP what will be the physical address

Question 8 CS:2000 EIP: AC DS:C000 ESI: 0000AB00 SS:8000 ESP: AC CAB00 Determine the memory locations addresses by the following registers in real mode

Question 9 Based on the contents of Flag Register of 8086 after the add operation – what can you say about the type of result? ODITSZAPC