-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.h
36 lines (29 loc) · 944 Bytes
/
header.h
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
33
34
35
36
/**************************************************************************/
/* header.h : définitions propres à la construction de l'en-tête */
/**************************************************************************/
#define HEADSIZE 0x80
/*Structure de l'entête Amsdos*/
#define USER 0x00
#define USERL 1
#define NOM 0x1
#define NOML 11
#define TYPE 0x12
#define TYPEL 1
#define TAILLE 0x18
#define TAILLEL 2
#define TAILLE2 0x40
#define TAILLE2L 2
#define ADRLOAD 0x15
#define ADRIMPL 2
#define ADREXE 0x1a
#define ADREXEL 2
#define SOMME 0x43
#define SOMMEL 2
/* signatures */
unsigned int atoNb(char* val);
void getNomFichAms(char *nomFichAms,char *pathFichAms);
void affDump(unsigned char *buf);
void dos2Ams(char* pathFichDos,char* pathFichAms,
char* nomFichAms,char user, char type,
unsigned short adrExe,unsigned short adrLoad,char verbose);
void info(char* buff);