1. Annexe 1 : Instructions Z Les notations Les codes

Documents pareils
Architecture des ordinateurs Introduction à l informatique

Étude des formes de pratiques de la gymnastique sportive enseignées en EPS à l école primaire

Jeux de caracte res et encodage (par Michel Michaud 2014)

Les intermédiaires privés dans les finances royales espagnoles sous Philippe V et Ferdinand VI

Peut-on perdre sa dignité?

Assembleur i8086. Philippe Preux IUT Informatique du Littoral. Année universitaire 95 96

Documentation SecurBdF

DU BINAIRE AU MICROPROCESSEUR - D ANGELIS CIRCUITS CONFIGURABLES NOTION DE PROGRAMMATION

VMware ESX : Installation. Hervé Chaudret RSI - Délégation Centre Poitou-Charentes

L AIDE AUX ATELIERS D ARTISTES :

Activités numériques [13 Points]

Sylvain Meille. Étude du comportement mécanique du plâtre pris en relation avec sa microstructure.

Assembleur. Faculté I&C, André Maurer, Claude Petitpierre

Corrigé du baccalauréat S Asie 21 juin 2010

CONJUGUÉ D'UN POINT PAR RAPPORT À UN TRIANGLE

INFORMATIONS DIVERSES

!" #$#% #"& ' ( &)(*"% * $*' )#""*(+#%(' $#),")- '(*+.%#"'#/* "'") $'

Port de Saint Laurent du Var - Barème des redevances Année /10

Exercices de géométrie

Architecture des ordinateurs TD1 - Portes logiques et premiers circuits

Diane-Gabrielle Tremblay (Dir.) Maryse Larivière

Conception de circuits numériques et architecture des ordinateurs

Programmation assembleur : aperçu

1S Modèles de rédaction Enoncés

Correction : E = Soit E = -1,6. F = 12 Soit F = y = 11. et G = -2z + 4y G = 2 6 = 3 G = G =

CONFIGURATION DE L AUTOMATE SIEMENS

Rappels d architecture

Le théorème de Thalès et sa réciproque

Les droites (d 1 ) et (d 2 ) sont sécantes en A Le point A est le point d intersection des 2 droites

Jeu d instructions NIOS II

Votre succès notre spécialité!

# $!%$!&$'(!(!()! $(! *)#%!"$'!+!%(!**&%',&-#.*!* /!01+'$*2333

Molécules et Liaison chimique

! " # $%& '( ) # %* +, -

Exercices - Nombres complexes : corrigé. Formes algébriques et trigonométriques, module et argument

CORRECTION EXERCICES ALGORITHME 1

Contraintes, particularités. 1. Généralités Gestion de la mémoire a. Type des variables et constantes... 2

GPA770 Microélectronique appliquée Exercices série A

CULTURE GÉNÉRALE Histoire de l Art (RC) Philosophie (FB)

LES ESCALIERS. Du niveau du rez-de-chaussée à celui de l'étage ou à celui du sous-sol.

Cours Informatique 1. Monsieur SADOUNI Salheddine

#"$&'$+*" (" ),'-"."'($ %($

Ordinateurs, Structure et Applications

Architecture des ordinateurs

Calcul différentiel sur R n Première partie

* très facile ** facile *** difficulté moyenne **** difficile ***** très difficile I : Incontournable

SPECIFICATION DES ECHANGES DE DONNEES INFORMATISES (E.D.I.)

ÉCONOMIE. Financement des PME : les banques en première ligne 5 PAGES D OFFRES D EMPLOI. Supplément Étudiant

10 juin 2010 Polytech Lille. Organisé par le Certia Interface, AQUIMER et le RMT (Réseau Mixte Technologique) Gestion durable des fluides.

SYSTEME D EXPLOITATION : MS-DOS

Structures algébriques

LE PRODUIT SCALAIRE ( En première S )

Calcul matriciel. Définition 1 Une matrice de format (m,n) est un tableau rectangulaire de mn éléments, rangés en m lignes et n colonnes.

Baccalauréat ES Polynésie (spécialité) 10 septembre 2014 Corrigé

Exo7. Calculs de déterminants. Fiche corrigée par Arnaud Bodin. Exercice 1 Calculer les déterminants des matrices suivantes : Exercice 2.

SOUS SOL PANOPLIE EF. MAITRISE D'OUVRAGE la justice du Burundi Bujumbura Tel Architectes mandataires Atelier D MAITRISE D'OEUVRE

