1 2 3 4 5 6 7 8 9 10 11 12 13 int sumarray3dint annn

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ¼ ¼½¼¼¼ ½¼¼¼¼ Problem 2.19 Solution: [Pg. 60] This problem helps you understand two’s complement negation using a very small word size. For Û , we have ÌÅ Ò integer negation. . So is its own additive inverse, while other values are negated by Ü Hex 0 3 8 A F Decimal ¼ -t Decimal Ü Hex 0 D 8 6 1 ¿ ¼ ¿ ½ ½ B.2. REPRESENTING AND MANIPULATING INFORMATION The bit patterns are the same as for unsigned negation. Problem 2.20 Solution: [Pg. 63] This problem is an exercise to make sure you understand two’s complement multiplication. Mode Unsigned Two’s Comp. Unsigned Two’s Comp. Unsigned Two’s Comp. 697 Ü Ý ½½¼ ¾ ¾ ¼½¼ ¼½¼ ½½½ ½ ½½½ ½½½ ½ ½½½ ½ ½½¼ ¼¼½ ¼¼½ ½½½ Ü¡Ý Truncated Ü ¡ Ý ¾ ½¾ ¼¼½½¼¼ ½½½½¼¼ ¼¼¼½½½ ½ ½ ½¼¼ ½¼¼ ½½½ ½½½ ¼¼½ ¼¼½ ½ ½ ½ ½½½½½½ ½½¼¼¼½ ¼¼¼¼¼½ ½ ½½½ Problem 2.21 Solution: [Pg. 64] In Chapter 3, we will see many examples of the leal instruction in action. The instruction is provided to supp...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online