IA32 addressing modes 1.Immediate 2.Direct memory 3.Register 4.Register indirect 5.Indexed 6.Based-indexed.

Slides:



Advertisements
Similar presentations
Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
Advertisements

There are two types of addressing schemes:
COMP 2003: Assembly Language and Digital Logic
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.
1/2002JNM1 AL 00 Immediate Addressing Mode Mov AL, 3CH AL 3C.
Chapter 3 Addressing Modes
Lect 3: Instruction Set and Addressing Modes. 386 Instruction Set (3.4) –Basic Instruction Set : 8086/8088 instruction set –Extended Instruction Set :
Addressing modes – 1 The way in which an operand is specified is called the Address Mode.
CS2422 Assembly Language & System Programming October 3, 2006.
COMP3221: Microprocessors and Embedded Systems
Informationsteknologi Friday, November 16, 2007Computer Architecture I - Class 111 Today’s class Instruction set architecture.
Pentium Addressing Modes
Chapter 11 Instruction Sets: Addressing Modes and Formats HW: 11.4, 5, 13, 16 (Due 11/15)
Lect 4: Instruction Set and Addressing Modes. 386 Instruction Set (3.4)  Basic Instruction Set : 8086/8088 instruction set  Extended Instruction Set.
Part II: Addressing Modes
Quiz #2 Topics Character codes Intel IA-32 architecture Mostly MASM
IA32 Addressing Modes Chapter 5 The ISA Level cont’d.
ADDRESSING MODES OF Addressing Modes of  To perform any operation, we have to give the corresponding instructions to the microprocessor.
Addressing Modes Chapter 11 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Module 10 Adapted By and Prepared James Tan © 2001.
CEG 320/520: Computer Organization and Assembly Language ProgrammingIntel Assembly 1 Intel IA-32 vs Motorola
Dr. José M. Reyes Álamo 1.  The 80x86 memory addressing modes provide flexible access to memory, allowing you to easily access ◦ Variables ◦ Arrays ◦
Today’s topics Parameter passing on the system stack Parameter passing on the system stack Register indirect and base-indexed addressing modes Register.
CSC 221 Computer Organization and Assembly Language
Code Generation Gülfem Savrun Yeniçeri CS 142 (b) 02/26/2013.
Memory and Addressing How and Where Information is Stored.
INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
IA32 (Pentium) Processor Architecture. Processor modes: 1.Protected (mode we will study) – 32-bit mode – 32-bit (4GB) address space 2.Virtual 8086 modes.
Today’s topics Procedures Procedures Passing values to/from procedures Passing values to/from procedures Saving registers Saving registers Documenting.
1 ICS 51 Introductory Computer Organization Fall 2009.
Sahar Mosleh California State University San MarcosPage 1 Stack operations, Applications and defining procedures.
26-Nov-15 (1) CSC Computer Organization Lecture 6: Pentium IA-32.
Addressing Modes Chapter 6 S. Dandamudi To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer,
IA32 (AKA Pentium) Instructions
Computer Organization
Memory Addressing Techniques. Immediate Addressing involves storing data in pairs with immediate values register pairs:
Assembly Language. Symbol Table Variables.DATA var DW 0 sum DD 0 array TIMES 10 DW 0 message DB ’ Welcome ’,0 char1 DB ? Symbol Table Name Offset var.
Carnegie Mellon 1 Machine-Level Programming I: Basics Lecture, Feb. 21, 2013 These slides are from website which accompanies the.
Introduction to Assembly II Abed Asi Extended System Programming Laboratory (ESPL) CS BGU Fall 2013/2014.
Practical Session 5 Computer Architecture and Assembly Language.
Addressing Modes. Register Addressing Immediate Addressing Base Addressing Indexed Addressing PC-Relative Addressing.
Introduction to Intel IA-32 and IA-64 Instruction Set Architectures.
Addressing Modes Dr. Hadi Hassan.  Two Basic Questions  Where are the operands?  How memory addresses are computed?  Intel IA-32 supports 3 fundamental.
Assembly Language Addressing Modes. Introduction CISC processors usually supports more addressing modes than RISC processors. –RISC processors use the.
Addressing Modes Instruction – Op-code – Operand Addressing mode indicates a way of locating data or operands. – Any instruction may belong to one or more.
Memory Access Instructions Load and Store Addressing Modes Memory Addressing. Base addressing mode. Load byte and store byte: lb, lbu, sb Address alignment.
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.
Microprocessors I 8051 Addressing Modes CS Prof. Msc. Ivan A. Escobar
1-Oct-16 (1) CSC Computer Organization Lecture 6: Pentium IA-32 Additional slides.
Immediate Addressing Mode
Assembly IA-32.
8051 Addressing Modes The way, using which the data source or destination addresses are specified in the instruction mnemonic for moving the data, is.
Introduction to Intel IA-32 and IA-64 Instruction Set Architectures
(Array and Addressing Modes)
ADDRESSING MODES AND INSTRUCTION SET
Stack Relative Deferred (sf) Indexed (x) Stack Indexed (sx)
Under Address Modes Source: under
Introduction to Micro Controllers & Embedded System Design
(Array and Addressing Modes)
Stack Relative Deferred (sf) Indexed (x) Stack Indexed (sx)
LC-2: The Little Computer 2
Under Address Modes Source: under
CPU has 6 special locations called registers
Chapter 4: Computer Architecture
Instruction Set Summary
Computer Architecture and System Programming Laboratory
(Array and Addressing Modes)
Presentation transcript:

IA32 addressing modes 1.Immediate 2.Direct memory 3.Register 4.Register indirect 5.Indexed 6.Based-indexed

addressing Opcode indicates what operation is to be performed. Operands specify the location of data. Example of addressing modes that we have already used: A=12 Bdword52 moveax, 1; immediate movebx, eax; register movecx, A; immediate movedx, B; direct memory

Register indirect Say B is located at memory location (address) 400. We load the address of B into a register. movebx, 400;load the address of B moveax, ebx;eax is now 400 moveax, [ebx];eax now equals 52 This is the register indirect addressing mode. The register does not contain the value but contains a reference to (pointer to/location of) the value in memory.

Indexed Used to: 1.reference memory at a constant offset from a register when register points to object and data member is a know offset from start of object 2.reference memory using a register as an additional offset when register is used as an offset to an array element

Indexed Adword592h, 50h, 60h, 70h, 80h, 90h moveax, 4 movebx, A[eax];what’s in ebx? movecx, [A+eax];what’s in ecx?

Indexed Adword592h, 50h, 60h, 70h, 80h, 90h moveax, 4 movebx, A[eax];what’s in ebx? movecx, [A+eax];what’s in ecx?

Based-indexed

Make a sum