Devoir 2 avec une figure en annexe, à renvoyer complétée. Corrigés d exercices sections 3 à 6. Liste des exos recommandés :

Représentation d un entier en base b

Les joints Standards COMPOSANTS LEANTEK ET UTILISATIONS. Tous nos joints standards sont disponibles en version ESD. Vis de fixation : S1-S4

Structure d un programme

Document de formation pour une solution complète d automatisation Totally Integrated Automation (T I A) MODULE A5 Programmation de la CPU 314C-2DP

La santé de votre entreprise mérite notre protection.

Limitations of the Playstation 3 for High Performance Cluster Computing

Chapitre 2. Matrices

Le Bulletin de l Enseignement de l AOF, une fenêtre sur le personnel d enseignement public, expatrié en Afrique Occidentale française ( ).

ILT. Interfacultair Instituut voor Levende Talen. Actes de communication. Serge Verlinde Evelyn Goris. Katholieke Universiteit Leuven

RECAPITULATIF PLANS Pour quelle école?

1. GENERALITES OBJET DU MARCHE DUREE DU MARCHE REGLEMENTATION SECURITE ASTREINTE ET GESTION DES

L innovation technologique des entreprises françaises au Brésil

CM2 L architecture MIPS32

Enoncé et corrigé du brevet des collèges dans les académies d Aix- Marseille, Montpellier, Nice Corse et Toulouse en Énoncé.

Planche n o 22. Fonctions de plusieurs variables. Corrigé

ASR1 TD7 : Un microprocesseur RISC 16 bits

sommaire Introduction Fiches des 41 soldats disparus Le devoir de mémoire lettre à la mère de Maurice Quemin Glossaire / Sources

Boîtier de contrôle et de commande avec EV 3/2 voies intégrée

Architecture des ordinateurs : Programmation des processeurs avec l'environnement «y86» (INF155)

Résumé Génération de code Le code intermédiaire

Principe de fonctionnement des périphériques des ordinateurs en vue de la programmation. Patrick Cégielski

+, -. / 0 1! " #! $ % % %! &' ( &))*

5 ème Chapitre 4 Triangles

Fiche IP n 4 Les Techniques de Recherche d Emploi

CHAPITRE 1. Suites arithmetiques et géometriques. Rappel 1. On appelle suite réelle une application de

ld. les salariés. !c. qui s'occupe des relations avec le gouvernement. lb. repose sur le principe de décentralisation. !c. le dirigeant.

Baccalauréat S Nombres complexes Index des exercices sur les complexes de septembre 1999 à juin 2012 Tapuscrit : DENIS VERGÈS

Endroit Texte existant Proposition Observations Index des 30 occurrences

NanoSense. Protocole Modbus de la sonde Particules P4000. (Version 01F)

Internet Protocol. «La couche IP du réseau Internet»

Instructions Installation ELLIS Business: Vidéo Local Windows 2003 & XP poste de Travail

Mathématiques appliquées à l informatique

La classification automatique de données quantitatives

