ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 7.

Slides:



Advertisements
Similar presentations
Register In computer architecture, a processor register is a small amount of storage available on the CPU whose contents can be accessed more quickly than.
Advertisements

Registers of the 8086/ /2002 JNM.
The 8051 Microcontroller and Embedded Systems
There are two types of addressing schemes:
Computer Architecture and Operating Systems CS 3230 :Assembly Section Lecture 2 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 6.
6-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 Addressing modes.
Lect 3: Instruction Set and Addressing Modes. 386 Instruction Set (3.4) –Basic Instruction Set : 8086/8088 instruction set –Extended Instruction Set :
8086 Assembly Language Programming I
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#4)
3-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 (8086) Microprocessor.
8-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL x86 Instructions Part.
Microcomputer & Interfacing Lecture 3
Microprocessor Systems Design I
80x86 Processor Architecture
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Spring 2013 Lecture 4: 80386DX memory, addressing.
Lect 4: Instruction Set and Addressing Modes. 386 Instruction Set (3.4)  Basic Instruction Set : 8086/8088 instruction set  Extended Instruction Set.
An Introduction to 8086 Microprocessor.
CDP ECE Spring 2000 ECE 291 Spring 2000 Lecture 7: More on Addressing Modes, Structures, and Stack Constantine D. Polychronopoulos Professor, ECE.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
1/2002JNM1 Positional Notation (Hex Digits). 1/2002JNM2 Problem The 8086 has a 20-bit address bus. Therefore, it can access 1,048,576 bytes of memory.
Introduction to 8086 Assembly Language Assembly Language Programming University of Akron Dr. Tim Margush.
Types of Registers (8086 Microprocessor Based)
ECE291 Computer Engineering II Lecture 3 Josh Potts University of Illinois at Urbana- Champaign.
Video systems. Lesson plan Review the code for the previous exercise Video systems Review for midterm exam.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 6.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 4.
ECE291 Computer Engineering II Lecture 3 Josh Potts University of Illinois at Urbana- Champaign.
ECE291 Computer Engineering II Lecture 3 Dr. Zbigniew Kalbarczyk University of Illinois at Urbana- Champaign.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 5.
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.
8086/8088 Instruction Set, Machine Codes and Addressing Modes.
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.
Microprocessor Fundamentals Week 2 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 6.
Internal Programming Architecture or Model
Intel MP Organization. Registers - storage locations found inside the processor for temporary storage of data 1- Data Registers (16-bit) AX, BX, CX, DX.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Assembly language programming
Format of Assembly language
Data Transfers, Addressing, and Arithmetic
Microprocessor and Assembly Language
Introduction to 8086 Microprocessor
8086 Microprocessor.
16.317: Microprocessor System Design I
Microprocessor Systems Design I
University of Gujrat Department of Computer Science
Intel 8088 (8086) Microprocessor Structure
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Defining Types of data expression Dn [name] expression Dn [name]
Symbolic Instruction and Addressing
Introduction to Assembly Language
BIC 10503: COMPUTER ARCHITECTURE
Data Addressing Modes • MOV AX,BX; This instruction transfers the word contents of the source-register(BX) into the destination register(AX). • The source.
Intel 8088 (8086) Microprocessor Structure
8086 Registers Module M14.2 Sections 9.2, 10.1.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Symbolic Instruction and Addressing
(Array and Addressing Modes)
Introduction to Micro Controllers & Embedded System Design
Symbolic Instruction and Addressing
(Array and Addressing Modes)
Chapter 6 –Symbolic Instruction and Addressing
Process.
CSC 497/583 Advanced Topics in Computer Security
Computer Architecture and System Programming Laboratory
(Array and Addressing Modes)
Presentation transcript:

ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 7

Exercise Write a procedure (mul32 ) that does a 32-bit multiply and returns its 32-bit result in DX:AX. Passed the two double-word parameters using a standard stack frame. Allocate any temporary variables required on the stack frame. Write a code fragment that calls mul32 using two double-word operands stored in memory and stores the answer in a third double-word memory location.

Procedures Exam 1 will be held on Thursday, October 18, 2001 from 7:15 to 8:45 PM in 132 Noland Can use one 8½ x 11 sheet (both sides) of original, handwritten notes Instruction set and datasheets will be provided as required. Midterm Exam #1

Assessment Quiz 1. Register used as a loop counter. 2. What type of memory operations are run for AND mem, 2? 3. Registers that can be used as sources for the OUT instruction. 4. Default segment for most memory operands. 5. Assembler operator used to inform the assembler of the type of memory access.

Assessment Quiz 1. Write a code fragment that uses rotates/shifts to fill BX with the bit- reversed value of AX.

Assessment Quiz If CS=1000h, DS=2000h, ES=3000h, SS=4000h, BX=5000h, BP=6000h, DI=7000h, SI=8000h, offset of X = 400h; find source’s logical and physical address: 1. mov AX, [BP] 2. mov AX, X[DI] 3. mov AX, [BX]+3 4. mov AX, X 5. mov AX, CS:X

Assessment Quiz 80C188EB Hardware 1. Indicates next instruction to be fetched. 2. Calculates physical addresses. 3. Purpose of /S2:0 4. Used as the frame pointer. 5. The extended accumulator. 6. Source operand for IN instruction. 7. Memory destination for string operations.

Assessment Quiz Code Generation 1. Joins multiple object files. 2. Converts mnemonics to opcodes. 3. Assigns physical addresses to memory segments. 4. Debugging technique using small kernel on the target to communicate with host machine having main debugging software. 5. Assembler that generates code for another CPU.

Assessment Quiz Addressing modes: 1. Uses a register to hold operand’s offset. 2. Operand’s offset embedded in opcode. 3. Operand embedded in opcode. 4. Destination mode of MOV [BP+2], AL. 5. Purpose of the ASSUME directive.

Assessment Quiz 1. Effect of LOOPZ instruction. 2. Restrictions on conditional jumps. 3. Applicability and effect of REP prefix. 4. Effect of PUSH instruction. 5. Difference between SAL and SHL. 6. Ways to access a look-up table. 7. How to declare constant data in embedded system.

Assessment Quiz 1. Toggle bit D5 of AL. 2. Clear bit D1 of CH. 3. Set D14 of AX. 4. Clear word output port 0030h. 5. Clear AX if D3 of byte input port 0378h is cleared. 6. Use LOOP to set every element of the word array XYZ to 0FFFFh.

Assessment Quiz 1. How may iterations? MOVCX, -1 SALCX, 3 XORCX, 1 NOTCX XYZ:NOP LOOPXYZ

Assessment Quiz 1. Use a look-up table to convert the values 0-9 to their ASCII equivalents? Assume that the value to convert has been placed in DL.

1. Show the signals and timing required to transfer data from the input port to the output port. Assessment Quiz

Wrapping Up Exam 1 will be held on Thursday, October 18, 2001 from 7:15 to 8:45 PM in 132 Noland