summaryrefslogtreecommitdiff
path: root/include/interne.h
blob: 337ec2db91516e7e079bb872bdea9ebdd55f89f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __INTERNE_H__
#define __INTERNE_H__
#include "types.h"
#define VAL_MAX 4294967295
void Reset(Uint32 * i);
void Set(Uint32 * i);
void ResetBit(Uint32 * i, int position);
void SetBit(Uint32 * i, int position);
int ValeurBit(Uint32 nombre, int position);
void Uint32toBin(Uint32 i);
Uint32 champ(Uint32 nombre, int taille);
Uint32 Opcode(Uint32 ins);
Uint32 Extension(Uint32 ins);
Uint32 Champ1(Uint32 ins);
Uint32 Champ2(Uint32 ins);
Uint32 Champ3(Uint32 ins);
Uint32  ZERO(void);
Uint32  ONE(void);
void    AffecteBit(Uint32 * a, char v, int position);
int     Neg(Uint32 a);
char    Not(char a);
char    And(char a, char b);
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