3
3.4 Les modes d’adressage ................................................................................................... 29
3.4.1 Accès aux instructions ............................................................................................. 30
3. 4. 2 Accès aux données ................................................................................................ 30
3.4.3 Adressage immédiat ................................................................................................ 30
3.4.4 Adressage direct registre ......................................................................................... 31
3.4.5 Adressage direct mémoire (déplacement) ............................................................... 31
3.4.6 Adressage indirect mémoire .................................................................................... 32
3.4.6.1 Base ou index ............................................................................................................................. 32
3.4.6.2 Base et index .............................................................................................................................. 33
3.4.6.3 Base ou index + déplacement .................................................................................................... 34
3.4.6.4 Base + index + déplacement ..................................................................................................... 35
4 LE JEU D’INSTRUCTIONS ................................................................................................ 36
4.1 Généralité ....................................................................................................................... 36
4.2 Les instructions de base ................................................................................................. 36
4.2.1 L’identificateur ........................................................................................................ 36
4.2.2 MOV ........................................................................................................................ 36
4.3 Les instructions de pile ................................................................................................... 37
4.3.1 PUSH ....................................................................................................................... 37
4.3.2 POP .......................................................................................................................... 37
4.3.3 PUSHA (PUSH All) ................................................................................................ 37
4.3.4 POPA (POP All) ...................................................................................................... 37
4.3.5 PUSHAD (PUSH All) ............................................................................................. 37
4.3.6 POPAD (POP All) ................................................................................................... 38
4.4 Les instructions sur le registre indicateur ...................................................................... 38
4.4.1 PUSHF (PUSH Flag) .............................................................................................. 38
4.4.2 POPF (POP Flag) .................................................................................................... 38
4. 4. 3 LAHF (Load AH from Flag) ................................................................................. 38
4.4.4 SAHF (Store AH into Flag) .................................................................................... 38
4.5 Les instructions de transferts accumulateur .................................................................. 38
4. 5. 1 IN (INput from port) ............................................................................................. 38
4. 5. 2 OUT (OUTput to port) .......................................................................................... 38
4.5.3 XLAT ...................................................................................................................... 38
4.6 Les instructions arithmétiques ....................................................................................... 39
4.6.1 L’addition ................................................................................................................ 39
4.6.1.1 ADD ........................................................................................................................................... 39
4.6.1.2 ADC (Add with Carry) .............................................................................................................. 39
4.6.1.3 INC (INCrement) ....................................................................................................................... 39
4.6.2 La soustraction ........................................................................................................ 40
4.6.2.1 SUB (SUBstract) ........................................................................................................................ 40
4.6.2.2 SBB (SUBstract with Below) ..................................................................................................... 40
4.6.2.3 DEC (DECrement) .................................................................................................................... 40
4.6.3 La multiplication ..................................................................................................... 40
4.6.3.1 MUL (MULtiply) ....................................................................................................................... 40
4.6.3.2 IMUL (signed Integer MULtiply) .............................................................................................. 41
4.6.4 La division ............................................................................................................... 41
4.6.4.1 DIV (DIVise) .............................................................................................................................. 41
4.6.4.2 IDIV (signed Integer DIVision) ................................................................................................. 41
4.6.4.3 CMP (CoMPare) ....................................................................................................................... 41
4. 6. 5 Ajustement de données .......................................................................................... 42
4.6.5.1 AAA (Ascii Adjust for Addition) ................................................................................................ 42
4.6.5.2 AAS (Ascii Adjust for Subtraction) ............................................................................................ 42
4.6.5.3 AAM (Ascii Adjust for Multiplication) ...................................................................................... 42