Professional Documents
Culture Documents
Microprocessors Part3
Microprocessors Part3
Had 1 0 0 0 1 0 1 1 (written msb (Most Significant Bit) to lsb (Least Significant Bit))
Value of positions is (lsb to msb) 1,2,4,8,16,32,64,128,256,512,…
The powers of 2
Value of the number above
= 128 + 8 + 2 + 1
= 139
41/90
BINARY ADDITION
More examples?
42/90
BINARY SUBTRACTION
43/90
BINARY SUBRACTION
44/90
BINARY MULTIPLICATION
1 0 0 0 0 16
Just like multiplication in base 10 x 0 0 0 1 1 3
1 0 0 0 0
1 0 0 0 0 .
1 1 0 0 0 0 48
More examples?
45/90
2’S COMPLEMENT
46/90
ARITHMETIC WITH 2’S COMPLEMENT
1 1
0 1 0 1 5
1 1 0 1 -3
Add 5 and -3
0 0 1 0
Carry out = 1
47/90
FINDING THE 2’S COMPLEMENT
48/90
SUBTRACTION VIA 2’S COMPLEMENT
14 – 6
(need 5 bits to represent in 2’s complement form)
01110 – 00110 or
01110
+11010
01000 and a carry out of 1 value is 8
49/90
OPERATING IN 2’S COMPLEMENT
50/90
A BASIC OVERVIEW OF COMPUTER ARCHITECTURE
A BASIC OVERVIEW OF COMPUTER ARCHITECTURE
For your reference you can find much of this information on Wikipedia.
But can you trust Wikipedia?
52/90
EARLY COMPUTING TECHNOLOGY
Early computing could be traced back to the abacus. When was the abacus in use?
Around 2700 B.C.
In the mid 1600’s Blaise Pascal designed and implemented a mechanical calculator.
Note: Today we use voltage level to represent a logical TRUE and FALSE. There is no reason that the physical
position of a mechanical component cannot do the same thing.
53/90
A LITTLE MORE MODERN
Boole 1815-1864
Boolean Algebra
54/90
STILL, A LITTLE MORE MODERN
55/90
BASIC OPERATION OF ARCHITECTURE
56/90
DECODE INSTRUCTION AND EXECUTE
57/90
MORE VON NEUMANN
58/90
SOME EARLY VON NEUMANN ARCHITECTURES
59/90
EARLY MICROPROCESSORS
Processor had a small address space for data and a small address space for instructions
Designed for use in calculators
Was the core element for the early electronic calculators – early calculators did basic arithmetic.
Early microprocessors were often programmed in assembler or machine code. Compilers and many modern
high-level programming languages just didn’t exist.
60/90