summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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) {