summaryrefslogtreecommitdiff
path: root/bin86-0.3/as/byteord.h
blob: 01d2d85a0da187de058c0b1d2ce71793e2c460a4 (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
/*
 *   bin86/as/byteord.h
 *
 *   Copyright (C) 1992 Bruce Evans
 */

/* byteord.h - byte order dependencies for C compiler, assembler, linker */

/* These are for the targets of everything and for linker source too. */

#ifdef I8086
# define BIG_ENDIAN 0
# define LONG_BIG_ENDIAN 0	/* except longs are back to front for Xenix */
#endif

#ifdef I80386
# define BIG_ENDIAN 0
# define LONG_BIG_ENDIAN 0
#endif

#ifdef MC6809
# define BIG_ENDIAN 1		/* byte order in words is high-low */
# define LONG_BIG_ENDIAN 1	/* byte order in longs is high-low */
#endif