summaryrefslogtreecommitdiff
path: root/lib/memoire.c
diff options
context:
space:
mode:
authorPixel <>2001-04-17 02:20:40 +0000
committerPixel <>2001-04-17 02:20:40 +0000
commit58dbd2ed918bb9e6f93aed076f8f3de92d41d2f9 (patch)
tree5a0333f391b042c2b25932fdc7fa2daed12140eb /lib/memoire.c
parent17d89e026ee39bd30f8604ab397708d9bceb2fbf (diff)
Grou
Diffstat (limited to 'lib/memoire.c')
-rw-r--r--lib/memoire.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/memoire.c b/lib/memoire.c
index db85ae9..b181015 100644
--- a/lib/memoire.c
+++ b/lib/memoire.c
@@ -95,6 +95,8 @@ static void AfficheBinaire(Uint32 valeur)
/* Ecrit le mot 'valeur' à l'offset 'offset' en mémoire */
void ST(Uint32 offset, Uint32 valeur)
{
+ Uint32 oldOC;
+
switch (offset) {
case 0xffffff02:
fgets(temp, BUFSIZ, stdin);
@@ -124,7 +126,9 @@ void ST(Uint32 offset, Uint32 valeur)
break;
case 0xffffff0a:
litchaine(temp, &memoire_principale[valeur]);
+ oldOC = LireRegistrePC();
ChargeBinaire(temp);
+ EcrireRegistrePC(oldOC);
default:
if (offset < 0 || offset >= TAILLE_MEMOIRE)
exception(1, _("Invalid Memory Adress"));