MICROPROCESSOR, PROGRAMMING & INTERFACING Tutorial 4 – Module 4.

Slides:



Advertisements
Similar presentations
Programming 8086 – Part IV Stacks, Macros
Advertisements

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.
Registers of the 8086/ /2002 JNM.
Computer Architecture and Operating Systems CS 3230 :Assembly Section Lecture 2 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
Procedures and Stacks. Outline Stack organization PUSH and POP instructions Defining and Calling procedures.
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
Data Movement Instructions
Addressing modes – 1 The way in which an operand is specified is called the Address Mode.
Computer Organization And Assembly Language
Gursharan Singh Tatla 21-Nov-20101www.eazynotes.com.
Assembly Language for Intel-Based Computers Chapter 5: Procedures Kip R. Irvine.
1 Lecture 5: Procedures Assembly Language for Intel-Based Computers, 4th edition Kip R. Irvine.
8-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL x86 Instructions Part.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 4 Data Movement Instructions by.
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.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
An Introduction to 8086 Microprocessor.
Procedures and the Stack Chapter 10 S. Dandamudi.
CDP ECE Spring 2000 ECE 291 Spring 2000 Lecture 7: More on Addressing Modes, Structures, and Stack Constantine D. Polychronopoulos Professor, ECE.
Stack Operations LIFO structure (last-in,first-out) –The last value put into the stack is the first value taken out Runtime stack –A memory array that.
1 Fundamental of Computer Suthida Chaichomchuen : SCC
Types of Registers (8086 Microprocessor Based)
The x86 Architecture Lecture 15 Fri, Mar 4, 2005.
Lecture 14 Basic I/O Interface Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Strings, Procedures and Macros
Microprocessor Microprocessor (cont..) It is a 16 bit μp has a 20 bit address bus can access upto 220 memory locations ( 1 MB). It can support.
University of Sargodha, Lahore Campus Prepared by Ali Saeed.
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
MICROPROCESSOR PROGRAMMING & INTERFACING Tutorial 3 Module 4.
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
BITS Pilani Pilani Campus Pawan Sharma Lecture /12/ EEE /INSTR/CS F241 ES C263 Microprocessor Programming and Interfacing.
Intel 8086 MICROPROCESSOR ARCHITECTURE
Computer Organization & Assembly Language University of Sargodha, Lahore Campus Prepared by Ali Saeed.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
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.
Data Movement Instructions A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta.
ΜComputer Structure μProcessor Memory Bus System I/O Ports.
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Format of Assembly language
Part of the Assembler Language Programmers Toolbox
UNIT Architecture M.Brindha AP/EIE
BYTE AND STRING MANIPULATON
8086 Microprocessor.
Computer Organization & Assembly Language Chapter 3
COURSE OUTCOMES OF MICROPROCESSOR AND PROGRAMMING
Instruksi Set Prosesor 8088
Chapter 4 Data Movement Instructions
EE3541 Introduction to Microprocessors
Intel 8088 (8086) Microprocessor Structure
Chapter 3 Addressing Modes
Symbolic Instruction and Addressing
CS 301 Fall 2002 Control Structures
Data Addressing Modes • MOV AX,BX; This instruction transfers the word contents of the source-register(BX) into the destination register(AX). • The source.
Stack and Subroutines Module M17.1 Section 11.2.
Programming 8086 – Part IV Stacks, Macros
Chapter 4 Data Movement Instructions
Intel 8088 (8086) Microprocessor Structure
8086 Registers Module M14.2 Sections 9.2, 10.1.
Practical Session 4.
Symbolic Instruction and Addressing
3.6 Data transfer Instructions
Lecture 06 Programming language.
Computer Architecture CST 250
Unit-I 80386DX Architecture
Process.
Part I Data Representation and 8086 Microprocessors
Presentation transcript:

MICROPROCESSOR, PROGRAMMING & INTERFACING Tutorial 4 – Module 4

QUESTION 1 Register Content  AX = 1111  CX = 2222  DX = 3333  BX = 4444  BP = 5555  SI = 6666  DI = 7777  SP = 3000 (All values are in hex) Program  PUSHA  PUSH AX  POPA  POP AX

QUESTION 2  SP=3000 H  SI=0250 H  BX=2345 H  AX=6789 H  DI= 0100 H  Flag register is 0231 H  PUSH AX  PUSH BX  PUSHF  PUSH 0987 H  PUSH DI  PUSH SI  POP AX  POP BX  POPF  POP DI  POP [SI]

QUESTION 3  Write an ALP with a subroutine ‘sub1’ that will count number of odd positive, odd negative, even positive and even negative 32-bit numbers.  The data that is to be analysed is stored in memory location ‘in1’ and results will be stored in locations ‘oddpos’, ‘oddneg’, ‘evenpos’,’evenneg’ respectively.  The total count of data available is in location ‘cnt1’ and cannot exceed 100.  The subroutine should do the categorization and counting while the main program only passes the number as a parameter using SI as the pointer

QUESTION 4  Write an ALP that will examine a series of memory locations for small alphabets.  If a memory location has a small alphabet it will convert it into capitals.  If the memory location does not have a small alphabet it will not modify the contents of the memory location.  The series of memory location to be examined start at alph1. The count of memory locations to be examined is stored in cnt1 and will not exceed 1000d.  The checking and the conversion of one small alphabet to one capital alphabet must be done using a macro called CAPSON.

QUESTION 5  Write an ALP that will find out whether data stored in loc1 is a palindrome.  The size of the palindrome is stored in location cloc1.  Make this as a sub program –that can be accessed by a main program that handles array of numbers.  The count of the palindrome must be stored in location dloc1.