diff options
author | biouman <> | 2001-04-15 16:57:11 +0000 |
---|---|---|
committer | biouman <> | 2001-04-15 16:57:11 +0000 |
commit | ec47858fe9883186fad904f71d43ec289fa01409 (patch) | |
tree | cddf54138fa0b4e11d649d7f5853d54c3f89a467 /lib/memoire.c | |
parent | 9ff8f76673e167cf3b14b1cd3f401441fd4397ef (diff) |
*** empty log message ***
Diffstat (limited to 'lib/memoire.c')
-rw-r--r-- | lib/memoire.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/memoire.c b/lib/memoire.c index 0bbd367..e191735 100644 --- a/lib/memoire.c +++ b/lib/memoire.c @@ -1,6 +1,13 @@ #include "memoire.h" #include "interne.h" #include "simulator.h" +#include "exceptions.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#else +#define _(x) x +#endif + /*****************************************/ /** **/ @@ -15,7 +22,7 @@ Uint32 LD(Uint32 offset) Reset(&i); if (offset < 0 || offset >= TAILLE_MEMOIRE) { - Set(&Err_Mem); + exception(1,_("Invalid Memory Adress")); return (i); } else { i = memoire_principale[offset]; @@ -27,7 +34,7 @@ Uint32 LD(Uint32 offset) void ST(Uint32 offset, Uint32 valeur) { if (offset < 0 || offset >= TAILLE_MEMOIRE) - Set(&Err_Mem); + exception(1,_("Invalid Memory Adress")); else memoire_principale[offset] = valeur; } |