diff options
author | biouman <> | 2001-04-16 14:08:26 +0000 |
---|---|---|
committer | biouman <> | 2001-04-16 14:08:26 +0000 |
commit | 27f796ab6a9f455bbd2a1c85088db5304cece75a (patch) | |
tree | 6b24b5ae3e9873ecf623045083f06890a1f74201 /lib/registre.c | |
parent | c3fd2994a3efec4aacf62fd7b0d092eec0c12236 (diff) |
*** empty log message ***
Diffstat (limited to 'lib/registre.c')
-rw-r--r-- | lib/registre.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/registre.c b/lib/registre.c index e77e9c1..4edb885 100644 --- a/lib/registre.c +++ b/lib/registre.c @@ -35,9 +35,9 @@ Uint32 LireRegistreFLAG(void) return (registre[REG_FLAG]); } -Uint32 LireRegistrePP(void) +Uint32 LireRegistreSP(void) { - return (registre[REG_PUSHPOP]); + return (registre[REG_STACKPTR]); } void EcrireRegistreRG(Uint32 val) @@ -60,9 +60,9 @@ void EcrireRegistreFLAG(Uint32 val) registre[REG_FLAG] = val; } -void EcrireRegistrePP(Uint32 val) +void EcrireRegistreSP(Uint32 val) { - registre[REG_PUSHPOP] = val; + registre[REG_STACKPTR] = val; } /* Lit le mot qui se trouve dans le registre 'numero_registre' */ @@ -171,3 +171,11 @@ void ResetParity(void) { registre[REG_FLAG] &= (VAL_MAX - 8); } + + +void ResetRegistres(void) +{ int i; + + for (i=0; i<NB_REGISTRES_PHYSIQUES;i++) + registre[i]=0; +}
\ No newline at end of file |