Computer
Computer
Lulav saeed
Gulistan yusif
Hallat Hamza
Hassan masud Suprevised
Media Hassan mr.Abbas kh.ibrahim
Overall
.
Second generation :assembly language
•
During the period of 1956 to 1963 second generation of computers
were developed. The second generation computers emerged with
development of Transistors. The transistor was invented in 1947 by
three scientists J. Bardeen, H.W. Brattain and W. Shockley. A
transistor is a small device made up of semiconductor material like
germanium and silicon. Even though the Transistor were developed
in 1947 but was not widely used until the end of 50s. The transistor
made the second generation computers faster, smaller, cheaper,
more energy- efficient and more reliable than their first-generation
computers. Even though the transistor used in the computer
generated enormous amount of heat which ultimately would lead to
the damage of the computers hut was far better than vacuum tubes
Assembly Language
• An assembly language is a low-level programming language for
microprocessors and other programmable devices. It is not just a
single language, but rather a group of languages. An assembly
language implements a symbolic representation of the machine code
needed to program a given CPU architecture.
• An assembly language is the most basic programming language
available for any processor. With assembly language, a programmer
works only with operations that are implemented directly on the
physical CPU.
• Assembly languages generally lack high-level conveniences such
as variables and functions, and they are not portable between
various families of processors. They have the same structures and
set of commands as machine language, but allow a programmer to
use names instead of numbers. This language is still useful for
programmers when speed is necessary or when they need to carry
out an operation that is not possible in high-level languages.
Transistor
Designed to be pipelined
Examples: SPARC, MIPS, HP-PA, PowerPC
CISC Assembly Language
Executable instruction
- translated into machine code by assembler
- tells the machine what to do at execution
Assembly Language Program
Assembler directives
- tell assembler what to do when program
assembled
- are not translated into machine code,
they are non-executable.
E.g., EQU, DC, DS, ORG, END
How Assembler Works
Pass I:
- Search source program for symbol definitions
and enter these into symbol table
Pass II:
- Use symbol table constructed in Pass I and op-
code table to generate machine code equivalent
to source
How Assembler Works
• Two-pass assembler
- Source program scanned twice before
producing the object code
• LC: Assembler’s simulation of PC
– When an assembly program is assembled, LC is
used to keep track of the “memory location” at
which an instruction would be should that
instruction be executed.
– So that machine code can be generated correctly
from assembly code.
Advantages of Assembly Language