
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Problems related to converting base 10 numbers into 8-bit 2's complement notation and performing additions using bit strings in 2's complement notation. It also includes a hint for writing an algorithm to convert a negative decimal number into binary in 2's complement form and implementing it in ada95.
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

0, -1, -
Hint : The bit strings are only 5 bits long so your answer should also be 5 bits long.
Hint: You already know how to convert a positive decimal number into binary notation. Think about determining sign and inverting bit positions.