Chapter 3 Instruction Set Architectures

Chapter 3 Instruction Set Architectures

Chapter 3 Instruction Set Architectures Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Chapter Outline

Programming Languages Assembly Languages Instruction Set Architecture Design

A Relatively Simple ISA ISA of the 8085 microprocessor Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Programming Languages

High level languages Assembly languages Machine languages

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Compilation Process Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Assembly Process

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Java Applets Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

Assembly Language Attributes Instruction types

Data types Addressing modes Instruction formats Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Instruction Types

Data transfer Data operation Program control

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Data Types

Numeric (integer, floating point) Boolean (true, false) Character (ASCII, Unicode) Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Addressing modes - Direct

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Addressing modes - Indirect Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

Addressing modes - Register Direct Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Addressing modes - Register Indirect

@R Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Addressing modes Immediate Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

Addressing modes - Implicit Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Addressing modes - Relative

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Addressing modes - Indexed Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Instruction Formats

More operands = less instructions More operands = larger words Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 3-operand Instructions

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 2-operand Instructions Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 1-operand Instructions

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 0-operand Instructions Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Instruction Set Architecture

Instruction set Register set Memory access information

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 ISA Attributes

Completeness Orthogonality Register set design Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

ISA Requirements Backward compatibility?

Data types/sizes Interrupts? Conditional instructions? Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 A Relatively Simple ISA Registers

Accumulator AC General purpose register R Flag Z

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 A Relatively Simple ISA Instruction Set Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

A Relatively Simple ISA Instruction Set (continued) Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 A Relatively Simple ISA Instruction Formats Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

Example Relatively Simple Program 1 2 ... n, or n i

i 1 This could be written as a high-level language code snippet as follows. total=0; FOR i=1 to n DO {total = total + i}; 1. total = 0, i = 0

2. i = i + 1 3. total = total + i 4. IF i n THEN GOTO 2 Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Example Relatively Simple Program Code

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Example Relatively Simple Program Trace Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

A Relatively Simple ISA Analysis Completeness

Orthogonality Register set design Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 The 8085 ISA - Registers Accumulator A

General purpose registers B, C, D, E, H, L Stack pointer SP Flags S, Z, P, CY, AC Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

The 8085 ISA - Instruction Set Data movement instructions Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 The 8085 ISA - Instruction Set

Data operation instructions Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 The 8085 ISA - Instruction Set Program control instructions

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 The 8085 ISA - Instruction Formats Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Example 8085 Program

n 1 2 ... n, or i i 1

1. i = n, sum = 0 2. sum = sum + i, i = i - 1 3. IF i 0 THEN GOTO 2 4. total = sum Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Example 8085 Program Code

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Example 8085 Program Trace Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

The 8085 ISA - Analysis Completeness Orthogonality

Register set design Images courtesy of Addison Wesley Longman, Inc. Copyright 2001 Summary Programming Languages ISA Design

Images courtesy of Addison Wesley Longman, Inc. Copyright 2001

Recently Viewed Presentations

  • Year 2000 Readiness Assessment Follow-up

    Year 2000 Readiness Assessment Follow-up

    Mn/DOT AUDIT 2010 COUNTY HIGHWAY ACCOUNTANTS CONFERENCE SINGLE AUDIT DISCUSSION SINGLE AUDIT OUTLINE How Your Project Gets Selected For Audit ARRA Requirements Material Testing Single Audit Report Process HOW YOUR PROJECT GETS SELECTED FOR AUDIT Single Audit Act of 1984:...
  • 2011/12 ANNUAL REPORT 17 OCTOBER 2012 Sibusiso Xaba

    2011/12 ANNUAL REPORT 17 OCTOBER 2012 Sibusiso Xaba

    Integration of existing public art programme initiatives into the bigger MGE public art programme Youth Month plans developed, approved and implemented 1 Cultural programme of National Youth Day supported and 2 Youth month programme implemented by July 2011 The Youth...
  • Welcome 1. Welcome, welcome, This is our Christmas

    Welcome 1. Welcome, welcome, This is our Christmas

    Little Donkey. Little donkey, little donkey On the dusty road Got to keep on plodding onwards With your precious load.Been a long time, little donkey Through the winter's night Don't give up now, little donkey Bethlehem's in sight.
  • Kingdom Animalia - Cnidaria corals, sea anemones, jelly fish ...

    Kingdom Animalia - Cnidaria corals, sea anemones, jelly fish ...

    Kingdom Animalia - Cnidaria corals, sea anemones, jelly fish, box jellies, hydra, sea fans Phylum Cnidaria (~3000 species); general characteristics: Have tissue level of organization, with two tissue layers (diploblastic) Have radial symmetry Have specialized stinging structures called cnidae Have...
  • Music Josiahs Plays

    Music Josiahs Plays

    Embrace The Revolution Josiahs Scott*
  • Midterm1_Slides

    Midterm1_Slides

    LC-3 Review:I/O. Memory . Mapped. I/O. Map I/O to specific memoryaddresses. Removes the need for dedicated I/Ochannels. Accessing the mapped memory address gives access tothe input or outputdevice. Reading from xFE02 (KBDR) returns a char of what key was pressed...
  • Installations: AUSA Contemporary Military Forum Installations: The Platforms

    Installations: AUSA Contemporary Military Forum Installations: The Platforms

    (Opening Slide - Hold to until ASA introduction) GEN Leon Salomon, USA Retired, AUSA Senior Fellow introduces Forum and HON Hammack. HON Katherine Hammack. Assistant Secretary of the Army (Installations, Energy and Environment)
  • Warm Up Simplify each expression: 1. 2. 3.

    Warm Up Simplify each expression: 1. 2. 3.

    5.1 Growth & Decay: Integral Exponents. 5.2 Growth & Decay: Rational Exponents. Exponent Rules. Growth and Decay Exponential Functions. Solving Equations With Exponents. Laws of Exponents. If and only if x=y.