Lecture 1
Lecture 1
Assembly Language
1 – An Introduction
Outline
2
What is this course about?
Course Objectives
To understand organization of a computer system
To gain an insight knowledge about the internal
architecture and working of microprocessors.
To understand working of memory devices, interrupt
controllers and I/O devices.
4
Basic Structure & Function –
Computer System
Structure
6
Difference in Peripherals &
Communication Lines
7
Structure - Top Level
Peripherals Computer
Central Main
Processing Memory
Unit
Computer
Systems
Interconnection
Input
Output
Communication
lines
8
Structure – Top Level Cont..
9
Structure - The CPU
CPU
Computer Arithmetic
Registers and
I/O Login Unit
System CPU
Bus
Internal CPU
Memory Interconnection
Control
Unit
10
Structure – The CPU
11
Structure - The Control Unit
Control Unit
CPU
Sequencing
ALU Logic
Control
Internal
Unit
Bus
Control Unit
Registers Registers and
Decoders
Control
Memory
12
Function
13
Functional View of Computer
14
Possible Operations
Data movement Data storage device
device (read/write)
15
Possible Operations Contd..
16
Possible Operations Cont..
Processing on data stored in storage or in external
environment
17
Possible Operations Contd..
18
What is Computer Organization?
Computer Architecture
Computer Architecture refers to those attributes of a system
visible to a programmer … Design, Blue Print
Those attributes that have direct impact on logical execution of a
program.
Architectural attributes include:
the instruction set,
no. of bits used to represent various data types (numbers,
characters etc),
I/O mechanisms and technology for addressing memory.
23
Why Study Computer Organization?
24
Assembly Language
Computer Level Hierarchy
Figure Reference:
26 http://users.dickinson.edu/~braught/courses/cs251f09/topics/slides/
Programming Languages
27
High-Level Language
28
Machine Language
The "native" language of the computer
Numeric instructions and operands that can be
stored in memory and are directly executed by
computer system.
Each ML instruction contains an op code (operation
code) and zero or more operands.
Examples:
29
Assembly Language
30
Sample Program
5. int 20
31
Essential Tools
Assembler is a program that converts source-code programs
into a machine language (object file).
Linker joins together two or more object files and produces a
single executable file.
Debugger loads an executable program, displays the source
code, and lets the programmer step through the program one
instruction at a time, and display and modify memory.
Emulator allows you to load and run assembly language
programs, examine and change contents of registers. Example:
EMU8086
32
Why Learn Assembly Language?
Learn how a processor works
Explore the internal representation of data and
instructions
How to structure a program so it runs more efficiently.
33