Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 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