0% found this document useful (0 votes)
39 views

Microprocessor Architecture: Lecturer

The document provides information about the Microprocessor Architecture lecture for the 2019-2020 academic year at the Islamic University's Department of Computer Technical Engineering. It discusses the objectives of recognizing the types of registers in the 8086 microprocessor, the MOV instruction, and the ADD instruction. It then defines the general purpose registers (AX, BX, CX, DX), special purpose registers (SP, BP, SI, DI), segment registers (CS, DS, ES, SS), and instruction pointer (IP). Examples of using the MOV and ADD instructions are also provided.

Uploaded by

Ahmed Al-Delemy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Microprocessor Architecture: Lecturer

The document provides information about the Microprocessor Architecture lecture for the 2019-2020 academic year at the Islamic University's Department of Computer Technical Engineering. It discusses the objectives of recognizing the types of registers in the 8086 microprocessor, the MOV instruction, and the ADD instruction. It then defines the general purpose registers (AX, BX, CX, DX), special purpose registers (SP, BP, SI, DI), segment registers (CS, DS, ES, SS), and instruction pointer (IP). Examples of using the MOV and ADD instructions are also provided.

Uploaded by

Ahmed Al-Delemy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

The Islamic University

Department of
Computer Technical Engineering
Second Class

Microprocessor Architecture
‫المحاضره االولى‬
)‫(العملي‬
2019-2020
Lecturer

Asst. Lec. Karrar Shakir Muttair ALNomani


Lecture objectives

The student will recognize the following objectives

1. Know on the types of Registers in 8086 Microprocessor


2. MOV Instruction
3. ADD Instruction
8086 Microprocessor

Registers

General Purpose Special Purpose Segment Instruction


Registers Registers Registers Pointer

1. AX 1. SP 1. CS 1. IP
2. BX 2. BP 2. DS
3. CX 3. SI 3. ES
4. DX 4. DI 4. SS
General Purpose Registers

AX= 16 bits

1. AX = AH + AL AH= 8 bits AL= 8 bits

0 7 8 15
Accumulator Register

BX= 16 bits

BH= 8 bits BL= 8 bits

0 7 8 15
2. BX = BH + BL

Base Register
General Purpose Registers

CX= 16 bits

3. CX = CH + CL CH= 8 bits CL= 8 bits

0 7 8 15
Counter Register

DX= 16 bits

DH= 8 bits DL= 8 bits

0 7 8 15
4. DX = DH + DL

Data Register
Special Purpose Registers

SP= 16 bits

0 15
1. SP : Stack Pointer

BP= 16 bits

0 15
2. BP : Base Pointer

SI= 16 bits

0 15
3. SI : Source Index
DI= 16 bits

0 15
4. DI : Destination Index
Segment Registers

CS = 16 bits

0 15
1. CS : Code Segment

DS= 16 bits

0 15
2. DS : Data Segment

ES= 16 bits

0 15
3. ES : Extra Segment
SS= 16 bits

0 15
4. SS: Stack Segment
Instruction Pointer

IP = 16 bits

0 15
IP : Instruction Pointer

Accumulator Register
Base Register
Counter Register
Data Register
Code Segment
Instruction Pointer
Stack Segment
Stack Pointer
Base Pointer
Source Index
Destination Index
Data Segment
Extra Segment
MOV Instruction
• Copies the second operand (source) to the first operand (destination).
• The source operand can be an immediate value, general purpose register or
memory location.
• The destination register can be a general purpose register, or memory location.
• Both operands must be the same size, which can be a byte or a word.

Syntax:
MOV Destination, Source

Destination :-
1. Register
2. Memory location
Source :-
1. Register
2. Memory location
3. Immediate Value
EXAMPLE :-
MOV Register, Register
MOV Register, Memory Location
MOV Register, Immediate Value
MOV Memory Location, Register
MOV Memory Location, Memory Location
MOV Memory Location, Immediate Value

Register : AX, BX, CX, DX, AH, AL, BH, BL, CH, CL, DH, DL, DI, SI, BP, SP.
Memory Location : [3000H], [BX], [SI], etc….
Immediate Value : 5, -24, 3FH, 10001101b, etc….
EXAMPLE 1
Here is a short program that demonstrates the use of MOV instruction:
MOV AX, 0B800h
MOV DS, AX

MOV BX, 15Eh


MOV CX, BX
ADD Instruction
ADD the content of source to the destination and store the result in the destination.
Syntax:
ADD Destination, Source
Destination :-
1. Register
2. Memory location
Source :-
1. Register
2. Memory location
3. Immediate Value
Note :- It is very important to check the size of the destination and source :-
ADD DX, BL invalid because DX is 16 bits (Word) and BL is 8 bits (Bytes).
ADD BL, CX invalid because BL is 8 bits (Byte) and CX is 16 bits (Word).
ADD CL, DL valid because both CL and DL are 8 bits (Byte).
ADD CX, AX valid because both CX and AX are 16 bits (Word).
EXAMPLE 1
Write a program to find the summation of :-
1. CX and BX Register (CX=2h, BX= 5h).
2. AL and BL Register (AL=5h, BL= 1h).
3. DL Register and number 5 (DL= 3h).

Soluation :-
MOV CX, 2h
MOV BX, 5h
ADD CX, BX
MOV AL, 5h
MOV BL, 1h
ADD AL, BL
MOV DL, 3h
ADD DL, 5h
EXAMPLE 2
Write a program to find the summation of memory location 3000h with the content of register
DL and store the result in BH register.
Where DL= 4

Soluation :-
MOV DL, 4h
ADD DL, [3000H]
MOV BH, DL
Homework
1. Write a program to store number 5 in memory location 3000h,
then add its to the content of DX register and store the result in
BX register.

Where DX=EF1H
2. Write a program to find :-
[2500h]=BX+[3000H]+5

Where BX=10AH
Thank you for your
attention!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy