From 461aecf5c08b5688692cf51b4ec358b96a4ba95d Mon Sep 17 00:00:00 2001 From: biouman <> Date: Sun, 15 Apr 2001 17:49:16 +0000 Subject: *** empty log message *** --- lib/simulator.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/simulator.c') 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 -- cgit v1.2.3