0% found this document useful (0 votes)
25 views2 pages

Microprocessor &amp Micro Controller Expt No.6

The document describes an experiment using an 8085 microprocessor kit to subtract 37H from 40H using the SUI instruction. The experiment loads 40H into the accumulator using MVI A, 40H, then subtracts 37H using SUI 37H. The result is 09H in the accumulator and flag register F shows zero flag Z as 0 and parity flag P as 1.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Microprocessor &amp Micro Controller Expt No.6

The document describes an experiment using an 8085 microprocessor kit to subtract 37H from 40H using the SUI instruction. The experiment loads 40H into the accumulator using MVI A, 40H, then subtracts 37H using SUI 37H. The result is 09H in the accumulator and flag register F shows zero flag Z as 0 and parity flag P as 1.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

EXPERIMENT No. 6 1.

0 TITLE :
To write a program to subtract 37H from 40H using SUI instruction.

2.0 PRIOR CONCEPTS:


8085 Architecture & Instruction Set

3.0 NEW CONCEPTS:


1. Entering a hex number in the accumulator. 2. Subtracting a hex number from the contents of the accumulator.

4.0 LEARNING OBJECTIVES:


1. To enter a hex number in the accumulator.
2. To subtract a hex number from the contents of the accumulator

5.0 APPARATUS:
8085 Microprocessor Kit.
6.0

PROCEDURE & OBSERVATION TABLE :


Memory location 7000 7001 7002 7003 7004 Hex code 3E 40 D6 37 CF RST 1 SUI 37 H Instruction MVI A , 40 H

The contents of the various registers including flag register will be : A= 09 B= 00 C= 00 D= 00 E=00 F=04 H=00 L=00

Flag Register F :

D7 S 0

D6 Z 0

D5 X 0

D4 AC 0

D3 X 0

D2 P 1

D1 X 0

D0 CY 0

You might also like