EcE 3015 MICROPROCESSOR - PowerPoint PPT Presentation

1 / 33
About This Presentation
Title:

EcE 3015 MICROPROCESSOR

Description:

Segment Base address is stored in Segment register. Code segment base address CS ... of a program. Create a source program, test.asm, using editor. tasm test. ... – PowerPoint PPT presentation

Number of Views:37
Avg rating:3.0/5.0
Slides: 34
Provided by: CTT
Category:

less

Transcript and Presenter's Notes

Title: EcE 3015 MICROPROCESSOR


1
EcE 3015MICROPROCESSOR
  • B.Tech. (First Year)
  • Electronic Engineering

2
Software Model of the 8088 Microprocessor
  • Instruction Pointer (IP)
  • Data Registers (AX,BX,CX, DX)
  • Pointer Registers( BP,SP)
  • Index Registers (SI,DI)
  • Segment Registers (CS,SS, DS,ES)
  • Status Register

3
Instruction Pointer
  • 16 bit register
  • Offset of the next instruction

4
General Purpose Data Registers
  • Four nos. of 16 bit registers
  • Accumulator (A), Base regiser (B), Count register
    (C), Data register (D)

5
Pointer and Index Registers
  • Two nos. of 16 bit pointer registers (SP, BP)
  • Two nos. of 16 bit index registers (SI, DI)

6
SP and BP
  • Use for the offset from the current value of SS .

7
SI and DI
  • Hold the offset address of data stored in the
    data segment of memory
  • Use indexed addressing

8
Status Register
  • 6 bits represent status flags.
  • 3 bits are control flags.

9
Memory Segmentation
  • Code Segment
  • Stack Segment
  • Data Segment
  • Extra Segment

10
Memory
11
(No Transcript)
12
(No Transcript)
13
Address Calculation
  • Base Address 0000
  • Offset address 0004

Base Address 0000 Offset address 0004
14
(No Transcript)
15
Address Calculation
Base Address 1000 Offset address 0004
16
(No Transcript)
17
Address Calculation
Base Address 2000 Offset address 0004
18
  • Segment Base address is stored in Segment
    register.
  • Code segment base address CS
  • Stack segment base address SS
  • Data segment base address DS
  • Extra segment base address ES

19
(No Transcript)
20
(No Transcript)
21
Addressing Modes
  • Register Addressing
  • Immediate Addressing
  • Direct Addressing
  • Register Indirect Addressing
  • Based Addressing
  • Indexed Addressing
  • Based Indexed Addressing
  • String Addressing
  • Port Addressing

22
Register Addressing
  • MOV AX, BX

Before executing the instruction,
After executing the instruction,
23
Immediate Addressing
MOV AL, 15
Before executing the instruction,
After executing the instruction,
24
Direct Addressing
MOV CX, BETA
25
Register Indirect Addressing
MOV AX, SI
26
Based Addressing
MOV BXBETA,AL
27
Indexed Addressing
MOV AL, SIARRAY
28
Based Indexed Addressing
MOV AH, BXSIBETA
29
String Addressing
  • MOVS

30
Port Addressing
  • For direct addressing,
  • IN AL, 15H

For indirect addressing, IN AL, DX
31
Instruction Format
32
Instruction Set
  • Data transfer instruction
  • Arithmetic instruction
  • Logic instruction
  • Shift
  • Rotate
  • Flag control
  • Compare
  • Jump
  • Subroutine
  • Loop
  • String

33
Development of a program
  • Create a source program, test.asm,
  • using editor
  • tasm test.asm
  • tlink test.obj
  • test.exe
Write a Comment
User Comments (0)
About PowerShow.com