summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/alu.h22
-rw-r--r--include/interne.h3
2 files changed, 21 insertions, 4 deletions
diff --git a/include/alu.h b/include/alu.h
index 128d9d4..079efcc 100644
--- a/include/alu.h
+++ b/include/alu.h
@@ -6,6 +6,9 @@ typedef struct couple {
Uint32 deb, fin;
} couple;
+typedef struct { char st, nd; } chars;
+
+
Uint32 AdditionNonSigne(Uint32 a, Uint32 b);
Uint32 AdditionSigne(Uint32 a, Uint32 b);
Uint32 SoustractionNonSigne(Uint32 a, Uint32 b);
@@ -18,7 +21,24 @@ Uint32 AND(Uint32 a, Uint32 b);
Uint32 OR(Uint32 a, Uint32 b);
Uint32 SHL(Uint32 a);
Uint32 SHR(Uint32 a);
-
+chars CreerChars(char x, char y);
+chars AddBit(char a, char b, char re);
+chars SubBit(char a, char b, char re);
+Uint32 NOT(Uint32 a);
+Uint32 OPP(Uint32 a);
+Uint32 Decalage(Uint32 a, char c);
+Uint32 NSHR(Uint32 a);
+Uint32 NSHL(Uint32 a);
+Uint32 SUB_SS(Uint32 a, Uint32 b);
+Uint32 ADD_SS(Uint32 a, Uint32 b);
+Uint32 ADD_UU(Uint32 a, Uint32 b);
+Uint32 SUB_UU(Uint32 a, Uint32 b);
+Uint32 MUL_UU(Uint32 a, Uint32 b);
+Uint32 MUL_SS(Uint32 a, Uint32 b);
+Uint32 DivMod_UU(Uint32 a, Uint32 b);
+Uint32 DivMod_SS(Uint32 a, Uint32 b);
+Uint32 NAND(Uint32 x, Uint32 y);
+Uint32 NOR(Uint32 x, Uint32 y);
extern int errRet, Rapide;
extern Uint32 SecondResult;
#endif
diff --git a/include/interne.h b/include/interne.h
index 337ec2d..623b163 100644
--- a/include/interne.h
+++ b/include/interne.h
@@ -24,9 +24,6 @@ char Or(char a, char b);
char Xor(char a, char b);
char Nand(char a, char b);
char Nor(char a, char b);
-void SetOverflow(int * o);
-void ResetOverflow(int * o);
-int Overflow(int o);
char OrWord(Uint32 a);
char AndWord(Uint32 a);
#endif \ No newline at end of file