Représentation géométrique d un nombre complexe

)*+,+(-,(-.//0,+( Introduction )-"""( 1!"!2( !"#$%&$'()*+,-.//01)2&)345)3-67.0) A(54B&9)<2%)%5$2'52%) ) ) )

Le centre de gestion a le plaisir de vous adresser les statistiques professionnelles élaborées à partir des dossiers de gestion 2013.

Séquence 10. Géométrie dans l espace. Sommaire

Guide méthodologique Utilisation de l état de contrôle de la participation aux bénéfices C22

Se déplacer en s adaptant à des environnements variés et incertains

Réseaux IUP2 / 2005 IPv6

Codage d information. Codage d information : -Définition-

Problèmes sur le chapitre 5

Transcription:

1. Annexe 1 : Instructions Z80 1.1. Les notations Lorsqu il manque une opérande à un mnémonique, il s agit implicitement de l accumulateur a. Par exemple : XOR b (A8h) signifie XOR a,b (a XOR b est placé dans a), CP c (B9h) signifie CP a,c (a-c est calculé afin de modifier les drapeaux). Autres conventions : Notation n nn dis (X), sauf (c) (c) c, nc, z, nz, pe, po, m, p a b, c, d, e, h, l bc, de, hl sp, pc, af f, r, i ix, iy af, bc, de, hl Signification Opérande à 1 octet Opérande à 2 octets Opérande à 1 octet, interprétée comme signée (valeur interprétée = -128 à +127 : voir paragraphe «Sauts relatifs» du chapitre «Le microprocesseur»). Sert aux sauts relatifs JR et DJNZ. Contenu de l adresse X (X sur 16 bits : nn, hl, ix+n, etc ). Valeur du port d adresse bc. Tests sur les drapeaux : c : réalise l instruction si le drapeau «retenue» (Carry) est à 1 nc : réalise l instruction si le drapeau «retenue» (Carry) est à 0 z : réalise l instruction si le drapeau «zéro» est à 1 nz : réalise l instruction si le drapeau «zéro» est à 0 pe : réalise l instruction si le drapeau «parité» (Parity Even) est à 1 po : réalise l instruction si le drapeau «parité» (Parity Odd) est à 0 m : réalise l instruction si le drapeau «signe» est à 1 (Minus) p : réalise l instruction si le drapeau «signe» est à 0 (Plus) Accumulateur Registres Registres-doublons de af, bc, de et hl. 1.2. Les codes Les opérations obtenues avec le préfixe FDh sont les mêmes qu avec DDh, si ce n est qu elle n agissent pas avec ix, mais avec iy. Valeurs «langage machine» Mnémoniques «assembleur» 0 00 0 0 0 0 0 0 0 0 NOP RLC b 1 01 0 0 0 0 0 0 0 1 LD bc,nn RLC c 2 02 0 0 0 0 0 0 1 0 LD (bc),a RLC d 3 03 0 0 0 0 0 0 1 1 INC bc RLC e 4 04 0 0 0 0 0 1 0 0 INC b RLC h 5 05 0 0 0 0 0 1 0 1 DEC b RLC l 6 06 0 0 0 0 0 1 1 0 LD b,n RLC (hl) RLC (ix+n) 7 07 0 0 0 0 0 1 1 1 RLCA RLC a 8 08 0 0 0 0 1 0 0 0 EX af,af' RRC b 9 09 0 0 0 0 1 0 0 1 ADD hl,bc RRC c ADD ix,bc 10 0A 0 0 0 0 1 0 1 0 LD a,(bc) RRC d

11 0B 0 0 0 0 1 0 1 1 DEC bc RRC e 12 0C 0 0 0 0 1 1 0 0 INC c RRC h 13 0D 0 0 0 0 1 1 0 1 DEC c RRC l 14 0E 0 0 0 0 1 1 1 0 LD c,n RRC (hl) RRC (ix+n) 15 0F 0 0 0 0 1 1 1 1 RRCA RRC a 16 10 0 0 0 1 0 0 0 0 DJNZ dis RL b 17 11 0 0 0 1 0 0 0 1 LD de,nn RL c 18 12 0 0 0 1 0 0 1 0 LD (de),a RL d 19 13 0 0 0 1 0 0 1 1 INC de RL e 20 14 0 0 0 1 0 1 0 0 INC d RL h 21 15 0 0 0 1 0 1 0 1 DEC d RL l 22 16 0 0 0 1 0 1 1 0 LD d,n RL (hl) RL (ix+n) 23 17 0 0 0 1 0 1 1 1 RLA RL a 24 18 0 0 0 1 1 0 0 0 JR dis RR b 25 19 0 0 0 1 1 0 0 1 ADD hl,de RR c ADD ix,de 26 1A 0 0 0 1 1 0 1 0 LD a,(de) RR d 27 1B 0 0 0 1 1 0 1 1 DEC de RR e 28 1C 0 0 0 1 1 1 0 0 INC e RR h 29 1D 0 0 0 1 1 1 0 1 DEC e RR l 30 1E 0 0 0 1 1 1 1 0 LD e,n RR (hl) RR (ix+n) 31 1F 0 0 0 1 1 1 1 1 RRA RR a 32 20 0 0 1 0 0 0 0 0 JR nz,dis SLA b 33 21 0 0 1 0 0 0 0 1 LD hl,nn SLA c LD ix,nn 34 22 0 0 1 0 0 0 1 0 LD (nn),hl SLA d LD (nn),ix 35 23 0 0 1 0 0 0 1 1 INC hl SLA e INC ix 36 24 0 0 1 0 0 1 0 0 INC h SLA h 37 25 0 0 1 0 0 1 0 1 DEC h SLA l 38 26 0 0 1 0 0 1 1 0 LD h,n SLA (hl) SLA (ix+n) 39 27 0 0 1 0 0 1 1 1 DAA SLA a 40 28 0 0 1 0 1 0 0 0 JR z,dis SRA b 41 29 0 0 1 0 1 0 0 1 ADD hl,hl SRA c ADD ix,ix 42 2A 0 0 1 0 1 0 1 0 LD hl,(nn) SRA d LD ix,(nn) 43 2B 0 0 1 0 1 0 1 1 DEC hl SRA e DEC ix 44 2C 0 0 1 0 1 1 0 0 INC l SRA h 45 2D 0 0 1 0 1 1 0 1 DEC l SRA l 46 2E 0 0 1 0 1 1 1 0 LD l,n SRA (hl) SRA (ix+n) 47 2F 0 0 1 0 1 1 1 1 CPL SRA a 48 30 0 0 1 1 0 0 0 0 JR nc,dis 49 31 0 0 1 1 0 0 0 1 LD sp,nn 50 32 0 0 1 1 0 0 1 0 LD (nn),a 51 33 0 0 1 1 0 0 1 1 INC sp 52 34 0 0 1 1 0 1 0 0 INC (hl) INC (ix+n) 53 35 0 0 1 1 0 1 0 1 DEC (hl) DEC (ix+n) 54 36 0 0 1 1 0 1 1 0 LD (hl),n LD (ix+n),n 55 37 0 0 1 1 0 1 1 1 SCF 56 38 0 0 1 1 1 0 0 0 JR c,dis SRL b 57 39 0 0 1 1 1 0 0 1 ADD hl,sp SRL c ADD ix,sp 58 3A 0 0 1 1 1 0 1 0 LD a,(nn) SRL d 59 3B 0 0 1 1 1 0 1 1 DEC sp SRL e

60 3C 0 0 1 1 1 1 0 0 INC a SRL h 61 3D 0 0 1 1 1 1 0 1 DEC a SRL l 62 3E 0 0 1 1 1 1 1 0 LD a,n SRL (hl) 63 3F 0 0 1 1 1 1 1 1 CCF SRL a 64 40 0 1 0 0 0 0 0 0 LD b,b BIT 0,b IN b,(c) 65 41 0 1 0 0 0 0 0 1 LD b,c BIT 0,c OUT (c),b 66 42 0 1 0 0 0 0 1 0 LD b,d BIT 0,d SBC hl,bc 67 43 0 1 0 0 0 0 1 1 LD b,e BIT 0,e LD (nn),bc 68 44 0 1 0 0 0 1 0 0 LD b,h BIT 0,h NEG 69 45 0 1 0 0 0 1 0 1 LD b,l BIT 0,l RET N 70 46 0 1 0 0 0 1 1 0 LD b,(hl) BIT 0,(hl) IM 0 LD b,(ix+n) BIT 0,(ix+n) 71 47 0 1 0 0 0 1 1 1 LD b,a BIT 0,a LD i,a 72 48 0 1 0 0 1 0 0 0 LD c,b BIT 1,b IN c,(c) 73 49 0 1 0 0 1 0 0 1 LD c,c BIT 1,c OUT (c),c 74 4A 0 1 0 0 1 0 1 0 LD c,d BIT 1,d ADC hl,bc 75 4B 0 1 0 0 1 0 1 1 LD c,e BIT 1,e LD bc,(nn) 76 4C 0 1 0 0 1 1 0 0 LD c,h BIT 1,h 77 4D 0 1 0 0 1 1 0 1 LD c,l BIT 1,l RET I 78 4E 0 1 0 0 1 1 1 0 LD c,(hl) BIT 1,(hl) LD c,(ix+n) BIT 1,(ix+n) 79 4F 0 1 0 0 1 1 1 1 LD c,a BIT 1,a LD r,a 80 50 0 1 0 1 0 0 0 0 LD d,b BIT 2,b IN d,(c) 81 51 0 1 0 1 0 0 0 1 LD d,c BIT 2,c OUT (c),d 82 52 0 1 0 1 0 0 1 0 LD d,d BIT 2,d SBC hl,de 83 53 0 1 0 1 0 0 1 1 LD d,e BIT 2,e LD (nn),de 84 54 0 1 0 1 0 1 0 0 LD d,h BIT 2,h 85 55 0 1 0 1 0 1 0 1 LD d,l BIT 2,l 86 56 0 1 0 1 0 1 1 0 LD d,(hl) BIT 2,(hl) IM 1 LD d,(ix+n) BIT 2,(ix+n) 87 57 0 1 0 1 0 1 1 1 LD d,a BIT 2,a LD a,i 88 58 0 1 0 1 1 0 0 0 LD e,b BIT 3,b IN e,(c) 89 59 0 1 0 1 1 0 0 1 LD e,c BIT 3,c OUT (c),e 90 5A 0 1 0 1 1 0 1 0 LD e,d BIT 3,d ADC hl,de 91 5B 0 1 0 1 1 0 1 1 LD e,e BIT 3,e LD de,(nn) 92 5C 0 1 0 1 1 1 0 0 LD e,h BIT 3,h 93 5D 0 1 0 1 1 1 0 1 LD e,l BIT 3,l 94 5E 0 1 0 1 1 1 1 0 LD e,(hl) BIT 3,(hl) IM 2 LD e,(ix+n) BIT 3,(ix+n) 95 5F 0 1 0 1 1 1 1 1 LD e,a BIT 3,a LD a,r 96 60 0 1 1 0 0 0 0 0 LD h,b BIT 4,b IN h,(c) 97 61 0 1 1 0 0 0 0 1 LD h,c BIT 4,c OUT (c),h 98 62 0 1 1 0 0 0 1 0 LD h,d BIT 4,d SBC hl,hl 99 63 0 1 1 0 0 0 1 1 LD h,e BIT 4,e LD (nn),hl 100 64 0 1 1 0 0 1 0 0 LD h,h BIT 4,h 101 65 0 1 1 0 0 1 0 1 LD h,l BIT 4,l 102 66 0 1 1 0 0 1 1 0 LD h,(hl) BIT 4,(hl) LD h,(ix+n) BIT 4,(ix+n) 103 67 0 1 1 0 0 1 1 1 LD h,a BIT 4,a RRD 104 68 0 1 1 0 1 0 0 0 LD l,b BIT 5,b IN l,(c) 105 69 0 1 1 0 1 0 0 1 LD l,c BIT 5,c OUT (c),l 106 6A 0 1 1 0 1 0 1 0 LD l,d BIT 5,d ADC hl,hl 107 6B 0 1 1 0 1 0 1 1 LD l,e BIT 5,e LD de,(nn) 108 6C 0 1 1 0 1 1 0 0 LD l,h BIT 5,h

109 6D 0 1 1 0 1 1 0 1 LD l,l BIT 5,l 110 6E 0 1 1 0 1 1 1 0 LD l,(hl) BIT 5,(hl) LD l,(ix+n) BIT 5,(ix+n) 111 6F 0 1 1 0 1 1 1 1 LD l,a BIT 5,a RLD 112 70 0 1 1 1 0 0 0 0 LD (hl),b BIT 6,b LD (ix+n),b 113 71 0 1 1 1 0 0 0 1 LD (hl),c BIT 6,c LD (ix+n),c 114 72 0 1 1 1 0 0 1 0 LD (hl),d BIT 6,d SBC hl,sp LD (ix+n),d 115 73 0 1 1 1 0 0 1 1 LD (hl),e BIT 6,e LD (nn),sp LD (ix+n),e 116 74 0 1 1 1 0 1 0 0 LD (hl),h BIT 6,h LD (ix+n),h 117 75 0 1 1 1 0 1 0 1 LD (hl),l BIT 6,l LD (ix+n),l 118 76 0 1 1 1 0 1 1 0 HALT BIT 6,(hl) BIT 6,(ix+n) 119 77 0 1 1 1 0 1 1 1 LD (hl),a BIT 6,a LD (ix+n),a 120 78 0 1 1 1 1 0 0 0 LD a,b BIT 7,b IN a,(c) 121 79 0 1 1 1 1 0 0 1 LD a,c BIT 7,c OUT (c),a 122 7A 0 1 1 1 1 0 1 0 LD a,d BIT 7,d ADC hl,sp 123 7B 0 1 1 1 1 0 1 1 LD a,e BIT 7,e LD sp,(nn) 124 7C 0 1 1 1 1 1 0 0 LD a,h BIT 7,h 125 7D 0 1 1 1 1 1 0 1 LD a,l BIT 7,l 126 7E 0 1 1 1 1 1 1 0 LD a,(hl) BIT 7,(hl) LD a,(ix+n) BIT 7,(ix+n) 127 7F 0 1 1 1 1 1 1 1 LD a,a BIT 7,a 128 80 1 0 0 0 0 0 0 0 ADD a,b RES 0,b 129 81 1 0 0 0 0 0 0 1 ADD a,c RES 0,c 130 82 1 0 0 0 0 0 1 0 ADD a,d RES 0,d 131 83 1 0 0 0 0 0 1 1 ADD a,e RES 0,e 132 84 1 0 0 0 0 1 0 0 ADD a,h RES 0,h 133 85 1 0 0 0 0 1 0 1 ADD a,l RES 0,l 134 86 1 0 0 0 0 1 1 0 ADD a,(hl) RES 0,(hl) ADD a,(ix+n) RES 0,(ix+n) 135 87 1 0 0 0 0 1 1 1 ADD a,a RES 0,a 136 88 1 0 0 0 1 0 0 0 ADC a,b RES 1,b 137 89 1 0 0 0 1 0 0 1 ADC a,c RES 1,c 138 8A 1 0 0 0 1 0 1 0 ADC a,d RES 1,d 139 8B 1 0 0 0 1 0 1 1 ADC a,e RES 1,e 140 8C 1 0 0 0 1 1 0 0 ADC a,h RES 1,h 141 8D 1 0 0 0 1 1 0 1 ADC a,l RES 1,l 142 8E 1 0 0 0 1 1 1 0 ADC a,(hl) RES 1,(hl) ADC a,(ix+n) RES 1,(ix+n) 143 8F 1 0 0 0 1 1 1 1 ADC a,a RES 1,a 144 90 1 0 0 1 0 0 0 0 SUB a,b RES 2,b 145 91 1 0 0 1 0 0 0 1 SUB a,c RES 2,c 146 92 1 0 0 1 0 0 1 0 SUB a,d RES 2,d 147 93 1 0 0 1 0 0 1 1 SUB a,e RES 2,e 148 94 1 0 0 1 0 1 0 0 SUB a,h RES 2,h 149 95 1 0 0 1 0 1 0 1 SUB a,l RES 2,l 150 96 1 0 0 1 0 1 1 0 SUB a,(hl) RES 2,(hl) SUB a,(ix+n) RES 2,(ix+n) 151 97 1 0 0 1 0 1 1 1 SUB a,a RES 2,a 152 98 1 0 0 1 1 0 0 0 SBC a,b RES 3,b 153 99 1 0 0 1 1 0 0 1 SBC a,c RES 3,c 154 9A 1 0 0 1 1 0 1 0 SBC a,d RES 3,d 155 9B 1 0 0 1 1 0 1 1 SBC a,e RES 3,e 156 9C 1 0 0 1 1 1 0 0 SBC a,h RES 3,h 157 9D 1 0 0 1 1 1 0 1 SBC a,l RES 3,l

158 9E 1 0 0 1 1 1 1 0 SBC a,(hl) RES 3,(hl) SBC a,(ix+n) RES 3,(ix+n) 159 9F 1 0 0 1 1 1 1 1 SBC a,a RES 3,a 160 A0 1 0 1 0 0 0 0 0 AND b RES 4,b LDI 161 A1 1 0 1 0 0 0 0 1 AND c RES 4,c CPI 162 A2 1 0 1 0 0 0 1 0 AND d RES 4,d INI 163 A3 1 0 1 0 0 0 1 1 AND e RES 4,e OUTI 164 A4 1 0 1 0 0 1 0 0 AND h RES 4,h 165 A5 1 0 1 0 0 1 0 1 AND l RES 4,l 166 A6 1 0 1 0 0 1 1 0 AND (hl) RES 4,(hl) AND (ix+n) RES 4,(ix+n) 167 A7 1 0 1 0 0 1 1 1 AND a RES 4,a 168 A8 1 0 1 0 1 0 0 0 XOR b RES 5,b LDD 169 A9 1 0 1 0 1 0 0 1 XOR c RES 5,c CPD 170 AA 1 0 1 0 1 0 1 0 XOR d RES 5,d IND 171 AB 1 0 1 0 1 0 1 1 XOR e RES 5,e OUTD 172 AC 1 0 1 0 1 1 0 0 XOR h RES 5,h 173 AD 1 0 1 0 1 1 0 1 XOR l RES 5,l 174 AE 1 0 1 0 1 1 1 0 XOR (hl) RES 5,(hl) XOR (ix+n) RES 5,(ix+n) 175 AF 1 0 1 0 1 1 1 1 XOR a RES 5,a 176 B0 1 0 1 1 0 0 0 0 OR b RES 6,b LDIR 177 B1 1 0 1 1 0 0 0 1 OR c RES 6,c CPIR 178 B2 1 0 1 1 0 0 1 0 OR d RES 6,d INIR 179 B3 1 0 1 1 0 0 1 1 OR e RES 6,e OTIR 180 B4 1 0 1 1 0 1 0 0 OR h RES 6,h 181 B5 1 0 1 1 0 1 0 1 OR l RES 6,l 182 B6 1 0 1 1 0 1 1 0 OR (hl) RES 6,(hl) OR (ix+n) RES 6,(ix+n) 183 B7 1 0 1 1 0 1 1 1 OR a RES 6,a 184 B8 1 0 1 1 1 0 0 0 CP b RES 7,b LDDR 185 B9 1 0 1 1 1 0 0 1 CP c RES 7,c CPDR 186 BA 1 0 1 1 1 0 1 0 CP d RES 7,d INDR 187 BB 1 0 1 1 1 0 1 1 CP e RES 7,e OTDR 188 BC 1 0 1 1 1 1 0 0 CP h RES 7,h 189 BD 1 0 1 1 1 1 0 1 CP l RES 7,l 190 BE 1 0 1 1 1 1 1 0 CP (hl) RES 7,(hl) CP (ix+n) RES 7,(ix+n) 191 BF 1 0 1 1 1 1 1 1 CP a RES 7,a 192 C0 1 1 0 0 0 0 0 0 RET nz SET 0,b 193 C1 1 1 0 0 0 0 0 1 POP bc SET 0,c 194 C2 1 1 0 0 0 0 1 0 JP nz,nn SET 0,d 195 C3 1 1 0 0 0 0 1 1 JP nn SET 0,e 196 C4 1 1 0 0 0 1 0 0 CALL nz,nn SET 0,h 197 C5 1 1 0 0 0 1 0 1 PUSH bc SET 0,l 198 C6 1 1 0 0 0 1 1 0 ADD a,n SET 0,(hl) SET 0,(ix+n) 199 C7 1 1 0 0 0 1 1 1 RST 0 SET 0,a 200 C8 1 1 0 0 1 0 0 0 RET z SET 1,b 201 C9 1 1 0 0 1 0 0 1 RET SET 1,c 202 CA 1 1 0 0 1 0 1 0 JP z,nn SET 1,d 203 CB 1 1 0 0 1 0 1 1 SET 1,e 204 CC 1 1 0 0 1 1 0 0 CALL z,nn SET 1,h 205 CD 1 1 0 0 1 1 0 1 CALL nn SET 1,l 206 CE 1 1 0 0 1 1 1 0 ADC a,n SET 1,(hl) SET 1,(ix+n)

207 CF 1 1 0 0 1 1 1 1 RST 8 SET 1,a 208 D0 1 1 0 1 0 0 0 0 RET nc SET 2,b 209 D1 1 1 0 1 0 0 0 1 POP de SET 2,c 210 D2 1 1 0 1 0 0 1 0 JP nc,nn SET 2,d 211 D3 1 1 0 1 0 0 1 1 OUT n,a SET 2,e 212 D4 1 1 0 1 0 1 0 0 CALL nc,nn SET 2,h 213 D5 1 1 0 1 0 1 0 1 PUSH de SET 2,l 214 D6 1 1 0 1 0 1 1 0 SUB n SET 2,(hl) SET 2,(ix+n) 215 D7 1 1 0 1 0 1 1 1 RST 16 SET 2,a 216 D8 1 1 0 1 1 0 0 0 RET c SET 3,b 217 D9 1 1 0 1 1 0 0 1 EXX SET 3,c 218 DA 1 1 0 1 1 0 1 0 JP c,nn SET 3,d 219 DB 1 1 0 1 1 0 1 1 IN a,n SET 3,e 220 DC 1 1 0 1 1 1 0 0 CALL c,nn SET 3,h 221 DD 1 1 0 1 1 1 0 1 SET 3,l 222 DE 1 1 0 1 1 1 1 0 SBC a,n SET 3,(hl) SET 3,(ix+n) 223 DF 1 1 0 1 1 1 1 1 RST 24 SET 3,a 224 E0 1 1 1 0 0 0 0 0 RET po SET 4,b 225 E1 1 1 1 0 0 0 0 1 POP hl SET 4,c POP IX 226 E2 1 1 1 0 0 0 1 0 JP po,nn SET 4,d 227 E3 1 1 1 0 0 0 1 1 EX (sp),hl SET 4,e EX (sp),ix 228 E4 1 1 1 0 0 1 0 0 CALL po,nn SET 4,h 229 E5 1 1 1 0 0 1 0 1 PUSH hl SET 4,l PUSH ix 230 E6 1 1 1 0 0 1 1 0 AND n SET 4,(hl) SET 4,(ix+n) 231 E7 1 1 1 0 0 1 1 1 RST 32 SET 4,a 232 E8 1 1 1 0 1 0 0 0 RET pe SET 5,b 233 E9 1 1 1 0 1 0 0 1 JP (hl) SET 5,c JP (ix) 234 EA 1 1 1 0 1 0 1 0 JP pe,nn SET 5,d 235 EB 1 1 1 0 1 0 1 1 EX de,hl SET 5,e 236 EC 1 1 1 0 1 1 0 0 CALL pe,nn SET 5,h 237 ED 1 1 1 0 1 1 0 1 SET 5,l 238 EE 1 1 1 0 1 1 1 0 XOR n SET 5,(hl) SET 5,(ix+n) 239 EF 1 1 1 0 1 1 1 1 RST 40 SET 5,a 240 F0 1 1 1 1 0 0 0 0 RET p SET 6,b 241 F1 1 1 1 1 0 0 0 1 POP af SET 6,c 242 F2 1 1 1 1 0 0 1 0 JP p,nn SET 6,d 243 F3 1 1 1 1 0 0 1 1 DI SET 6,e 244 F4 1 1 1 1 0 1 0 0 CALL p,nn SET 6,h 245 F5 1 1 1 1 0 1 0 1 PUSH af SET 6,l 246 F6 1 1 1 1 0 1 1 0 OR n SET 6,(hl) SET 6,(ix+n) 247 F7 1 1 1 1 0 1 1 1 RST 48 SET 6,a 248 F8 1 1 1 1 1 0 0 0 RET m SET 7,b 249 F9 1 1 1 1 1 0 0 1 LD sp,hl SET 7,c LD sp,ix 250 FA 1 1 1 1 1 0 1 0 JP m,nn SET 7,d 251 FB 1 1 1 1 1 0 1 1 EI SET 7,e 252 FC 1 1 1 1 1 1 0 0 CALL m,nn SET 7,h 253 FD 1 1 1 1 1 1 0 1 SET 7,l 254 FE 1 1 1 1 1 1 1 0 CP n SET 7,(hl) SET 7,(ix+n) 255 FF 1 1 1 1 1 1 1 1 RST 56 SET 7,a

1.3. Exemples Pour faciliter la compréhension, dans la colonne «Langage machine», les codes se rapportant à l opérateur sont en gras, ceux en maigre sont les opérandes. Langage machine Assembleur Commentaire (en hexadécimal) 0C INC c INC c est une instruction à part entière, dont l opérande est déjà comprise dans la traduction assembleur (registre c). Il n y a donc pas d opérande en langage machine après 0C. 0E 4A LD c,4ah LD c,n a deux opérandes : une comprise dans la traduction assembleur (registre c), l autre à définir (valeur n sur 1 octet). Donc 0E attend une opérande de 1 octet en langage machine, se situant en RAM juste après l octet d instruction : ici 4Ah. CB 0E RRC (hl) CB est un préfixe qui attend une instruction complémentaire : ici 0E. DD CB 4A 0E RRC (ix+4ah) Cas particulier du cumul de deux préfixes. 01 4A 21 LD bc,214ah LD bc,nn a deux opérandes : une comprise dans la traduction assembleur (registre bc), l autre à définir (valeur nn sur 2 octets). Donc 01 attend une opérande de 2 octets en langage machine. Dans ce cas, en langage machine, le 1 er octet de l opérande est l octet de poids faible, le 2 ème l octet de poids fort, d où l inversion dans la traduction assembleur. 10 FA DJNZ 6d Car FAh signé = -6d. Si suite à décrémentation, b est nul, alors le programme reprend 6 octets en amont dans la RAM. Sinon, il continue son cours normal. 4B LD c,e CB 4B BIT 1,e ED 4B 4A 21 LD bc,(214ah) ED 52 SBC hl,de DD 5E 52 LD e,(ix+52h)