Microprocessor Fundamentals Week 5 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.

Slides:



Advertisements
Similar presentations
There are two types of addressing schemes:
Advertisements

ITCS 3181 Logic and Computer Systems 2015 B. Wilkinson slides3.ppt Modification date: March 16, Addressing Modes The methods used in machine instructions.
Addressing modes The way in which an operand is specified is called the Address Mode.
6-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 Addressing modes.
CM404.12TO131 Name : C. S. Manjula, Grad IETE Designation : Lab Mechanic Branch: Computer Engineering Institute: S.P.W. Polytechnic, Tirupati, Semester:
Lect 3: Instruction Set and Addressing Modes. 386 Instruction Set (3.4) –Basic Instruction Set : 8086/8088 instruction set –Extended Instruction Set :
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
Handout 2 Digital System Engineering (EE-390)
Data Movement Instructions
8086 Assembly Language Programming I
Addressing modes – 1 The way in which an operand is specified is called the Address Mode.
The 8086 Assembly Programming Data Allocation & Addressing Modes
Addressing Modes Instruction – Op-code – Operand Addressing mode indicates a way of locating data or operands. – Any instruction may belong to one or more.
Pentium Addressing Modes
Microprocessor Systems Design I
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Spring 2013 Lecture 4: 80386DX memory, addressing.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Lect 4: Instruction Set and Addressing Modes. 386 Instruction Set (3.4)  Basic Instruction Set : 8086/8088 instruction set  Extended Instruction Set.
Basic Operational Concepts of a Computer
An Introduction to 8086 Microprocessor.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Addressing Mode.
INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Computer Organization
Computer Architecture Lecture 03 Fasih ur Rehman.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle.
Addressing Modes of 8086 Processor Ammar Anwar Khan Electrical Engineer King Saud University Riyadh Saudi Arabia.
8086 Internal Architecture
Addressing Modes and Formats
Microprocessor Fundamentals Week 4
Introduction to Microprocessors Chapter 3. Programming Model (8086)  Shows the various internal registers that are accessible to the programmer.
Addressing Modes. Addressing Mode The data is referred as operand. The operands may be contained in registers, memory or I/O ports, within the instruction.
Microprocessor Fundamentals Week 2 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Data Transfer Instructions Introduction The data transfer instructions are used to move data between internal register or between internal.
Assembly Language Data Movement Instructions. MOV Instruction Move source operand to destination mov destination, source The source and destination are.
Internal Programming Architecture or Model
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
F453 Module 8: Low Level Languages 8.1: Use of Computer Architecture.
Addressing Modes Instruction – Op-code – Operand Addressing mode indicates a way of locating data or operands. – Any instruction may belong to one or more.
Type of addressing mode
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
1 Contents: 3.1 Instruction format and Addressing Modes 3.2 Instruction Introduction Chapter 3 Instruction system.
Displacement (Indexed) Stack
Instruction set Architecture
Microprocessor Systems Design I
Microprocessor Systems Design I
Introduction to 8086 Microprocessor
COURSE OUTCOMES OF MICROPROCESSOR AND PROGRAMMING
16.317: Microprocessor System Design I
ADDRESSING MODES.
16.317: Microprocessor System Design I
Alvaro Mauricio Peña Dariusz Niworowski Frank Rodriguez
ADDRESSING MODES.
Assembly Lang. – Intel 8086 Addressing modes – 1
Chapter 3 Addressing Modes
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Computer Organization and Assembly Language (COAL)
Microprocessor and Assembly Language
Data Addressing Modes • MOV AX,BX; This instruction transfers the word contents of the source-register(BX) into the destination register(AX). • The source.
8086 Registers Module M14.2 Sections 9.2, 10.1.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
(Array and Addressing Modes)
Introduction to Micro Controllers & Embedded System Design
(Array and Addressing Modes)
CNET 315 Microprocessor & Assembly Language
University of Gujrat Department of Computer Science
Addressing Modes MOV AX,BX Destination Source Data-Addressing Modes.
Instruction Set Summary
Addressing Modes in 8051 MC S. Lourduraj Asst. Prof. of Physics
(Array and Addressing Modes)
Presentation transcript:

Microprocessor Fundamentals Week 5 Mount Druitt College of TAFE Dept. Electrical Engineering 2008

© Mike Stacey 2007 Partial Addressing (p3 sect. 4) Figure 4.4 Partial Address Decoding A13 A14 A15 Partial Address Decoding: is when only some of the address lines are used for selection of ICs, others remaining unused. Simpler PCB design possible but allows a range of addresses to access the same location. Absolute Address Decoding: when ALL of the address lines are used.

© Mike Stacey 2007 Partial Address Problems When is IC1 active? When is IC2 active? A13 – A15 are not connected but they are still used by the CPU Problem is that there will be a number of addresses which will address the same location on each chip.

© Mike Stacey 2007 Partial Address Decoding Problems  IC1 selected when A12 low  or 0000  or 0FFF  or 1000  or 1FFF But 1000 will also select IC1 And so will 2000, 4000, 6000, 7000, 8000, A000, C000, E000. Problem: Each location in IC1 can be addressed using 8 different addresses.  And the same for IC2. Range for IC1 Range for IC2

© Mike Stacey 2007 Addressing Modes Transfer of data from source operand to destination operand MOV AX, BX Source operand Destination operand Opcode

© Mike Stacey 2007 Addressing Modes What is an addressing mode?  Addressing mode is used to describe the way a particular instruction lets the microprocessor know where the source or the destination is located

© Mike Stacey 2007 Addressing Modes Register Direct  Source and destination operands are registers  Simplest type of addressing, fastest, shortest instructions  MOV AX BX: make a copy of contents of reg BX and place it in AX Immediate Addressing  Source is a constant hex value and is written into the destination register  MOV AX, 1A3C: 1A goes into AH, 3C goes into AL

© Mike Stacey 2007 Addressing Modes Memory Direct Addressing  One of the operands (source or destination) is an address in memory  MOV AX,[1234]: moves content of memory location 1234 (effective address) to reg AX  Simplest type for addressing memory but least efficient  Requires at least 3 bytes for the instruction  Inflexible: program must always use this memory location – it’s hard coded in and can’t be changed by the program.

© Mike Stacey 2007 Addressing Modes Indirect Addressing  Uses a “pointer” to point to the source address  MOV AX,[BX]: move the contents of memory at location BX into AX. If BX contains 1234, then memory contents at 1234 are moved.  Flexible: address pointer can be changed from within the program  Usually only 1 byte instruction length More efficient Faster

© Mike Stacey 2007 Addressing Modes Indexed Addressing  Offset added to the base address held in one of the uP internal registers. The offset is in 2s complement format.  MOV AX,[BX + F3]: moves data from address pointed to by BX – 13 to reg AX.  In the 8086 we use a number of “segment” registers to hold the base address of segments in memory Recall MOV CL,[EA]: moves contents of memory location DS:EA into CL. If DS = 490B and EA = 2456, then memory location = 4B506. MOV AX,[BX + 5F]: If DS = 1850, BX = 123F then PA = F + 5F = 1979E MOV AX,[BX + 9B]: PA = F + FFF9B =196DA Positive offset Negative offset