write the assembly language programming to find the 2's complement for a string of 100 bytes



write the assembly language programming to find the 2's complement for a string of 100 bytes..

Answer / Aditya Kumar Singh

Here is an example of finding the 2's complement of a byte in 8085 Assembly Language:nnMOV A, M ; Load the byte from memory into Accumulator (A)nCMA ; Complement the bytenINR A ; Increment 1 to handle negative numbers as positivenSTORE_ADDRESS: STA (H) ; Store the result back to memory at address pointed by HL

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More 86 Family Interview Questions

Why is the address bus in the 8085 tri-stated and unidirectional?

1 Answers  


What are the different type of registers used in 8085?

1 Answers  


How subroutine can be called from the main program and how the program returns from the subroutine?

1 Answers  


Given a circuit, draw its exact timing response?

0 Answers   ATS,


What is the difference between isr & function call?

1 Answers  


What are set up time & hold time constraints?

1 Answers  


Which type of architecture 8085 has?

6 Answers   DRDO, Sasken, Wipro,


Which type of JMP instruction assembles if the distance is 0020h bytes

1 Answers   CDAC,


What is the function of eu?

1 Answers  


Explain the functions of ale in 8085?

1 Answers  


List out addressing modes in mcs-51?

1 Answers  


Which interrupt has highest priority?

1 Answers  


Categories