Midterm_01_Cribsheet - Computer Components and Operations...

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

View Full Document Right Arrow Icon
Computer Components and Operations Crib Sheet Powers of 2 2 1 = 2 2 8 = 256 2 15 = 32768 2 2 = 4 2 9 = 512 2 16 = 65536 2 3 = 8 2 10 = 1024 2 17 = 131072 2 4 = 16 2 11 = 2048 2 18 = 262144 2 5 = 32 2 12 = 4096 2 19 = 524288 2 6 = 64 2 13 = 8192 2 20 = 1048576 2 7 = 128 2 14 = 16384 Powers of 16 16 1 = 16 16 5 = 1048576 16 2 = 256 16 6 = 16777216 16 3 = 4096 16 7 = 268435456 16 4 = 65536 16 8 = 4294967296 Decimal Binary 2’s Complement 57/2 = 28 R 1 -N = 2 n N 28/2 = 14 R 0 -N = [(2 n 1) N] + 1 14/2 = 7 R 0 e.g. 7/2 = 3 R 1 ((2 n - 1) - N) = 0010 3/2 = 1 R 1 -N = ((2 n - 1) - N) + 1 1/2 = 0 R 1 -N = 1011 57 10 = 111001 2 Hexadecimal Binary AB51 16 = 1010 1011 0101 0001 2 Binary Addition Bin Subtraction C + X + Y = Z + C B - X - Y = Z - B 0 + 0 + 0 = 0 + 0 0 - 0 - 0 = 0 - 0 0 + 0 + 1 = 1 + 0 0 - 0 - 1 = 1 - 1 0 + 1 + 0 = 1 + 0 0 - 1 - 0 = 1 - 0 0 + 1 + 1 = 0 + 1 0 - 1 - 1 = 0 - 0 1 + 0 + 0 = 1 + 0 1 - 0 - 0 = 1 - 1 1 + 0 + 1 = 0 + 1 1 - 0 - 1 = 0 - 1 1 + 1 + 0 = 0 + 1
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Ask a homework question - tutors are online