Professional Documents
Culture Documents
03 Instructor's Guide
03 Instructor's Guide
SPECIFIC OBJECTIVES:
At the end of the topic session, the students should be able to:
MATERIALS/EQUIPMENT:
o Computer
o LCD/OHP projector
o File/s (03 Assembly Language and the x86 Processor
Architecture)
03 LCD Slides 1.ppsx
03 OHP Slides 1.pdf
03 LCD Slide Handout 1.pdf
03 OHP Slide Handout 1.pdf
03 Laboratory Exercise 1.pdf
03 Task Performance 1.pdf
o Software requirement
MS PowerPoint
o White board marker and eraser
TOPIC PREPARATION:
PRESENTATION OVERVIEW:
A. Introduction 15 min
B. Instructional Input
Basic Concepts of Assembly Language 10 min
a. Discuss the basic concepts of assembly language
How Assembly Language Relates to Other Programming
Languages 20 min
a. Compare assembly language with other programming
languages
Benefits of Leaning Assembly Language 10 min
a. Recognize the importance of studying assembly language
Number Systems 50 min
a. Perform conversion of number systems
x86 Processor Architecture 20 min
a. Explain the basic principles of computer architecture as
applied to x86 processors
Basic Execution Environment 20 min
a. Describe the environment used in executing instructions
Memory Management 20 min
b. Discuss how x86 processors manage memory according to
the basic modes of operation
C. Generalization 15 min
D. Application 180 min
Total duration 360 min
TOPIC PRESENTATION:
A. Introduction
Step 2
Target Attribute: Critical Thinker
Facet: Practicing Thinker (Ability to understand the process of
correct thinking)
Strategy: Motivate students to improve the ability to monitor one's process of
thinking
Learning Outcome: Students should be able to:
identify terminologies which were discussed in the previous lesson
Step 3
Target Attribute: Effective Communicator
Facet: Speaking (Ability to express ideas and information orally in a variety of
situations)
Strategy: Improve students' ability in presenting ideas and information to an
audience confidently
Learning Outcome/s: Students should be able to:
explain the chosen words clearly
Slide 1 1. Start the session by showing Slide 1 of 03 LCD Slides 1. Inform your
students that there will be a recap of the previous lesson in a form of
a simple game.
K0020
11/3/2015
*Property of STI 1
Slide 2 2. Ask five (5) students to unscramble the words shown in Slide 2.
3. Once all the words are unscrambled, call another five (5) students
Unscramble the words. and ask them to choose a word and give a brief explanation or
KTDOPSE
SIERTEGR
example of their chosen word.
OORLNTC
YIANMCD
TULEBOSA
K0020
11/3/2015
*Property of STI 2
Number Systems
x86 Processor Architecture Benefits of Learning Assembly Language
Basic Execution Environment
Memory Management
Number Systems
K0020
11/3/2015
*Property of STI 3
Memory Management
B. Instructional Input
K0020
11/3/2015
*Property of STI 4
Slide 8
K0020
11/3/2015
*Property of STI 8
Slide 9
K0020
11/3/2015
*Property of STI 9
Slide 10
K0020
11/3/2015
*Property of STI 10
Slide 11
K0020
11/3/2015
*Property of STI 11
Slide 12 1. Using Slide 12, explain why studying assembly language is still
important despite the existence of high-level languages.
Benefits of
Learning Assembly Language
It is an ideal tool for writing embedded
Here are the benefits of learning assembly language:
programs because of its economical use of
memory.
It permits you to precisely specify a program’s It is an ideal tool for writing embedded programs
executable code.
It permits direct access to computer hardware
because of its economical use of memory.
and code can be hand optimized for speed.
It allows you to apply and test theoretical
information.
K0020
It permits you to precisely specify a program’s
11/3/2015
*Property of STI 12
executable code.
Number Systems
Number Systems
A number system (or numeral system) is a system that uses
a system that uses distinct symbols to
distinct symbols to represent a number inside the
represent a number inside the computer’s memory. For example, the two numbers 528 and
computer’s memory
Base or Radix - The number of different 2A16 both refer to the same quantity, 4210, but their
symbols (digits) required to represent
any given number
representations are different.
11/3/2015
*Property of STI K0020
13
The number of different symbols (digits) required to
represent any given number is known as the base or radix of
a number system.
Note: The larger the base, the more numerals are required.
The highest value symbol used in a number system is always
one less than the base of the system.
Slide 14 2. Compare the different types of number systems using Slide 14.
Provide examples of each.
Types of Number Systems
Binary – base of 2
Below are the different types of number systems.
Decimal – base of 10
Octal – base of 8 Binary Number System – This is the number system
Hexadecimal – base of 16
that is the basic foundation of any computer
machine. In this system, the base (n) = 2 and includes
11/3/2015
*Property of STI K0020
14
two symbols from 0 through 1.
3. Using Slide 15, explain the three (3) methods of converting a decimal
Slide 15 number base system to other number base systems. Provide
examples of each.
Decimal to Other Base Systems
Subtracting the Powers of Base 2 Method There are three (3) ways to convert a decimal number into its
Successive/Repeated Division by Powers representation in a different number base. These methods
of Base (n) Method
Successive/Repeated Division by Base are:
Method
Slide 16 4. Discuss the two (2) methods of converting other base systems to
decimal number system as shown in Slide 16. Provide examples of
Other Base Systems to Decimal each.
Multiply and Add Method
Positional Value Method There are two (2) ways to convert numbers in other bases
into a decimal number. These are:
the sum by the base (n) and then add again the next
digit to the product.
Modes of Operation
Basic Program Execution Registers Registers are high-speed storage locations directly inside the
CPU, designed to be accessed at much higher speed than
conventional memory. When a processing loop is optimized
for speed, loop counters are held in registers rather than
variables. Out of the 18 basic program execution registers,
there are eight (8) general-purpose registers, six (6) segment
11/3/2015
*Property of STI K0020
19
registers, a processor status flags register (EFLAGS), and an
instruction pointer (EIP).
o Memory pointers
Memory Management
Slide 20 1. Discuss how x86 processors manage memory according to the basic
modes of operation. Use Slide 20.
Memory Management Models
The memory that the processor addresses on its bus is called
physical memory. Physical memory is organized as a
sequence of 8-bit bytes. Each byte is assigned a unique
address, called a physical address. The physical address space
ranges from zero to a maximum of 232 – 1 (four [4]
11/3/2015
*Property of STI K0020
20 gigabytes).
C. Generalization
Step 1
Target Attribute: Lifelong Learner
Facet: Self-directed (Ability to identify, define and transfer
worthwhile learning)
Strategy: Guide students to evaluate their learning process
Learning Outcome: Students should be able to:
identify concepts learned through answering the crossword puzzle
Slide 21 1. Display Slide 21 for about a minute to catch the attention of the class.
Have a recap of the topics discussed during the session in a form of a
game. Show Slide 22, ask 10 students to answer the crossword puzzle
projected in the whiteboard using a whiteboard marker.
Let’s play a game!
K0020
11/3/2015
*Property of STI 21
Slide 22
Across
D. Application
Steps 1 and 2
2. Number system that uses
base 16
6. High-speed storage actions
7. Independent address space
8. Memory appears as a single
address space in this model.
9. Synchronizes internal
Target Attribute: Lifelong Learner
operations of the CPU with
other components
10. Combines individual files
created by an assembler into a
Facet: Self-directed (Ability to identify, define and transfer
single executable program
Down
worthwhile learning)
1. Permits you to examine
registers
execution
during program
REFERENCES:
Irvine, K. (2011). Assembly Language for x86 Processors (6th Ed.). Pearson