summaryrefslogtreecommitdiff
path: root/include/registre.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/registre.h')
-rw-r--r--include/registre.h36
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