Submitted by: Submitted by icedkickapoo
Views: 29
Words: 1288
Pages: 6
Category: Science and Technology
Date Submitted: 02/24/2015 12:51 AM
Introduction to Computer Systems Architecture
ICT121 Lecture 1
ICT121-Number Systems, Computer Arithmetic and Computer Logic
1-1
Introduction
In this you will learn:
Seminar1: Number Systems, Computer Arithmetic and Computer Logic Seminar2: Overview of a Computer System Seminar3: Computer Function and System Buses Seminar4: Central Processing Unit and Instruction Code Programming Seminar5: Computer Internal Memory Seminar6: Computer Input/Output
ICT121-Number Systems, Computer Arithmetic and Computer Logic
1-2
Number Systems, Computer Arithmetic and Computer Logic
You will Learn to:
Convert a number from one number system to another Represent integer in binary using sign-magnitude and two’s complement Represent real numbers in binary Perform simple arithmetic operations using various binary representations Perform logic operation using binary numbers
ICT121-Number Systems, Computer Arithmetic and Computer Logic
1-3
Computer Data
Data in a computer is represented using binary codes called Binary Digits (bits)
0 and 1 Integer Real Number Character
basic data types are:
ICT121-Number Systems, Computer Arithmetic and Computer Logic
1-4
Integer Representation
Only have 0 & 1 to represent everything Positive numbers stored in binary
e.g. 41=0010 1001
No minus sign No period Use Sign-Magnitude & Two’s complement
ICT121-Number Systems, Computer Arithmetic and Computer Logic
1-5
Sign-Magnitude
Left most bit is sign bit 0 means positive 1 means negative +18 = 0001 00102 -18 = 1001 00102 Problems
E.g. +5 = 0000 0101 -3 = 1000 0011
Need to consider both sign and magnitude in arithmetic Two representations of zero (+0 and -0) (Hence it is NOT done this way in computers)
ICT121-Number Systems, Computer Arithmetic and Computer Logic
1-6
Two’s Complement Numbers
Examples:
+3 = 0000 00112 +2 = 0000...