Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Experiment

King Khalid University


College of Computer Science
Department of Computer Science
1
352 CCS- Microprocessor and Assembly language

Introduction to 8086 Microprocessor

Student Information
Name: ____________________________________________________________________________________

ID Number: ________________ Serial Number: ________ ______ Group Number: ___________

Data Submitted: _______________ Marks: _______________ Instructor Signature: ____________

Marks

1444 – 1st Semester


352 CCS– Microprocessor and Assembly Language – Lab Manual KKU-CS-CS

Introduction to 8086 Microprocessor

Experiment #1
Aim:-
1. Know how to use different data transfer instructions.
2. Know how to write a program in 8086 using code segment and data segments.

Objectives:-
This objective of this experiment is to
1. Understand the 8086 Processor Architecture, data transfer instructions.
2. Get familiarized with 8086 Assembly Language.
3. Get introduced with the application of MASM software.

Software used:-
1. Notepad++.
2. Dos Box 0.74.
3. MASM

Theory:- A 8086 is a 16-bit Microprocessor


The 8086 Microprocessors: Registers
Registers are in the CPU and are referred to by specific names
Data registers:Hold data for an operation to be performed.
There are 4 data registers (AX, BX, CX, DX)
Instructions execute faster if the data is in a register AX, BX, CX, DX
Low and High bytes of the data registers can be accessed separately
AH, BH, CH, and DH are the high bytes
AL, BL, CL, and DL are the low bytes
Data Registers are general purpose registers, but they also perform special functions
AX: Accumulator Register Preferred register to use in arithmetic, logic and data transfer
instructions because it generates the shortest Machine Language Code .Must be used in
multiplication and division operation. Must also be used in I/O operations
BX:Base Register
Also serves as an address register

©Computer Science Department


352 CCS– Microprocessor and Assembly Language – Lab Manual KKU-CS-CS
CX: Count register
Used as a loop counter
Used in shift and rotate operations
DX:Data register Used in multiplication and division Also used in I/O operations
Address registers :Hold the address of an instruction or data element
Segment registers (CS, DS, ES, SS)
All Segment Registers are 16-bit
CS - the Code Segment Register
DS - the Data Segment Register
SS - the Stack Segment Register
ES - the Extra Segment Register
Pointer registers (SP, BP, IP): Contain the offset addresses of memory locations Can also be used
in arithmetic and other operations
SP: Stack pointer used with SS to access the stack segment
BP: Base Pointer Primarily used to access data on the stack
Can be used to access data in other segments
IP: Instruction Pointer
Flag Register:

©Computer Science Department


352 CCS– Microprocessor and Assembly Language – Lab Manual KKU-CS-CS

8086 Instructions:-

Software used:-

©Computer Science Department

You might also like