summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/simulator.c12
-rw-r--r--po/ProjetArchi.pot18
2 files changed, 16 insertions, 14 deletions
diff --git a/lib/simulator.c b/lib/simulator.c
index ea3b142..f2749e0 100644
--- a/lib/simulator.c
+++ b/lib/simulator.c
@@ -181,11 +181,13 @@ void DecodeExec(Uint32 instruction)
break;
}
}
- if ((Opcode(instruction) & 2)
- && !(Opcode(instruction & 3))) {
- EcrireRegistreRG(resultat);
- EcrireRegistreRD(SecondResult);
- } else {
+ switch (Opcode(instruction)) {
+ case 2:
+ case 3:
+ EcrireRegistreRD(resultat);
+ EcrireRegistreRG(SecondResult);
+ break;
+ default:
EcrireRegistre(champ_registre_resultat, resultat); /* On écrit le résultat dans le registre de sortie */
}
break;
diff --git a/po/ProjetArchi.pot b/po/ProjetArchi.pot
index 88e2640..a27e071 100644
--- a/po/ProjetArchi.pot
+++ b/po/ProjetArchi.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-04-17 11:23+0200\n"
+"POT-Creation-Date: 2001-04-23 20:56+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -531,19 +531,19 @@ msgid "Adresse: Unmatched Addr Field"
msgstr ""
#. arg2 = imm32
-#: lib/simulator.c:255
+#: lib/simulator.c:257
msgid "MOV: Memory to Memory Forbidden On This Type Of Processor"
msgstr ""
-#: lib/simulator.c:388
+#: lib/simulator.c:390
msgid "DecodeExec: Invalid Opcode"
msgstr ""
-#: lib/simulator.c:444
+#: lib/simulator.c:446
msgid "Shutdown requested"
msgstr ""
-#: lib/simulator.c:446
+#: lib/simulator.c:448
msgid ""
"Help:\n"
"G: go\n"
@@ -552,22 +552,22 @@ msgid ""
"Q: quit\n"
msgstr ""
-#: lib/simulator.c:479
+#: lib/simulator.c:481
#, c-format
msgid "Opening file %s"
msgstr ""
#. verification de la signature
-#: lib/simulator.c:483
+#: lib/simulator.c:485
msgid "Invalid Signature"
msgstr ""
-#: lib/simulator.c:487
+#: lib/simulator.c:489
#, c-format
msgid "Loading file %s"
msgstr ""
-#: lib/simulator.c:521
+#: lib/simulator.c:523
#, c-format
msgid "Executing file %s"
msgstr ""