Chapt 01
Chapt 01
(c) Pearson Education, 2015. All rights reserved. You may modify and copy this slide show for your personal use, or
for use in the classroom, as long as this copyright statement, the author's name, and the title are not changed.
Chapter Overview
• Virtual Machines
• Specific Machine Levels
• Level 4
• Application-oriented languages
• C++, Java, Pascal, Visual Basic . . .
• Programs compile into assembly language
(Level 4)
• Level 3
• Instruction mnemonics that have a one-to-
one correspondence to machine language
• Programs are translated into Instruction Set
Architecture Level - machine language
(Level 2)
• Level 2
• Also known as conventional machine
language
• Executed by Level 1 (Digital Logic)
• Level 1
• CPU, constructed from digital logic gates
• System bus
• Memory
• Implemented using bipolar transistors
Every binary
number is a
sum of powers
of 2
37 = 100101
Standard sizes:
• Divide the sum of two digits by the number base (16). The quotient becomes the
carry value, and the remainder is the sum digit.
1 1
36 28 28 6A
42 45 58 4B
78 6D 80 B5
21 / 16 = 1, rem 5
16 + 5 = 21
1
C6 75
A2 47
24 2E
00001100 00001100
– 00000011 11111101
00001001
The highest bit is reserved for the sign. This limits the range:
Practice: What is the largest positive value that may be stored in 20 bits?
• pure binary
• can be calculated directly
• ASCII binary
• string of digits: "01010101"
• ASCII decimal
• string of digits: "65"
• ASCII hexadecimal
• string of digits: "9C"
• NOT
• AND
• OR
• Operator Precedence
• Truth Tables
NOT
AND
OR
Example: X Y
Two-input multiplexer