#include "string.h"
#include "mem1401.h"

/****************************************************************************
*                                   peek
* Inputs:
*       unsigned short seg: 16-bit segment #
*	unsigned short offset: 16-bit offset #
*	unsigned char * dest: Place to put bytes copied
*	unsigned len: Length to copy
* Result: void
*       
* Effect: 
*       Copies bytes from source <seg,offset> to dest
****************************************************************************/

void peek(unsigned short seg, unsigned short offset, unsigned char * dest,size_t len)
    {
     _fmemcpy(dest, (void _far *) (((unsigned long) seg) << 16L | (unsigned long) offset),len);
    }
