#define FS_FIXUP 0x80
#define FS_SEGRELATIVE 0x40
#define FS_LOCATION(x) ((x & 0x3c) >> 2)
#define FS_OFFSET(x,y) (((x & 3) << 8) + (y))

#define FI_FRAMEABSENT 0x80
#define FI_TARGETABSENT 0x8
#define FI_FRAME(x) ((x & 0x70) >> 4)
#define FI_TARGET(x) ((x & 7))

#define LO_8BIT 0
#define LO_16BIT 1
#define LO_SELECT 2
#define LO_FARPTR16 3
#define LO_HIGHORDER 4
#define LO_LOADER16 5
#define LO_32BIT 9
#define LO_FARPTR32 11
#define LO_LOADER32 13

#define TT_SEGDEF 0
#define TT_GRPDEF 1
#define TT_EXTDEF 2
#define TT_SEGONLY 4
#define TT_GRPONLY 5
#define TT_EXTONLY 6

#define FE_SEGDEF 0
#define FE_GRPDEF 1
#define FE_EXTDEF 2
#define FE_DATA 4
#define FE_TARGET 5

#include "fixup.p"