summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <>2001-04-17 01:04:24 +0000
committerPixel <>2001-04-17 01:04:24 +0000
commit17d89e026ee39bd30f8604ab397708d9bceb2fbf (patch)
tree29e7053661656203ae56db7439de9b5c8de293b1 /lib
parent4f2aa7d436bb50cef3f9a551f79fa03ea275ab77 (diff)
GRou
Diffstat (limited to 'lib')
-rw-r--r--lib/memoire.c2
-rw-r--r--lib/simulator.c11
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/memoire.c b/lib/memoire.c
index ae79d18..db85ae9 100644
--- a/lib/memoire.c
+++ b/lib/memoire.c
@@ -28,7 +28,7 @@ void InitMemoire(void)
memoire_principale = (Uint32 *) Emalloc(TAILLE_MEMOIRE * sizeof(Uint32));
}
-void FreeMemoire(void)
+void FlushMemoire(void)
{
free(memoire_principale);
}
diff --git a/lib/simulator.c b/lib/simulator.c
index 61c96d5..4e77c6b 100644
--- a/lib/simulator.c
+++ b/lib/simulator.c
@@ -3,12 +3,7 @@
#include <string.h>
#include <errno.h>
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#else
-#define _(x) x
-#endif
-
#include "alu.h"
#include "simulator.h"
#include "interne.h"
@@ -93,6 +88,10 @@ void Initialisation(void)
EcrireRegistreSP(ADD_SP); /* initialisation du stack pointer */
}
+void Flush(void) {
+ FlushMemoire();
+}
+
void DecodeExec(Uint32 instruction)
{
Uint32 champ_registre_resultat, val1, val2, resultat;
@@ -431,7 +430,7 @@ void Debogueur(void)
}
void Traitement(Uint32 entrypoint)
-{ /* ******************** FIXMI ************************* */
+{
Uint32 instruction;
while (HasToRun) {