From 5e99304900cc743236a3420d5463a97d84a8c0ee Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Mon, 16 Apr 2001 16:22:22 +0000 Subject: Sauts relatifs --- include/simulator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/simulator.h b/include/simulator.h index 852fb7d..834a46c 100644 --- a/include/simulator.h +++ b/include/simulator.h @@ -1,5 +1,6 @@ #ifndef __SIMULATOR_H__ #define __SIMULATOR_H__ +#include "types.h" #define TAILLE_MEMOIRE 1024 /* Nombre maximum de mots que peut contenir la mémoire principale */ #define NB_REGISTRES_PHYSIQUES 64 /* Nombre réel de registres */ @@ -11,10 +12,9 @@ #define REG_STACKPTR 36 /* Numero du registre de Push-Pop */ #define ADD_SP (TAILLE_MEMOIRE-1) /* Emplacement de la pile */ -#include "types.h" -Uint32 memoire_principale[TAILLE_MEMOIRE]; -Uint32 registre[NB_REGISTRES_PHYSIQUES]; /* Registres classiques */ +extern Uint32 memoire_principale[TAILLE_MEMOIRE]; +extern Uint32 registre[NB_REGISTRES_PHYSIQUES]; /* Registres classiques */ Uint32 LireInstruction(void); void IncrementeCompteurOrdinal(void); Uint32 Adresse(Uint32 u, Uint32 instruction); -- cgit v1.2.3