summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbiouman <>2001-04-15 17:49:16 +0000
committerbiouman <>2001-04-15 17:49:16 +0000
commit461aecf5c08b5688692cf51b4ec358b96a4ba95d (patch)
tree818371ca6b894956faee1839c55a5aec87cba12f /lib
parent2317325a463b1cd52ee0a9444ec1a70064d4531c (diff)
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r--lib/simulator.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/simulator.c b/lib/simulator.c
index 211e9de..2bed0b7 100644
--- a/lib/simulator.c
+++ b/lib/simulator.c
@@ -12,6 +12,7 @@
#include "registre.h"
#include "memoire.h"
#include "fpu.h"
+#include "exceptions.h"
@@ -47,8 +48,8 @@ Uint32 Adresse(Uint32 u, Uint32 instruction)
case 3:
IncrementeCompteurOrdinal();
return (LireRegistre(Champ3(instruction)) + LireInstruction()); /* Adresse dans registre + decalage de nouvelle instruction */
- default: /* Il exige une loge... */
- return (0);
+ default:
+ exception(1,_("Adresse: Unmatched Addr Field"));
}
}
@@ -296,7 +297,7 @@ void Traitement(void)
}
}
-void Debogueur(void) // transformer en affiche reg
+void AfficheReg(void) // affiche reg
{
int i,j;
@@ -315,3 +316,7 @@ void Debogueur(void) // transformer en affiche reg
printf("\n");
}
+void Debogueur(void) {
+AfficheReg();
+
+} \ No newline at end of file