Computer Organization and Assembly Language: Lecture 1 - Basic Concepts
Computer Organization and Assembly Language: Lecture 1 - Basic Concepts
Computer Organization and Assembly Language: Lecture 1 - Basic Concepts
Language
Virtual Machine
Microarchitecture Level 1
AB3D16 = ?2
15C.3816 = ?2
2R0
1R0
0R1
Converting From Decimal to Binary
34 1000102
17 R 0
8R1
4R0
2R0
1R0
0R1
0 1 0 0 1 0 1 1 = 7510
sign bit
1 0 1 1 0 1 0 1 = -7510
overflow bit
21 2 29 512
22 4 210 1024
23 8 211 2048
24 16 212 4096
25 32 213 8192
26 64 214 16384
0001 1 1 1001 9 9
0010 2 2 1010 10 A
0011 3 3 1011 11 B
0100 4 4 1100 12 C
0101 5 5 1101 13 D
0110 6 6 1110 14 E
0111 7 7 1111 15 F
Types of Numbers
x ~x
F T
T F
X Y X ∧Y
F F F
F T F
T F F
T T T
The OR Operator
X Y X∨Y
F F F
F T T
T F T
T T T
Operator Precedence
NOT
AND Higher
OR precedence
Examples:
~x ∨ y NOT, then OR
~(x ∨ y) OR, then NOT
x ∨ (y ∧ z) AND, then OR
Boolean Functions – An Example
Boolean functions take boolean inputs and produce boolean
outputs, e.g., ~x ∨ y
x ~x y ~x ∨ y
F T F T
F T T T
T F F F
T F T T
E. g., x ∧ ~y
x y ~Y ~x ∧ y
F F T F
F T F F
T F T T
T T F F
Boolean Functions – One Last Example
Y S YΛS
F F F
F T F
T F F
T T T
F T F F T F F
F T T T F F T
T F F F T T T
T F T F F F F
T T F F T T T
T T T T F F T