HWD101Lab5AnsUnhidden

# HWD101Lab5AnsUnhidden - Hardware101 Fall 2009 Lab week...

This preview shows pages 1–4. Sign up to view the full content.

Hardware101 –Fall 2009 Lab – week 5 ANSWERS Binary Arithmetic and Conversions – practice only 1. Perform the following additions in binary: 1011 + 11101101 + 10101110 + 1011 10101001 101001 10 110 110010110 110101011 2. Perform the following subtractions in binary using the method of “2’s Complement”. 1110 - 10111001 - 111010101110 – 1001 10010001 11011100 0101 | 00101000 1 110111010010 3. How many different addresses can be assigned with an 8-bit address bus? 2 to the power of 8 (256) 4. How can you tell at a glance whether a binary number is even or odd? If the rightmost digit is a “1” the number is odd.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
5. Perform the following conversions: From: To Binary: 11101101 Decimal = 237 Decimal: 576 Binary = 1001000000 Octal: 461 Binary = 100110001 Binary 10101011 Octal = 253 Hexadecimal: 2CE Decimal = 718 Binary 110111111011 Hex = DFB Octal: 37 Decimal = 31
In General: Binary Arithmetic Arithmetic operations (addition, subtraction, multiplication and division) can be carried out on binary numbers in the same way as decimal numbers. Since there are only two digits, the operations are simpler. Binary Addition When you add two binary digits, there are just the following four combinations: 0 0 1 1 +0 +1 +0 + 1 -- -- -- --- 0 1 1 10 | ---- carry out to next position> The result of adding two 1s is 2, which is 10 in binary notation. The 1 in (10) 2 represents the carry digit and it is added to the next higher binary position. This is very similar to the decimal addition of 8 and 4: 8 + 4 -- 12 carry --------- | The 1 represents the carry digit, while 2 is recorded in the units position. Since the 1 is in the tens position, its value is 10.

This preview has intentionally blurred sections. Sign up to view the full version.

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

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern