find the 2'S complement of the number stored at memory location 8000H and store the complemented number at memory location 8050H

0 votes
asked by about GNU 8085 Simulator

1 Answer

0 votes
answered by (80k points)

To find the 2's complement of the number stored at memory location 8000H and store the complemented number at memory location 8050H, you can use the command "CMA" to take the 1's complement of the number and then add 1 to it using the "ADI" command. The resulting number can then be stored at memory location 8050H using the "STA" command. The code for this operation would be:

LDA 8000H
CMA
ADI 01H
STA 8050H

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...