Title: EcE 3015 MICROPROCESSOR
1EcE 3015MICROPROCESSOR
- B.Tech. (First Year)
- Electronic Engineering
2Software 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
3Instruction Pointer
- 16 bit register
- Offset of the next instruction
4General Purpose Data Registers
- Four nos. of 16 bit registers
- Accumulator (A), Base regiser (B), Count register
(C), Data register (D)
5Pointer and Index Registers
- Two nos. of 16 bit pointer registers (SP, BP)
- Two nos. of 16 bit index registers (SI, DI)
6SP and BP
- Use for the offset from the current value of SS .
7SI and DI
- Hold the offset address of data stored in the
data segment of memory - Use indexed addressing
8Status Register
- 6 bits represent status flags.
- 3 bits are control flags.
9Memory Segmentation
- Code Segment
- Stack Segment
- Data Segment
- Extra Segment
10Memory
11(No Transcript)
12(No Transcript)
13Address Calculation
- Base Address 0000
- Offset address 0004
Base Address 0000 Offset address 0004
14(No Transcript)
15Address Calculation
Base Address 1000 Offset address 0004
16(No Transcript)
17Address 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)
21Addressing Modes
- Register Addressing
- Immediate Addressing
- Direct Addressing
- Register Indirect Addressing
- Based Addressing
- Indexed Addressing
- Based Indexed Addressing
- String Addressing
- Port Addressing
22Register Addressing
Before executing the instruction,
After executing the instruction,
23Immediate Addressing
MOV AL, 15
Before executing the instruction,
After executing the instruction,
24Direct Addressing
MOV CX, BETA
25Register Indirect Addressing
MOV AX, SI
26Based Addressing
MOV BXBETA,AL
27Indexed Addressing
MOV AL, SIARRAY
28Based Indexed Addressing
MOV AH, BXSIBETA
29String Addressing
30Port Addressing
- For direct addressing,
- IN AL, 15H
For indirect addressing, IN AL, DX
31Instruction Format
32Instruction Set
- Data transfer instruction
- Arithmetic instruction
- Logic instruction
- Shift
- Rotate
- Flag control
- Compare
- Jump
- Subroutine
- Loop
- String
33Development of a program
- Create a source program, test.asm,
- using editor
- tasm test.asm
- tlink test.obj
- test.exe