Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Experiment No: 3

STATEMENT: Write a program using 8085 Microprocessor to do 1’s complement of 8-bit data.

THEORY:
MVI A, F7: Take the F7 data to accumulator immediate.
CMA: Do the compliment of the data stored in accumulator.
STA 4000H: Finally store the data in 4000H memory location.
HLT: At last, terminate the program.

SYNTAX:
MVI A, 2000H(INPUT)
CMA
STA 4000H (OUTPUT)
HLT

PROGRAM:

MEMORY OPCODE NEMONICS BYTE


LOCATION
2000 3E MVI A, F7H 2
2001 F7
2002 2F CMA 1
2003 32 STA 4000H 3
2004 00
2005 40
2006 76 HLT 1

RESULT:

INPUT

2000H F7H
OUTPUT

4000H 08H

OUTPUT IN VIRTUAL LAB:

You might also like