Answered step by step
Verified Expert Solution
Link Copied!

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 -102 and -87. I converted them both to hex using two's compliment representation. This yeiled me a result of -102=9A and -87= A9. Now i need to add these two numbers together. When i add them, i 1st: Get an overflow because im adding two negative numbers as the result from the addition is 143 which cannot be stored in an 8-bit system. and 2nd: I get the incorrect answer in decimal of 323 when the correct answer should be 15. 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 8-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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions