Professional Documents
Culture Documents
EXP3
EXP3
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:
RESULT:
INPUT
2000H F7H
OUTPUT
4000H 08H