Lecture 01
Lecture 01
Assembler
Library File
Linker
Hardware
Why we study Assembly Language?
❖Better understanding of hardware and Software interaction
❖To learn how high-level language code gets translated into machine code.
❖The programmer can write the code to access registers and retrieve the
memory address of pointers and values.
❖Better processing time than other language program.
❖ To speed up applications by direct access to hardware (Writing directly to
I/O ports instead of doing a system call) or Increase efficiency &
performance.
❖Assembly language is useful for implementing system software such as
Device Drivers.
❖ Also useful for small embedded system applications
What is assembly language?
❖Computer Programming Language. ( HL, AL, & LL Languages)
❖Low level / Symbolically Programming Language.
Machine Language
❖Each CPU can only execute its own machine language
❖Machine Language is stored in binary code - a series of 0's and 1's
❖Very difficult to write ML programs!
❖Each family of CPU's has its own distinct machine language
Assembly Language
❖ Assembly Language is a low level programming language.
❖It is mainly depends on the architecture of computer and sometimes to an operating
system.
❖ Using mnemonics (ADD, MOV, MUL) instead of machine code.
❖It is also known as Symbolical Language
❖One ALC statement usually translates to 1 ML statement
❖Just as each computer has its own Machine Language - each computer has its own
Assembler Language.
❖ Close to human language
❖Assembler is a language translator that translate the assembly code into machine code .
❖Each CPU has own assembly language.
THE END.