Answers

Question and Answer:

  Home  Intel Microprocessor

⟩ Write a program in assembly language to find out one`s and two`s complement for an 8 bit number?

- The program to find the one`s complement of an eight bit number is as follows:

LDA 2501H

CMA

STA 2502H

HLT

- The program to find the two`s complement is as follows:

LDA 2501H

CMA

INR A

STA 2502H

HLT

 144 views

More Questions for you: