
/***************************************************************************
**
**    $Header:   D:/EPSLDV1/SRC/LOG/ABIMACRO.H__   1.8   20 Jun 1996 09:26:44   ZJRD  $
**
**    $Log:   D:/EPSLDV1/SRC/LOG/ABIMACRO.H__  $
** 
**    Rev 1.8   20 Jun 1996 09:26:44   ZJRD
** EasyPack/SLD Version 1.20a
** 
**    Rev 1.6   10 Jun 1996 10:21:24   ZJRD
** EasyPack/SLD Version 1.20
** 
**    Rev 1.4   29 May 1996 09:31:42   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:02:56   ZJRD
** EasyPack/SLD Version 1.94
** 
**    Rev 1.1   02 May 1996 10:29:20   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.31   18 Apr 1996 12:58:36   Shirley
** No change.
** 
**    Rev 1.30   12 Apr 1996 10:42:18   Shirley
** No change.
** 
**    Rev 1.29   02 Apr 1996 09:25:58   Shirley
** No change.
** 
**    Rev 1.28   15 Feb 1996 08:57:18   Shirley
** No change.
** 
**    Rev 1.27   12 Feb 1996 14:08:40   Shirley
** No change.
** 
**    Rev 1.26   06 Feb 1996 15:35:06   Shirley
** No change.
** 
**    Rev 1.25   06 Feb 1996 13:49:24   Shirley
** No change.
** 
**    Rev 1.24   01 Feb 1996 10:15:26   Shirley
** No change.
** 
**    Rev 1.23   26 Jan 1996 09:18:48   Shirley
** No change.
** 
**    Rev 1.22   25 Jan 1996 13:18:44   Shirley
** No change.
** 
**    Rev 1.21   24 Jan 1996 10:34:56   Shirley
** No change.
** 
**    Rev 1.20   23 Jan 1996 11:25:44   Shirley
** No change.
** 
**    Rev 1.19   18 Jan 1996 10:07:48   Shirley
** No change.
** 
**    Rev 1.18   15 Jan 1996 16:16:40   Shirley
** No change.
** 
**    Rev 1.17   04 Jan 1996 11:08:48   Shirley
** No change.
** 
**    Rev 1.16   30 Nov 1995 09:11:28   Shirley
** No change.
** 
**    Rev 1.15   28 Nov 1995 15:32:08   Shirley
** No change.
** 
**    Rev 1.14   21 Nov 1995 11:18:58   Shirley
** No change.
** 
**    Rev 1.13   13 Nov 1995 09:23:12   Shirley
** No change.
** 
**    Rev 1.12   12 Nov 1995 11:34:06   Shirley
** No change.
** 
**    Rev 1.11   08 Nov 1995 16:34:34   Shirley
** No change.
** 
**    Rev 1.10   08 Nov 1995 12:44:30   Shirley
** EasyPack/SLD Version 0.22
** 
**    Rev 1.9   02 Nov 1995 10:05:58   Shirley
** No change.
** 
**    Rev 1.8   27 Oct 1995 16:48:08   Shirley
** No change.
** 
**    Rev 1.7   27 Oct 1995 13:46:10   Shirley
** EasyPack/SLD Version 0.1g
** 
**    Rev 1.6   25 Oct 1995 14:30:22   Shirley
** No change.
** 
**    Rev 1.5   18 Oct 1995 14:51:46   Shirley
** No change.
** 
**    Rev 1.4   13 Oct 1995 13:21:46   Shirley
** No change.
** 
**    Rev 1.3   29 Sep 1995 09:52:04   Shirley
** EasyPack/SLD Version 0.1c
** 
**    Rev 1.2   20 Sep 1995 10:51:26   Shirley
** No change.
** 
**    Rev 1.1   15 Sep 1995 09:43:22   Shirley
** No change.
** 
**    Rev 1.0   07 Sep 1995 09:53:14   Shirley
** Initial revision.
**
****************************************************************************/

/***************************************************************************
**
** File name : abimacro.h
**
** Description:
**
** Programmer: Frank Chang
**
**
**    Copyright (C) 1995 Microtek International, Inc.
**    All Rights Reserved
**
****************************************************************************/

#ifndef _ABIMACRO_
#define _ABIMACRO_

#include <string.h>

#ifdef _TEST_BOX
    extern unsigned char inputStream[2048];
    extern unsigned char outputStream[512];
#else
    extern unsigned char *inputStream;
    extern unsigned char *outputStream;
#endif

    #define SaveId(cmdId,count) \
       count = 0;\
       outputStream[count] = (unsigned char)cmdId;\
        count++

    #define SaveVar(data,count,width) \
        memcpy(&outputStream[count],&data,width);\
        count += width

    #define SaveBuff(buff,count,dataLen) \
        outputStream[count] = (unsigned char)dataLen;\
        count++;\
        memcpy(&outputStream[count],buff,dataLen);\
        count += dataLen
    //added by john 96.5    
    #define SaveBuffer(buff,count,dataLen) \
        memcpy(&outputStream[count],buff,dataLen);\
        count += dataLen     
#endif
