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

8086 Problemsheet

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)
16 views

8086 Problemsheet

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/ 7

MUSTANSIRIYAH UNIVERSITY - COLLEGE OF ENGINEERING

ELECTRICAL ENGINEERING DEPARTMENT


8086 MICROPROCESSOR LABORATORY

Experiment No: 1 part2 Date:


Memory Operations
Objective :
To write an assembly language program To Execute Data Transfer Instructions

Theory:

Data Read/Write process from /To Memory

( 1-7 )
MUSTANSIRIYAH UNIVERSITY - COLLEGE OF ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
8086 MICROPROCESSOR LABORATORY

( 1-8 )
MUSTANSIRIYAH UNIVERSITY - COLLEGE OF ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
8086 MICROPROCESSOR LABORATORY

( 1-9 )
MUSTANSIRIYAH UNIVERSITY - COLLEGE OF ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
8086 MICROPROCESSOR LABORATORY

IN AL, Padr
Ex: IN AL, 20 H
IN AL, Padr

OUT Padr, AL
Ex: OUT 20 H, AL

( 1-10 )
MUSTANSIRIYAH UNIVERSITY - COLLEGE OF ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
8086 MICROPROCESSOR LABORATORY

Procedures

1-write the following program

Then give content of registers that will be changed for each instruction

Fig (1-2) Registers and ALU -flags of 8086 microprocessor

( 1-11 )
MUSTANSIRIYAH UNIVERSITY - COLLEGE OF ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
8086 MICROPROCESSOR LABORATORY

2. Encode each of the instructions that follow into machine code.


a. MOV BX,OAAAA _______________
b. MOV AX, BX _______________
c. MOV AX, [BX] _______________
d. MOV SI, 0300H _______________
e. MOV AX, [0004] _______________
f. MOV AX, [BX + SI] _______________
g. MOV AX, [SI+4] _______________
h. MOV AX, [BX + SI +4] _______________

3-. How many bytes are required to store each of the machine code instructions in
step 2:
a.
b.
c.
d.
e.
f.
g.
h.

3- Initialize the internal registers of the 80x86 as follows:


(AX) = 0000H
(BX) =0001H
(CX) = 0002H
(DX) = 0003H
(SI) = 0010H
(DI) = 0020H
(BP) = 0030H
Verify the initialization by displaying the new contents of the registers.
2. Fill all memory locations in the range DS: 00 through DS: 1F with 00H and
then initialize the word storage locations that follow:
(DS: 0001H) = BBBBH
(DS:
(DS:0011H)
0004H)==DDDDH
CCCCH
(DS: 0014H) = EEEEH
(DS: 0016H) = FFFFH

( 1-12 )
MUSTANSIRIYAH UNIVERSITY - COLLEGE OF ENGINEERING
ELECTRICAL ENGINEERING DEPARTMENT
8086 MICROPROCESSOR LABORATORY

5- Encode each of the instructions that follow into machine code.


a. MOV AX, BX; CS: 100;
b. MOV AX, BX at location CS: 100
c. MOVAX, OAAAA; CS: 110;
d. MOV AX, [BX]; CS: 120;
e. MOV AX, [4]; CS: 130;
f. MOV AX, [BX + SI]; CS: 140;
g. MOV AX, [SI +4]; CS: 150
h. MOV AX, [BX+SI+4]; CS: 160;

( 1-13 )

You might also like