Microprocessor and Assembly Language: Lecture-1-Intrduction
Microprocessor and Assembly Language: Lecture-1-Intrduction
Microprocessor and Assembly Language: Lecture-1-Intrduction
ASSEMBLY LANGUAGE
LECTURE-1-INTRDUCTION
MUHAMMAD HAFEEZ
DEPARTMENT OF COMPUTER SCIENCE
GC UNIVERSITY LAHORE
TODAY’S AGENDA
Introduction to Course
Background-Prerequisites
Number System
Memory
MY INTRODUCTION
Office: Room-103
Course Blog: csience1234.wordpress.com
Email: hafeez192@gmail.com
COURSE INTRODUCTION
Reference Material:
Google It
Taste It
COURSE DESCRIPTION
This is a semester long course introducing
fundamentals of a computer organization.
Primarily the course focus on Assembly
Language for the Intel x86 series of chips
which is the heart of the IBM PC.
Assembly Language is a link between
microprocessor and High Level Language
Write, Understand and Debug a Program
written in Assembly Language
Control I/O Devices
COURSE PREREQUISITES
Digital Logic Design
Minimum familiarity with IBM PC and MS-
DOS
PROCESSOR
UNDERSTANDING
Bottom-Up View
A Programmer’s View
Study tasks that processor executes to execute a
HLL program
Learn the Set of very basic steps processor
performs – Instruction Set
Can be Learned at Machine Level – difficult to
understand
Assembly Language Level – Symbolic equivalent to
machine level instructions
PROCESSOR
UNDERSTANDING
Top-Down View
Binary Addition
Binary Subtraction
Binary Multiplication
Binary Division
UNSIGNED INTEGER
NUMBER STORAGE SIZE IN
MEMORY
Standard Sizes
Another way
CONVERTING
HEXADECIMAL VALUES
UPTO 8 DIGITS
CONVERTING DECIMAL TO
HEXADECIMAL
21 / 16 = 1, rem 5
-1
C6 75
A2 47
24 2E
5ABAH – 2A91H
Use 2’s complement to solve it
RANGE OF SIGNED
INTEGERS
MSB is reserved for Sign; this factor limits the range
Another Observation:
CR = Carriage Return
LF = Line Feed (Cursor Moved one line below)
SPC = Blank Space
TEXT FILES USING ASCII
CHARACTER SET
Text Files contain printable and non-printable ASCII
Characters
Different OS represent non-printable characters
(control characters) i.e. moving to cursor to start of
line through different ways,
Windows: <CR>+<LF>
UNIX: <LF>
MAC: <CR>
Origin of problem when we move text files from one
OS to other
CHARACTER STORAGE
ASCII (0-127)
Extended ASCII (0-255)
Uni-Code (0-65,535)
QUESTIONS
????????????????????????