Question
Download Solution PDFThe following Hexadecimal operation yields: 0xF0 – 0xAA + 0x10 ……….
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFConcept:
The steps of hexadecimal subtraction using 16’s complement include:
Step 1: Find the 16’s complement of the subtrahend (Second number)
Step 2: Add first number (minuend) and 16’s complement of the subtrahend.
Step 3: If carry is generated, discard the carry. Otherwise, take 16’s complement for the sum and assign a negative sign.
Application:
16th complement of a number is performed by subtracting 15 from each digit and adding 1 to the result.
Performing 0xF0 – 0xAA, we proceed as:
Taking the 16th complement of 0xAA, we get 0x46.
Now, adding this to 0x10, we get 0x56.
Note:
Hexadecimal subtraction can also be performed by using the 15’s complement method. The steps of hexadecimal subtraction using 15’s complement include:
Step 1: Find the 15’s complement of the subtrahend (Second number)
Step 2: Add first number (minuend) and 15’s complement of the subtrahend.
Step 3: If carry is generated, then add the carry to the result. If not, then the result is negative and take the 15’s complement again to get the result.
Last updated on May 28, 2025
-> ISRO Technician recruitment notification 2025 has been released.
-> Candidates can apply for the ISRO recruitment 2025 for Technicians from June 2.
-> A total of 64 vacancies are announced for the recruitment of Technician.
-> The selection of the candidates is based on their performance in the Written Exam and Skill Test.
-> Candidates who want a successful selection must refer to the ISRO Technician Previous Year Papers to increase their chances of selection for the Technician post.