/******************************************************************************
*
* project name:    TIGCC Tools Suite
* file name:       ttunpack.h
* initial date:    01/02/2001
* author:          thomas.nussbaumer@gmx.net
*
* description:     defines for exepack functionalities including unpack routine
*                  (complete rewrite of TIGCC Tools Suite header file)
*
* $Id: ttunpack.h,v 1.4 2002/03/28 21:17:28 tnussb Exp $
*
******************************************************************************/
#ifndef __TTUNPACK_H__
#define __TTUNPACK_H__

typedef struct {
    unsigned char  osize_lo;   // original size lowbyte
    unsigned char  osize_hi;   // original size highbyte
    unsigned char  magic1;     // must be equal to TTUNPACK_MAGIC1
    unsigned char  magic2;     // must be equal to TTUNPACK_MAGIC2
    unsigned char  csize_lo;   // compressed size lowbyte
    unsigned char  csize_hi;   // compressed size lowbyte
    unsigned char  esc1;       // escape >> (8-escBits)
    unsigned char  notused3;
    unsigned char  notused4;
    unsigned char  esc2;       // escBits
    unsigned char  gamma1;     // maxGamma + 1
    unsigned char  gamma2;     // (1<<maxGamma)
    unsigned char  extralz;    // extraLZPosBits
    unsigned char  notused1;
    unsigned char  notused2;
    unsigned char  rleentries; // rleUsed
} TTUNPACK_HEADER;

#define TTUNPACK_MAGIC1 0x54
#define TTUNPACK_MAGIC2 0x50

#define ttunpack_size(_p_)  ((unsigned short)(((TTUNPACK_HEADER*)(_p_))->osize_lo | (((TTUNPACK_HEADER*)(_p_))->osize_hi << 8)))
#define ttunpack_valid(_p_) (((TTUNPACK_HEADER*)(_p_))->magic1 == TTUNPACK_MAGIC1 && ((TTUNPACK_HEADER*)(_p_))->magic2 == TTUNPACK_MAGIC2)

#define TTUNPACK_OKAY             0
#define TTUNPACK_NOESCFOUND     248
#define TTUNPACK_ESCBITS        249
#define TTUNPACK_MAXGAMMA       250
#define TTUNPACK_EXTRALZP       251
#define TTUNPACK_NOMAGIC        252
#define TTUNPACK_OUTBUFOVERRUN  253
#define TTUNPACK_LZPOSUNDERRUN  254

#define NEWEST_UNPACK_HEXARRAY

#if defined(NEWEST_UNPACK_HEXARRAY)
#define ttunpack_decompress ((unsigned short(*)(unsigned char*,unsigned char*))(unsigned short[]){\
0x206f,0x0004,0x226f,0x0008,0x48e7,0x010c,0x303c,0x0200,0x4e41,0x3f00,\
0x6100,0x0010,0x3200,0x301f,0x4e41,0x3001,0x4cdf,0x3080,0x4e75,0x4e56,\
0xfff4,0x48e7,0x1e30,0x2a09,0x0c28,0x0054,0x0002,0x6708,0x303c,0x00fc,\
0x6000,0x021e,0x0c28,0x0050,0x0003,0x66f0,0x0c28,0x0008,0x000a,0x6708,\
0x303c,0x00fa,0x6000,0x0206,0x0c28,0xff80,0x000b,0x66f0,0x4240,0x1028,\
0x0009,0x3d40,0xfff8,0x303c,0x00f9,0x0c6e,0x0008,0xfff8,0x6200,0x01e6,\
0x4240,0x1028,0x000c,0x3d40,0xfff6,0x303c,0x00fb,0x0c6e,0x0004,0xfff6,\
0x6200,0x01ce,0x4240,0x1028,0x0006,0x3640,0x7008,0x906e,0xfff8,0x3d40,\
0xfffa,0x43e8,0x000f,0x2d49,0xfffc,0x4fef,0xfefc,0x2a4f,0x327c,0x0001,\
0x4217,0x4202,0x1002,0x4880,0x7201,0xe169,0x6f0c,0x3001,0x1b82,0x9000,\
0x5249,0x5340,0x66f6,0x5202,0x0c02,0x0007,0x6fe2,0x7000,0x1028,0x000f,\
0x49f0,0x0810,0x3e3c,0x0080,0x4a6e,0xfff8,0x6600,0x0162,0x380b,0xb84b,\
0x6718,0x302e,0xfffa,0xe16c,0x2445,0x5285,0x3200,0x41fa,0x01c6,0x4e90,\
0x8800,0x1484,0x60da,0x426e,0xfff4,0x45fa,0x016a,0x4e92,0x3c00,0x0c40,\
0x0001,0x6600,0x00e2,0x4240,0x1014,0xc047,0x6700,0x00a4,0xe21f,0x6402,\
0x528c,0x4240,0x1014,0xc047,0x676a,0xe21f,0x6402,0x528c,0x4e92,0x3800,\
0x0c40,0x007f,0x6240,0x4e92,0x0c40,0x001f,0x6224,0x0280,0x0000,0xffff,\
0x206e,0xfffc,0x1030,0x0800,0x0240,0x00ff,0x4242,0x2245,0x5285,0x12c0,\
0x5242,0xb842,0x64f4,0x6000,0xff74,0x3600,0x0643,0xffe0,0xe74b,0x7203,\
0x41fa,0x0148,0x4e90,0x8043,0x60da,0x0644,0xff80,0xe34c,0x7201,0x41fa,\
0x0136,0x4e90,0x8840,0x4e92,0x5340,0xe148,0x8840,0x60a6,0xe21f,0x6402,\
0x528c,0x47fa,0x011e,0x322e,0xfff8,0x4e93,0x3600,0x302e,0xfffa,0xe16c,\
0x2445,0x5285,0x3200,0x4e93,0x8800,0x1484,0x3643,0x6000,0xff1c,0xe21f,\
0x6402,0x528c,0x41fa,0x0094,0x4e90,0x3200,0x0a41,0x00ff,0x4242,0x7000,\
0x3001,0x2045,0x91c0,0x102e,0xfff5,0xd028,0xffff,0x2245,0x5285,0x12c0,\
0x5242,0xbc42,0x64e4,0x6000,0xfee8,0x4e92,0x3600,0x5343,0x0c43,0x00fe,\
0x672a,0x4a6e,0xfff6,0x6612,0x41fa,0x0054,0x4e90,0x3200,0x0a41,0x00ff,\
0xe14b,0x8243,0x60ba,0x302e,0xfff6,0xe16b,0x3200,0x41fa,0x009a,0x4e90,\
0x8640,0x60dc,0x0c46,0x0003,0x630e,0x45fa,0x002a,0x4e92,0x3d40,0xfff4,\
0x4e92,0x608e,0x4240,0x6010,0x322e,0xfff8,0x41fa,0x0074,0x4e90,0x3800,\
0x6000,0xfe94,0x4cee,0x0c78,0xffdc,0x4e5e,0x4e75,0x101c,0xe148,0x1014,\
0x1235,0x7000,0x5201,0xe268,0x0240,0x00ff,0x4e75,0x3407,0x1014,0xc400,\
0x673a,0xd402,0x5302,0x1235,0x7000,0xc002,0xb102,0x6608,0x142c,0x0001,\
0x4602,0x5001,0x9235,0x2000,0x1401,0x5202,0x0c01,0x0007,0x6504,0x7207,\
0x7407,0x3007,0xe43f,0xbe00,0x6502,0x528c,0x6110,0x5201,0x03c0,0x4e75,\
0x7001,0xe21f,0x6402,0x528c,0x4e75,0x7000,0x5301,0x6520,0x6734,0x3007,\
0xe23f,0xbe00,0x6518,0xd040,0x5340,0xc01c,0xe148,0x1014,0x1435,0x7800,\
0xe468,0xe21f,0x6402,0x528c,0x4e75,0xd040,0x5340,0xc014,0x1435,0x7800,\
0xe428,0xe21f,0x64ee,0x528c,0x4e75,0x1014,0xc007,0x56c0,0x0200,0x0001,\
0xe21f,0x64dc,0x528c,0x4e75})

#elif defined(UNRELEASED_UNPACK_HEXARRAY)
#define ttunpack_decompress ((unsigned short(*)(unsigned char*,unsigned char*))(unsigned short[]){\
0x4fef,0xfff4,0x48e7,0x1f3a,0x226f,0x0034,0x266f,0x0038,0x0c29,0x0054,\
0x0002,0x6708,0x303c,0x00fc,0x6000,0x0232,0x0c29,0x0050,0x0003,0x66f0,\
0x0c29,0x0008,0x000a,0x6708,0x303c,0x00fa,0x6000,0x021a,0x0c29,0xff80,\
0x000b,0x66f0,0x4247,0x1e29,0x0009,0x303c,0x00f9,0x0c47,0x0008,0x6200,\
0x0200,0x4240,0x1029,0x000c,0x3c40,0x303c,0x00fb,0x7204,0xb24e,0x6500,\
0x01ec,0x4243,0x1629,0x0006,0x3f43,0x002a,0x7808,0x9847,0x3844,0x41e9,\
0x000f,0x2f48,0x0026,0x7000,0x1010,0x41fa,0x01d6,0x43f1,0x0810,0x2089,\
0x41fa,0x01d0,0x30bc,0x0080,0x3a2f,0x002a,0x4a47,0x670a,0x3207,0x41fa,\
0x026c,0x4e90,0x3a00,0xba6f,0x002a,0x671a,0x320c,0xe36d,0x244b,0x528b,\
0x380c,0x3204,0x41fa,0x0252,0x4e90,0x3600,0x8a03,0x1485,0x60ce,0x95ca,\
0x41fa,0x01fe,0x4e90,0x3c00,0x0c46,0x0001,0x6600,0x012a,0x207a,0x0180,\
0x4240,0x1010,0xc07a,0x017c,0x6700,0x00e0,0x41fa,0x0170,0x43fa,0x0170,\
0x3211,0xe219,0x6402,0x5290,0x3281,0x207a,0x015e,0x4240,0x1010,0xc07a,\
0x015a,0x6700,0x0084,0x41fa,0x014e,0x43fa,0x014e,0x3211,0xe219,0x6402,\
0x5290,0x3281,0x41fa,0x01aa,0x4e90,0x3800,0x0c44,0x007f,0x6320,0x0644,\
0xff80,0xe34c,0x3206,0x41fa,0x01d8,0x4e90,0x3600,0x8843,0x41fa,0x018a,\
0x4e90,0x3600,0x5343,0xe14b,0x8843,0x41fa,0x017c,0x4e90,0x3600,0x0c43,\
0x001f,0x621c,0x7000,0x3003,0x206f,0x0026,0x4245,0x1a30,0x0800,0x4241,\
0x16c5,0x5241,0xb841,0x64f8,0x6000,0xff22,0x3a03,0x0645,0xffe0,0xe74d,\
0x7603,0x3203,0x41fa,0x018a,0x4e90,0x3600,0x8a43,0x60da,0x41fa,0x00cc,\
0x43fa,0x00cc,0x3211,0xe219,0x6402,0x5290,0x3281,0x3207,0x41fa,0x016a,\
0x4e90,0x3800,0x3c0c,0xed6d,0x244b,0x528b,0x3206,0x41fa,0x0158,0x4e90,\
0x3600,0x8a03,0x1485,0x3f44,0x002a,0x6000,0xfed0,0x41fa,0x0092,0x43fa,\
0x0092,0x3211,0xe219,0x6402,0x5290,0x3281,0x41fa,0x008e,0x4e90,0x3600,\
0x0a43,0x00ff,0x4241,0x7000,0x3003,0x204b,0x91c0,0x300a,0xd028,0xffff,\
0x16c0,0x5241,0xbc41,0x64ea,0x6000,0xfe96,0x41fa,0x00c6,0x4e90,0x3800,\
0x5344,0x0c44,0x00fe,0x6724,0x3a0e,0x670e,0xeb6c,0x3205,0x41fa,0x00f2,\
0x4e90,0x3600,0x8843,0x41fa,0x0044,0x4e90,0x3600,0x0a43,0x00ff,0xe14c,\
0x8644,0x60b0,0x0c46,0x0003,0x6314,0x41fa,0x002c,0x4e90,0x3600,0x3443,\
0x41fa,0x0022,0x4e90,0x3600,0x6092,0x4240,0x4cdf,0x5cf8,0x4fef,0x000c,\
0x4e75,0x0000,0x0000,0x0000,0x4e75,0x0240,0x00ff,0x4e75,0x41fa,0xfff0,\
0x2250,0x1019,0x2089,0x123a,0xffeb,0x6bea,0xe148,0x1011,0x5301,0x6710,\
0x44c1,0x6b24,0x671a,0x6910,0x0240,0x03ff,0xe448,0x4e75,0x0240,0x01ff,\
0xe248,0x4e75,0x0240,0x07ff,0xe648,0x4e75,0x0240,0x0fff,0xe848,0x4e75,\
0xe409,0x44c1,0x6b12,0x6708,0x0240,0x1fff,0xea48,0x4e75,0x0240,0x3fff,\
0xec48,0x4e75,0x0240,0x7fff,0xee48,0x4e75,0x2f03,0x7206,0x207a,0xff8c,\
0x343a,0xff8c,0x1010,0x3602,0xc600,0xe21a,0x6404,0x5288,0x1010,0x4a03,\
0x57c9,0xfff0,0x5d41,0x6712,0x4441,0x3601,0x5341,0x7000,0x6100,0x0024,\
0x07c0,0x261f,0x4e75,0x43fa,0xff5a,0x22c8,0x3282,0x7001,0x261f,0x4e75,\
0x4240,0x5341,0x652c,0x207a,0xff46,0x343a,0xff46,0x2243,0xd040,0x3602,\
0xc610,0x6702,0x5200,0xe21a,0x55c9,0xfff2,0x6406,0x5288,0x51c9,0xffea,\
0x2609,0x43fa,0xff22,0x22c8,0x3282,0x4e75})

