exam instructions_updated slides(1)[1]

# Exam instructions_updated slides(1[1]

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

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

Unformatted text preview: t) 2 10/13/2011 Binary to decimal Decimal to Binary (11100110)2 = 0 x 20 + 1 x 21 +1 x 22 + 0 x 23+ 0 x 24 + 1 x 25 + 1 x 26 + 1 x 27 = 0 + 2 + 4 + 0 + 0 + 32 + 64 +128 = (230)10 (101.101)2 = 1 x 20 + 0 x 21 + 1 x 22 + (1 x 2‐1 + 0 x 2‐2 + 1 x 2‐3) = 1 + 0 + 4 + (1/2 + 0 + 1/8) = (5.625)10 Binary addition • • • • • 0 + 0 = 0 1 + 0 = 1 0 + 1 = 1 1 + 1 = 10 1 + 1 + 1 = 11 Example 1 1001001 + 11001 1 11 Check: 1 0 0 1 0 0 1 0 0 1 1 0 0 1 (1001001)2 = 1 x 20 + 1 x 23+ 1 x 26 1 1 0 00 1 0 = 1 + 8 + 64 = (73)10 (11001)2 = 1 x 20 + 1 x 23+ 1 x 24 = 1 + 8 + 16 = (25)10 (1100010)2 = 1 x 21+ 1 x 25+ 1 x 26 = 2 + 32 + 64 = (98)10 73 + 25 = 98 3 10/13/2011 Binary Subtraction Binary Subtraction • Just like decimal numbers we can use borrow method for binary subtraction too. • But we can't subtract a larger number from a smaller one column wise. • For ex, consider 45 – 62 = ‐17. This cannot be done column wise. We need to identify the greater number. • The computer method is to represent negative numbers in "two's complement" form. • This allows us to directly subtract any pair of numbers, including greater from smaller and come up with the correct result. • Usually MSB is allotted for represe...
View Full Document

## This note was uploaded on 05/05/2013 for the course ELEC 1111 taught by Professor Jayashriravishankar during the One '11 term at University of New South Wales.

Ask a homework question - tutors are online