ebook img

Number Systems and Arithmetic PDF

91 Pages·2013·1.08 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Number Systems and Arithmetic

Number Systems and Arithmetic Jason Mars Thursday, January 24, 13 What do all those bits mean? bits (011011011100010 ....01) data instruction number text chars .............. R-format I-format ... integer floating point single precision double precision signed unsigned ... ... ... ... Thursday, January 24, 13 Questions About Numbers • How do you represent • negative numbers? • fractions? • really large numbers? • really small numbers? • How do you • do arithmetic? • identify errors (e.g. overflow)? • What is an ALU and what does it look like? • ALU=arithmetic logic unit Thursday, January 24, 13 Introduction to Binary Numbers • Consider a 4 bit binary number Decimal Binary Decimal Binary 0 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111 • Examples of binary arithmetic 3 + 2 = 5 3 + 3 = 6 1 1 1 0 0 1 1 0 0 1 1 + 0 0 1 0 + 0 0 1 1 Thursday, January 24, 13 Introduction to Binary Numbers • Consider a 4 bit binary number Decimal Binary Decimal Binary 0 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111 • Examples of binary arithmetic 3 + 2 = 5 3 + 3 = 6 1 1 1 0 0 1 1 0 0 1 1 + 0 0 1 0 + 0 0 1 1 1 Thursday, January 24, 13 Introduction to Binary Numbers • Consider a 4 bit binary number Decimal Binary Decimal Binary 0 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111 • Examples of binary arithmetic 3 + 2 = 5 3 + 3 = 6 1 1 1 0 0 1 1 0 0 1 1 + 0 0 1 0 + 0 0 1 1 0 1 Thursday, January 24, 13 Introduction to Binary Numbers • Consider a 4 bit binary number Decimal Binary Decimal Binary 0 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111 • Examples of binary arithmetic 3 + 2 = 5 3 + 3 = 6 1 1 1 0 0 1 1 0 0 1 1 + 0 0 1 0 + 0 0 1 1 1 0 1 Thursday, January 24, 13 Introduction to Binary Numbers • Consider a 4 bit binary number Decimal Binary Decimal Binary 0 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111 • Examples of binary arithmetic 3 + 2 = 5 3 + 3 = 6 1 1 1 0 0 1 1 0 0 1 1 + 0 0 1 0 + 0 0 1 1 1 0 1 0 Thursday, January 24, 13 Introduction to Binary Numbers • Consider a 4 bit binary number Decimal Binary Decimal Binary 0 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111 • Examples of binary arithmetic 3 + 2 = 5 3 + 3 = 6 1 1 1 0 0 1 1 0 0 1 1 + 0 0 1 0 + 0 0 1 1 1 0 1 1 0 Thursday, January 24, 13 Introduction to Binary Numbers • Consider a 4 bit binary number Decimal Binary Decimal Binary 0 0000 4 0100 1 0001 5 0101 2 0010 6 0110 3 0011 7 0111 • Examples of binary arithmetic 3 + 2 = 5 3 + 3 = 6 1 1 1 0 0 1 1 0 0 1 1 + 0 0 1 0 + 0 0 1 1 1 0 1 1 1 0 Thursday, January 24, 13

Description:
Introduction to Binary Numbers. • Consider a 4 bit binary number. • Examples of binary arithmetic. Binary. Binary. Decimal. 0. 0000. 1. 0001. 2. 0010. 3. 0011.
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.