summaryrefslogtreecommitdiff
path: root/lib/memoire.c
diff options
context:
space:
mode:
authorPixel <>2001-04-17 03:20:16 +0000
committerPixel <>2001-04-17 03:20:16 +0000
commita856126fe7e965bc80d17690732ee58343a655d3 (patch)
tree5464a45d4ef03e2efdcc7788de31226832a0a45c /lib/memoire.c
parentf12eda64018215310e5d563ebaf9fe4d46db24ff (diff)
Pouearf
Diffstat (limited to 'lib/memoire.c')
-rw-r--r--lib/memoire.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/memoire.c b/lib/memoire.c
index b181015..e38f0d7 100644
--- a/lib/memoire.c
+++ b/lib/memoire.c
@@ -75,13 +75,7 @@ static void litchaine(char *s, Uint32 * t)
while (*t) {
*(s++) = *(t++);
}
-}
-
-static void Affiche(Uint32 * t)
-{
- while (*t) {
- fprintf(stdout, "%c", (*t++));
- }
+ *s = 0;
}
static void AfficheBinaire(Uint32 valeur)
@@ -106,7 +100,8 @@ void ST(Uint32 offset, Uint32 valeur)
fprintf(stdout, "%c", valeur);
break;
case 0xffffff04:
- Affiche(&memoire_principale[valeur]);
+ litchaine(temp, &memoire_principale[valeur]);
+ fprintf(stdout, "%s", temp);
break;
case 0xffffff06:
fprintf(stdout, "%i", valeur);
@@ -129,6 +124,8 @@ void ST(Uint32 offset, Uint32 valeur)
oldOC = LireRegistrePC();
ChargeBinaire(temp);
EcrireRegistrePC(oldOC);
+ HasToRun = 1;
+ break;
default:
if (offset < 0 || offset >= TAILLE_MEMOIRE)
exception(1, _("Invalid Memory Adress"));