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 |
Why is the address bus in the 8085 tri-stated and unidirectional?
What are the different type of registers used in 8085?
How subroutine can be called from the main program and how the program returns from the subroutine?
Given a circuit, draw its exact timing response?
What is the difference between isr & function call?
What are set up time & hold time constraints?
Which type of architecture 8085 has?
6 Answers DRDO, Sasken, Wipro,
Which type of JMP instruction assembles if the distance is 0020h bytes
What is the function of eu?
Explain the functions of ale in 8085?
List out addressing modes in mcs-51?
Which interrupt has highest priority?