#include	"..\def.h"
#include	"..\def2.h"
#include	<dos.h>
#include	<machine.h>

						/* データトラック? */
#define	chkcode(track)	((cd_info.cd_time[(track)-1].cd_min) & 0x80) 
#define	cd_all_flame \
			(cd_info.all_min*4500+cd_info.all_sec*75+cd_info.all_flame)

#define ERRreturn \
	return( (reg.h.ah == 0x80) ? reg.h.ah * 256 + reg.h.cl : reg.h.ah *256 )

#define 	VOL_MAX 	63
#define 	VOL1_DAT	0x04e0
#define 	VOL1_COM	0x04e1
#define 	VOL2_DAT	0x04e2
#define 	VOL2_COM	0x04e3

typedef	struct{
			unsigned char cd_min,cd_sec,cd_flame;
		}	CD_TIME;

typedef	struct{
			CD_TIME start_t,end_t;
		}	ENSOU_T;

typedef	struct{
			unsigned char dummy1,cd_flame,dummy2;
			CD_TIME track_t;
			unsigned char	dummy3;
			CD_TIME disk_t;
		}	ENSOU_STAT;

typedef struct{
			unsigned char cd_type,start_track,end_track;
			unsigned char all_min,all_sec,all_flame;
			CD_TIME		cd_time[98];
		}	CD_INFO;