#elif defined(OLD_UNPACK_HEXARRAY)
#define ttunpack_decompress ((unsigned short(*)(unsigned char*,unsigned char*))(unsigned short[]){\
0x48e7,0x7ffa,0x4fef,0xffe8,0x206f,0x0050,0x0c28,0x0054,0x0002,0x6608,\
0x0c28,0x0050,0x0003,0x6708,0x303c,0x00fc,0x6000,0x0264,0x4286,0x1c28,\
0x0006,0x4247,0x1e28,0x0009,0x4245,0x1a28,0x000a,0x5345,0x4240,0x1028,\
0x000c,0x3c40,0x7201,0xeb69,0x3f41,0x000e,0x7002,0xeb68,0x3f40,0x000c,\
0x7208,0x9245,0x3f41,0x000a,0x7008,0x9047,0x3840,0x303c,0x00f9,0x0c47,\
0x0008,0x6200,0x021e,0x4240,0x1028,0x000b,0xb06f,0x000e,0x660c,0x0c45,\
0x0004,0x6306,0x0c45,0x0007,0x6308,0x303c,0x00fa,0x6000,0x01fe,0x7204,\
0xb24e,0x6408,0x303c,0x00fb,0x6000,0x01f0,0x43e8,0x000f,0x2f49,0x0010,\
0x266f,0x0054,0x43fa,0x01ea,0x2f49,0x0006,0x226f,0x0010,0x4280,0x1011,\
0x41f0,0x0810,0x226f,0x0006,0x2288,0x41fa,0x01d4,0x2f48,0x0002,0x30bc,\
0x0080,0x3606,0x4a47,0x670c,0x3f07,0x41fa,0x0274,0x4e90,0x3600,0x548f,\
0x3043,0xbc88,0x6600,0x018c,0x3f05,0x45fa,0x021a,0x4e92,0x3800,0x426f,\
0x0002,0x548f,0x0c44,0x0001,0x6754,0x3f05,0x4e92,0x3600,0x5343,0x302f,\
0x000e,0x5540,0x548f,0xb043,0x6618,0x0c44,0x0003,0x6300,0x0170,0x45fa,\
0x017e,0x4e92,0x3f40,0x0000,0x4e92,0x6000,0x0120,0x300e,0x6710,0x3f0e,\
0x41fa,0x021a,0x4e90,0x320e,0xe36b,0x8640,0x548f,0x41fa,0x015a,0x4e90,\
0x0a40,0x00ff,0x3203,0xe149,0x8240,0x6000,0x00fe,0x226f,0x0006,0x2051,\
0x4240,0x1010,0x206f,0x0002,0x3210,0xc041,0x6700,0x00ca,0xe219,0x6402,\
0x5291,0x3081,0x2051,0x4240,0x1010,0xc041,0x6630,0x3001,0xe218,0x6402,\
0x5291,0x226f,0x0002,0x3280,0x3f07,0x45fa,0x01c0,0x4e92,0x3600,0x3f0c,\
0x4e92,0x320c,0x48c1,0xe3ae,0x8c00,0x16c6,0x4286,0x3c03,0x588f,0x6000,\
0xff26,0x3001,0xe218,0x6402,0x5291,0x206f,0x0002,0x3080,0x3f05,0x4e92,\
0x3600,0x548f,0xb66f,0x000e,0x6522,0x3f2f,0x000a,0x41fa,0x0180,0x4e90,\
0x966f,0x0010,0x322f,0x000c,0xe36b,0x8640,0x3f05,0x4e92,0x5340,0xe148,\
0x8640,0x588f,0x3f05,0x4e92,0x3800,0x548f,0x0c44,0x001f,0x6210,0x4280,\
0x3004,0x206f,0x0010,0x1230,0x0800,0x4881,0x6016,0x3f3c,0x0003,0x41fa,\
0x0140,0x4e90,0x3204,0x0641,0xffe0,0xe749,0x8240,0x548f,0x4242,0xb642,\
0x6500,0xfeac,0x16c1,0x5242,0xb642,0x64f8,0x6000,0xfea0,0x3001,0x226f,\
0x0006,0xe218,0x6402,0x5291,0x206f,0x0002,0x3080,0x41fa,0x0056,0x4e90,\
0x3200,0x0a41,0x00ff,0x4242,0xb842,0x6500,0xfe7a,0x4280,0x3001,0x204b,\
0x91c0,0x102f,0x0001,0xd028,0xffff,0x16c0,0x5242,0xb842,0x64e8,0x6000,\
0xfe5e,0x3f0c,0x41fa,0x00d6,0x4e90,0x320c,0xe36b,0x8600,0x16c3,0x548f,\
0x6000,0xfe48,0x4240,0x4fef,0x0018,0x4cdf,0x5ffe,0x4e75,0x0000,0x0000,\
0x0000,0x41fa,0xfff8,0x2250,0x4240,0x1019,0x2089,0x323a,0xfff0,0x0c01,\
0x0080,0x6602,0x4e75,0xe148,0x1011,0x0c01,0x0008,0x6212,0x6630,0x0240,\
0x0fff,0xe848,0x4e75,0x0240,0x7fff,0xee48,0x4e75,0x0c01,0x0020,0x62f2,\
0x6508,0x0240,0x3fff,0xec48,0x4e75,0x0240,0x1fff,0xea48,0x4e75,0x0240,\
0x07ff,0xe648,0x4e75,0x0c01,0x0002,0x62f2,0x6608,0x0240,0x03ff,0xe448,\
0x4e75,0x0240,0x01ff,0xe248,0x4e75,0x2f03,0x4281,0x302f,0x0008,0x207a,\
0xff84,0x343a,0xff84,0xb041,0x6312,0x3602,0xc610,0xe21a,0x6402,0x5288,\
0x4a03,0x6704,0x5241,0x60ea,0x2608,0x41fa,0xff64,0x2083,0x41fa,0xff62,\
0x3082,0x2043,0x7601,0xe36b,0x3f01,0x6108,0x544f,0x8043,0x261f,0x4e75,\
0x4240,0x322f,0x0004,0x6730,0x207a,0xff3e,0x2243,0x343a,0xff3c,0x5341,\
0xe348,0x3602,0xc610,0x6702,0x5200,0xe21a,0x6402,0x5288,0x51c9,0xffee,\
0x2609,0x43fa,0xff20,0x3282,0x43fa,0xff16,0x2288,0x2243,0x4e75})

