Subtract Hexadecimal numbers (12 bits, 2’s complement numbers) 0x7F9 – 0x3BB = 0
ID: 3744754 • Letter: S
Question
Subtract Hexadecimal numbers (12 bits, 2’s complement numbers)
0x7F9 – 0x3BB =
0x2DA – 0x3BD =
Explanation / Answer
1) 0x7F9 => 0111 1111 1001 0x3BB => 0011 1011 1011 -0x3BB is 1100 0100 0101 0x7F9 - 0x3BB = 0x7F9 + (-0x3BB) = 0111 1111 1001 + 1100 0100 0101 0111 1111 1001 1100 0100 0101 --------------- 0100 0011 1110 --------------- so, 0x7F9 - 0x3BB is 0x43E 2) 0x2DA – 0x3BD 0x2DA => 0010 1101 1010 0x3BD => 0011 1011 1101 -0x3BD => 1100 0100 0011 0x2DA - 0x3BD = 0x2DA + (-0x3BD) = 0010 1101 1010 + 1100 0100 0011 0010 1101 1010 1100 0100 0011 --------------- 1111 0001 1101 --------------- so, 0x2DA – 0x3BD is 0xF1D
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.