mame/src/lib/formats/esq8_dsk.h
Miodrag Milanovic ddb290d5f6 NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
2016-10-22 13:13:17 +02:00

43 lines
1.2 KiB
C++

// license:BSD-3-Clause
// copyright-holders:R. Belmont, Olivier Galibert
/*********************************************************************
formats/esq8_dsk.h
Formats for 8-bit Ensoniq synthesizers and samplers
Disk is PC MFM, 40 tracks, single (Mirage) or double (SQ-80) sided,
with 6 sectors per track.
Sectors 0-4 are 1024 bytes, sector 5 is 512 bytes
*********************************************************************/
#ifndef ESQ8_DSK_H_
#define ESQ8_DSK_H_
#include "flopimg.h"
class esq8img_format : public floppy_image_format_t
{
public:
esq8img_format();
virtual int identify(io_generic *io, uint32_t form_factor) override;
virtual bool load(io_generic *io, uint32_t form_factor, floppy_image *image) override;
virtual bool save(io_generic *io, floppy_image *image) override;
virtual const char *name() const override;
virtual const char *description() const override;
virtual const char *extensions() const override;
virtual bool supports_save() const override;
static const desc_e esq_6_desc[];
private:
void find_size(io_generic *io, int &track_count, int &head_count, int &sector_count);
};
extern const floppy_format_type FLOPPY_ESQ8IMG_FORMAT;
#endif /* ESQ8_DSK_H_ */