PhysicsTeacher.in

High School Physics + more

8085 microprocessor program for 1’s & 2’s complement of a number

In this post, we will write down programs in assembly language for the 8085 microprocessor to complement a number (1’s complement and 2’s complement).

Here are the problem statements and the required programs, input data, and results.

1’s complement – problem statement for the 8085 microprocessor

Problem statement: Write down an assembly language program to complement the number stored in memory location C100H and to place the result in memory location C200H.

Program

1's complement - problem statement for the 8085 microprocessor
1’s complement – problem statement & program code for the 8085 microprocessor

2’s complement – problem statement for the 8085 microprocessor

Problem statement: Write down an assembly language program to find the 2’complement of the number stored in memory location C100H and to place the result in memory location C200H.

2's complement - problem statement for the 8085 microprocessor
2’s complement – problem statement & program code for the 8085 microprocessor

Author of this post

This post is co-authored by Professor Saraswati Saha, who is an assistant professor at RCCIIT, a renowned degree engineering college in India. Professor Saha teaches subjects related to digital electronics & microprocessors.

Related Posts (8085 microprocessor based)

8085 Interrupts with pdf download

8085 – methods of Data Transfer

Peripheral interface IC 8255

microprocessor fundamentals

8085 architecture – MCQ

MCQs on 8085 Instruction set, Addressing Modes & Machine cycles

8085 – program execution

How to Interface a RAM chip with 8085 microprocessor

Functional block diagram of Intel 8085 microprocessor and the functional units

General purpose registers of 8085 microprocessor

Special-purpose registers of 8085 microprocessor – FAQs

Architecture of 8085 microprocessor

Instruction Word flow diagram and Data Word flow diagram for Intel 8085 & 8086

Fetch Cycle, Instruction Cycle, Machine Cycle & T-state of 8085 & 8086 Microprocessor – FAQs

De-Multiplexing of AD0-AD7 in 8085 Microprocessor

Instruction Set and Types of instruction in 8085 microprocessor – FAQs

FAQs on addressing modes of instructions | execution of an instruction in 8085 microprocessor

Arithmetic Instructions in 8085 Microprocessor for Arithmetic operations: Revision notes

8085 Microprocessor – tutorials (hub)

Microprocessor class notes – PDF download

See also  8255 Programmable Peripheral Interface (PPI) - PDF download
Scroll to top
error: physicsTeacher.in