Question
Download Solution PDFAn 8085 microprocessor executes the following instructions:
Two numbers are represented in signed 2’s complement form as
P = 11101101 and Q = 11100110
If Q is subtracted from P, the value obtained in signed 2’s complement form is
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFGiven:
P = 11101101
Q = 11100110
Take the 2's complement of Q and add it to P.
Using 2's compliment addition P + (-Q)
2's compliment of Q is:
Q = 00011010
1 1 1 0 1 1 0 1
+ 0 0 0 1 1 0 1 0
1 0 0 0 0 0 1 1 1
After Neglecting the carry we'll get;
0 0 0 0 0 0 1 1 1
Last updated on May 28, 2025
-> UPSC ESE admit card 2025 for the prelims exam has been released.
-> The UPSC IES Prelims 2025 will be held on 8th June 2025.
-> The selection process includes a Prelims and a Mains Examination, followed by a Personality Test/Interview.
-> Candidates should attempt the UPSC IES mock tests to increase their efficiency. The UPSC IES previous year papers can be downloaded here.