/*<Header>==============================================================
*
*	MEMORY / "EIN_MEM.C"
*
*		[ EIN(tm) project : メモリ関連補助関数群 ]
*
*	COPYRIGHT  Nam  1994, All rights reserved.
*
*-----------------------------------------------------------------------
*	V1.0L01α	94.07.08/Nam	プロトタイプ
*</Header>==============================================================*/
#include	<stdio.h>
#include	<stdlib.h>
#include	<string.h>
#include	<snd.h>
#include	<winb.h>
#include	<te.h>
#include	<fntb.h>
#include	<gui.h>
#include	<egb.h>
#include	<msdos.cf>
#include	<loader.h>
#include	<math.h>
#include	<io.h>
#include	<guidbg.h>

#define	EIN_MEM
#include	"..\eintm.h"

#ifndef NOERR
#define	NOERR	(0)
#endif
#ifndef ERROR
#define	ERROR	(1)
#endif

/*<Func>================================================================
*	int		EIN_checkMem()
*
*	【概  要】	使用可能なメモリサイズを取得する
*
*	【機  能】	
*
*	【入  力】
*
*	【出  力】	なし
*
*	【関数値】				byte
*
*	【注  意】	
*
*	【参  照】	
*
*-----------------------------------------------------------------------
*	V11L10	1994.07.08/Nam
*</Func>==============================================================*/
int		EIN_checkMem()
{
	int		pmax, lmax;
	pmax = TL_checkMemory(0);
	lmax = TL_checkMemory(2);
	
	return (((pmax<lmax) ?pmax :lmax) * 4096);
}
