summaryrefslogtreecommitdiff
path: root/lib/memoire.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memoire.c')
-rw-r--r--lib/memoire.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/memoire.c b/lib/memoire.c
index ee99983..48daf0e 100644
--- a/lib/memoire.c
+++ b/lib/memoire.c
@@ -2,6 +2,7 @@
#include "interne.h"
#include "simulator.h"
#include "exceptions.h"
+#include "terminal.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#else
@@ -10,6 +11,8 @@
char temp[BUFSIZ];
+Uint32 * memoire_principale;
+
/*****************************************/
/** **/
@@ -28,7 +31,9 @@ Uint32 LD(Uint32 offset)
case 0xffffff01:
return (fgetc(stdin));
case 0xffffff05:
- fscanf(stdin, "%i", &i);
+ clearterm();
+ fscanf(input, "%i", &i);
+ initterm();
return i;
default:
if (offset >= TAILLE_MEMOIRE) {