Académique Documents
Professionnel Documents
Culture Documents
Introduction À l'assembleur-2021-MATH-INFO-L2 GENIE-UNIKIN (Note Des Cours)
Introduction À l'assembleur-2021-MATH-INFO-L2 GENIE-UNIKIN (Note Des Cours)
LANGAGE D'ASSEMBLAGE
• Prérequis
o L'étudiant doit être capable de programmer en toute confiance dans au moins
un langage de programmation de haut niveau, tel que Java, C++ ou C.
High-level languages
Machine-independent Machine-level languages
Machine-specific Assembly language Low-level languages
Machine languages
Microprogram control
Hardware
High-Level Language: D = A * B + 10
Une déclaration dans une langue de haut niveau est généralement traduite
en plusieurs instructions au niveau de la machine
Hardware device driver. Language may not provide for direct Hardware access is straightforward and
hardware access. Even if it does, simple. Easy to maintain when programs
awkward coding techniques must often be are short and well documented.
used, resulting in maintenance difficulties.
Business application written for multiple Usually very portable. The source code Must be recorded separately for each
platforms(different operating systems). can be recompiled on each target platform, often using an assembler with a
operating system with minimal changes. different syntax. Difficult to maintain.
Embedded system and computer games Produces too much executable code, and Ideal, because the executable code is
requiring direct hardware access. may not run efficiently. small and runs quickly.
Système d’exploitation
Niveau 3
Microarchitecture Niveau 1
Chaque niveau cache les
Circuit logique Niveau 0 détails du niveau inférieur
Offset
Holds the beginning address
of variable as 16 bits
LEA
Load Effective Address
It is an indirect instruction
used as a pointer in which
first variable points the
address of second variable
• In programming?
1. Conditional Jump Mov dx, ‘a’
Mov ax, 2
2. Which number is lesser, greater, or equal Int 21h
1111111
1111111 255
0000011 3
0000010
00000001 1
1:When result is zero 00000001 1
0: When result is not zero 00000000 0
Int 21h
‘hello$’
DF
1: Strings automatically decrements the address
0: Strings doe not automatically decrement the address
L1:
Mov dl, ‘a’
Mov ah, 2
Int 21h
Jmp L1