diff options
author | biouman <> | 2001-04-15 02:12:11 +0000 |
---|---|---|
committer | biouman <> | 2001-04-15 02:12:11 +0000 |
commit | 62480cd55b67e10128b9a49821d94c3c5117830f (patch) | |
tree | 6139c8a867012d60f766d38085455f2cb1c156ad /include/registre.h | |
parent | 0aca28afe35e25329bd8d680b532ccf78d4e4557 (diff) |
mergeage de la branche simulateur avec la branche asm
Diffstat (limited to 'include/registre.h')
-rw-r--r-- | include/registre.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/registre.h b/include/registre.h new file mode 100644 index 0000000..e7b9ff6 --- /dev/null +++ b/include/registre.h @@ -0,0 +1,36 @@ +#ifndef __REGISTRE_H__ +#define __REGISTRE_H__ + +#include "archi.h" + +Uint32 LireRegistreRG(void); +Uint32 LireRegistreRD(void); +Uint32 LireRegistrePC(void); +Uint32 LireRegistreFLAG(void); +Uint32 LireRegistrePP(void); + +void EcrireRegistreRG(Uint32 val); +void EcrireRegistreRD(Uint32 val); +void EcrireRegistrePC(Uint32 val); +void EcrireRegistreFLAG(Uint32 val); +void EcrireRegistrePP(Uint32 val); + +Uint32 LireRegistre(Uint32 champ_registre); + +void EcrireRegistre(Uint32 champ_registre, Uint32 valeur); + +int Overflow(void); +int Zero(void); +int Sign(void); +int Parity(void); + +void SetOverflow(void); +void SetZero(void); +void SetSign(void); +void SetParity(void); + +void ResetOverflow(void); +void ResetZero(void); +void ResetSign(void); +void ResetParity(void); +#endif
\ No newline at end of file |