Appendix B

Answers to Select Problems

Chapter 1 Number Systems and Number Representations

  1. 1.5 Convert the octal number 173.258 to decimal.

    473.268=(4×82)+(7×81)+(3×80)+(2×81)+(6×82)=(256+56+3+0.25+0.09375)10=315.3437510

  2. 1.9 Add the following binary numbers to yield a 12-bit sum:

    1111   1111   11111111   1111   11111111   1111   11111111   1111   1111_1111   1111   1100

  3. 1.16 Multiply the unsigned binary numbers 11112 and 00112.

    image

  4. 1.19 The numbers shown below are in sign-magnitude representation. Convert the numbers to 2s complement representation for radix 2 with the same numerical value using eight bits.

    Sign magnitude

    2s complement ...

Get X86 Assembly Language and C Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.