summaryrefslogtreecommitdiff
path: root/lib/simulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/simulator.c')
-rw-r--r--lib/simulator.c10
1 files changed, 5 insertions, 5 deletions
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));