Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Okay, Lets say i have two decimal values of - 1 0 2 and - 8 7 . I converted them both to hex using
Okay, Lets say i have two decimal values of and I converted them both to hex using two's compliment representation. This yeiled me a result of A and A Now i need to add these two numbers together. When i add them, i st: Get an overflow because im adding two negative numbers as the result from the addition is which cannot be stored in an bit system. and nd: I get the incorrect answer in decimal of when the correct answer should be So my question is can somebody explain the logic to me of why adding two hex values that each represent a signed twos compliment binary value yeilds the incorrect result? also, what does the parameter of having an bit system play into this result. can someone point me in the right direction of solving this problem? Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started