summaryrefslogtreecommitdiff
path: root/lib/registre.c
diff options
context:
space:
mode:
authorPixel <>2001-04-16 15:12:16 +0000
committerPixel <>2001-04-16 15:12:16 +0000
commite09044e963015cf672d0f992264ee1563717602a (patch)
tree1a55d7d5e46401a41ca7bc24e597d90b0b720601 /lib/registre.c
parent3953a2906211a6c0007079dcafe66aa372ab33d1 (diff)
Indentation
Diffstat (limited to 'lib/registre.c')
-rw-r--r--lib/registre.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/registre.c b/lib/registre.c
index 4edb885..2d88d45 100644
--- a/lib/registre.c
+++ b/lib/registre.c
@@ -73,7 +73,7 @@ Uint32 LireRegistre(Uint32 champ_registre)
if (ValeurBit(champ_registre, 5) == 0) { /* Test du bit S */
Reset(&i);
if (champ_registre < 0 || champ_registre >= NB_REGISTRES_UTILISABLES) { /* Si on voudrait diminuer le nombre de registres */
- exception(1,_("Invalid Register Descriptor")); /* Il n'y a que 32 registres */
+ exception(1, _("Invalid Register Descriptor")); /* Il n'y a que 32 registres */
return (i);
}
i = registre[champ_registre]; /* Registre classique */
@@ -89,7 +89,7 @@ Uint32 LireRegistre(Uint32 champ_registre)
case 3:
return (LireRegistreFLAG());
default:{
- exception(1,_("Invalid Register Descriptor"));
+ exception(1, _("Invalid Register Descriptor"));
return (0);
}
}
@@ -103,7 +103,7 @@ void EcrireRegistre(Uint32 champ_registre, Uint32 valeur)
if (ValeurBit(champ_registre, 5) == 0) { /* Test du bit S */
Reset(&i);
if (champ_registre < 0 || champ_registre >= NB_REGISTRES_UTILISABLES)
- exception(1,_("Invalid Register Descriptor")); /* Il n'y a que 32 registres */
+ exception(1, _("Invalid Register Descriptor")); /* Il n'y a que 32 registres */
else
registre[champ_registre] = valeur; /* Registre classique */
} else /* Registre spécial */
@@ -117,7 +117,7 @@ void EcrireRegistre(Uint32 champ_registre, Uint32 valeur)
case 3:
EcrireRegistreFLAG(valeur);
default:
- exception(1,_("Invalid Register Descriptor"));
+ exception(1, _("Invalid Register Descriptor"));
}
}
@@ -173,9 +173,10 @@ void ResetParity(void)
}
-void ResetRegistres(void)
-{ int i;
+void ResetRegistres(void)
+{
+ int i;
- for (i=0; i<NB_REGISTRES_PHYSIQUES;i++)
- registre[i]=0;
-} \ No newline at end of file
+ for (i = 0; i < NB_REGISTRES_PHYSIQUES; i++)
+ registre[i] = 0;
+}