/*
#else

#define ttunpack_decompress ((unsigned short(*)(unsigned char*,unsigned char*))(unsigned short[]){\
0x4fef,0xfff4,0x48e7,0x1f3a,0x226f,0x0034,0x266f,0x0038,0x0c29,0x0054,\
0x0002,0x6708,0x303c,0x00fc,0x6000,0x023a,0x0c29,0x0050,0x0003,0x66f0,\
0x0c29,0x0008,0x000a,0x6708,0x303c,0x00fa,0x6000,0x0222,0x0c29,0x0080,\
0x000b,0x66f0,0x4247,0x1e29,0x0009,0x303c,0x00f9,0x0c47,0x0008,0x6200,\
0x0208,0x4240,0x1029,0x000c,0x3c40,0x303c,0x00fb,0x7204,0xb24e,0x6500,\
0x01f4,0x4243,0x1629,0x0006,0x3f43,0x002a,0x7808,0x9847,0x3844,0x41e9,\
0x000f,0x2f48,0x0026,0x7000,0x1010,0x41fa,0x01de,0x43f1,0x0810,0x2089,\
0x41fa,0x01d8,0x30bc,0x0080,0x3a2f,0x002a,0x4a47,0x670a,0x3207,0x41fa,\
0x0278,0x4e90,0x3a00,0xba6f,0x002a,0x671a,0x320c,0xe36d,0x244b,0x528b,\
0x380c,0x3204,0x41fa,0x025e,0x4e90,0x3600,0x8a03,0x1485,0x60ce,0x95ca,\
0x41fa,0x020c,0x4e90,0x3c00,0x0c46,0x0001,0x6774,0x41fa,0x01fe,0x4e90,\
0x3800,0x5344,0x0c44,0x00fe,0x6740,0x300e,0x6710,0xe16c,0x3a0e,0x3205,\
0x41fa,0x0226,0x4e90,0x3600,0x8843,0x41fa,0x016e,0x4e90,0x3600,0x0a43,\
0x00ff,0xe14c,0x8644,0x4241,0x7000,0x3003,0x204b,0x91c0,0x300a,0xd028,\
0xffff,0x16c0,0x5241,0xbc41,0x64ea,0x6000,0xff70,0x0c46,0x0003,0x6318,\
0x41fa,0x013c,0x4e90,0x3a00,0x3445,0x41fa,0x0132,0x4e90,0x3600,0x0a43,\
0x00ff,0x60c6,0x4240,0x6000,0x0110,0x207a,0x0116,0x4240,0x1010,0xc07a,\
0x0112,0x6620,0x41fa,0x0108,0x43fa,0x0108,0x3211,0xe219,0x6402,0x5290,\
0x3281,0x41fa,0x00fe,0x4e90,0x3600,0x0a43,0x00ff,0x6092,0x41fa,0x00e8,\
0x43fa,0x00e8,0x3211,0xe219,0x6402,0x5290,0x3281,0x207a,0x00d6,0x4240,\
0x1010,0xc07a,0x00d2,0x6700,0x0086,0x41fa,0x00c6,0x43fa,0x00c6,0x3211,\
0xe219,0x6402,0x5290,0x3281,0x41fa,0x0128,0x4e90,0x3600,0x3a03,0x0c43,\
0x007f,0x6320,0x0645,0xff80,0xe34d,0x3206,0x41fa,0x0152,0x4e90,0x3600,\
0x8a43,0x41fa,0x0106,0x4e90,0x3600,0x5343,0xe14b,0x8a43,0x41fa,0x00f8,\
0x4e90,0x3600,0x0c43,0x001f,0x621c,0x7000,0x3003,0x206f,0x0026,0x4244,\
0x1830,0x0800,0x4241,0x16c4,0x5241,0xba41,0x64f8,0x6000,0xfe90,0x3803,\
0x0644,0xffe0,0xe74c,0x7603,0x3203,0x41fa,0x0104,0x4e90,0x3600,0x8843,\
0x60da,0x41fa,0x0042,0x43fa,0x0042,0x3211,0xe219,0x6402,0x5290,0x3281,\
0x3207,0x41fa,0x00e4,0x4e90,0x3800,0x3c0c,0xed6d,0x244b,0x528b,0x3206,\
0x41fa,0x00d2,0x4e90,0x3600,0x8a03,0x1485,0x3f44,0x002a,0x6000,0xfe3e,\
0x4cdf,0x5cf8,0x4fef,0x000c,0x4e75,0x0000,0x0000,0x0000,0x4e75,0x41fa,\
0xfff6,0x2250,0x4240,0x1019,0x2089,0x323a,0xffee,0x0c01,0x0080,0x6602,\
0x4e75,0xe148,0x1011,0x0c01,0x0008,0x6212,0x6630,0x0240,0x0fff,0xe848,\
0x4e75,0x0240,0x7fff,0xee48,0x4e75,0x0c01,0x0020,0x62f2,0x6508,0x0240,\
0x3fff,0xec48,0x4e75,0x0240,0x1fff,0xea48,0x4e75,0x0240,0x07ff,0xe648,\
0x4e75,0x0c01,0x0002,0x62f2,0x6608,0x0240,0x03ff,0xe448,0x4e75,0x0240,\
0x01ff,0xe248,0x4e75,0x2f03,0x7200,0x303c,0x0007,0x207a,0xff82,0x343a,\
0xff82,0xb041,0x6312,0x3602,0xc610,0xe21a,0x6402,0x5288,0x4a03,0x6704,\
0x5241,0x60ea,0x2608,0x41fa,0xff62,0x2083,0x5888,0x3082,0x7601,0xe36b,\
0x41fa,0x000a,0x4e90,0x8043,0x261f,0x4e75,0x4240,0x4a41,0x672c,0x207a,\
0xff42,0x2243,0x343a,0xff40,0x5341,0xe348,0x3602,0xc610,0x6702,0x5200,\
0xe21a,0x6402,0x5288,0x51c9,0xffee,0x2609,0x43fa,0xff20,0x2288,0x5889,\
0x3282,0x4e75})
*/
#endif


#endif
//=============================================================================
// Revision History
//=============================================================================
//
// $Log: ttunpack.h,v $
// Revision 1.4  2002/03/28 21:17:28  tnussb
// project name in header changed to TIGCC Tools Suite
//
// Revision 1.3  2002/03/13 15:09:58  tnussb
// new exepack decompression function generated from old/unpack.c added
// (its a little bit smaller now). The new function should work as the old one,
// but if there are problems I will leave the old hexcode array here, too
//
// Revision 1.2  2001/02/05 20:33:01  Thomas Nussbaumer
// (1) magic of ttunpack header splitted again into 2 bytes to prevent address errors
// (2) new (stable?) pc-relative version of unpacking routine
//
//
