From d27f5513775730b3e8581fe06400c6122161a19a Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Mon, 16 Apr 2001 17:06:05 +0000 Subject: Blah --- lib/simulator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/simulator.c') diff --git a/lib/simulator.c b/lib/simulator.c index dd213fe..5ce27b7 100644 --- a/lib/simulator.c +++ b/lib/simulator.c @@ -62,15 +62,17 @@ Uint32 Adresse(Uint32 u, Uint32 instruction) void Initialisation(void) { int i; - +/* for (i = 0; i < TAILLE_MEMOIRE; i++) - Reset(&memoire_principale[i]); + Reset(&memoire_principale[i]); */ EcrireRegistreSP(ADD_SP); } void DecodeExec(Uint32 instruction, Uint32 entrypoint) { Uint32 champ_registre_resultat, val1, val2, resultat; + int test1, test2; + Uint32 val; /* valeur qui va etre stockée */ if (Opcode(instruction) & 0x80) { fpu(Opcode(instruction)); @@ -152,7 +154,7 @@ void DecodeExec(Uint32 instruction, Uint32 entrypoint) } if ((Opcode(instruction) & 2) && !(Opcode(instruction & 3))) { EcrireRegistreRG(resultat); - EcrireRegistreRD(SecondResultat); + EcrireRegistreRD(SecondResult); } else { EcrireRegistre(champ_registre_resultat, resultat); /* On écrit le résultat dans le registre de sortie */ } @@ -231,7 +233,6 @@ void DecodeExec(Uint32 instruction, Uint32 entrypoint) case 10: /* J[cond] */ case 11: - int test1, test2; switch (champ(Extension(instruction), 4)) { case 0: @@ -316,7 +317,6 @@ void DecodeExec(Uint32 instruction, Uint32 entrypoint) } break; case 14: /* PUSH */ - Uint32 val; /* valeur qui va etre stockée */ if (ValeurBit(Extension(instruction), 0) == 0) val = LireRegistre(Champ1(instruction)); -- cgit v1.2.3