-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmixit.h
More file actions
49 lines (39 loc) · 1.09 KB
/
mixit.h
File metadata and controls
49 lines (39 loc) · 1.09 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef MIXIT_H
#define MIXIT_H
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#if defined(WIN32)
#include <io.h>
#endif
#if LINUX
#include <unistd.h>
#endif
#include "formats.h"
typedef uint32_t LogicalAddr;
extern int noisy;
extern int debug;
extern int noDate;
#define DOING_UNDEFINED (0)
#define DOING_IN_CMD (1)
#define DOING_OUT_CMD (2)
#define DOING_OUTPUT (4)
extern int whatWeAreDoing;
extern FILE *errFile;
#define in(l,m,h) ( ((l) <= (m)) && ((m) <= (h)))
#define byte_of(x) ( (x) & 0xFF )
#define PUT_BUF( ptr, byte ) ( *ptr++ = (uint8_t)byte )
#include "port.h"
#include "image.h"
#include "gpf.h"
#include "formats.h"
#include "hexutl.h"
#include "prototyp.h"
extern BUF inspec; /* accepted file specs for MIXIT routines*/
extern BUF outspec; /* accepted file specs for MIXIT routines*/
extern GPF outgpf; /* environment for getfile() / putfile() */
extern BUF filespec; /* filespec we will collect EXACTLY one of*/
extern char *error2str( int num );
#endif