summaryrefslogtreecommitdiff
path: root/include/alu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/alu.h')
-rw-r--r--include/alu.h22
1 files changed, 21 insertions, 1 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