diff options
| author | 2015-07-09 12:57:52 +0200 | |
|---|---|---|
| committer | 2015-07-09 12:58:25 +0200 | |
| commit | 08c7ed6ffb8fb06d0265633d084fe8a2c47223d4 (patch) | |
| tree | 5ca3193a5bc9768a67b7b94c6bd64defe3a5246a /src/lib | |
| parent | 58ad8c28fe49b649c55f4eeb9300b59585fcb818 (diff) | |
guab: Updated driver to use the standard wd floppy controller.
This also means that it now uses the software list system instead of
loading the floppy disk image into a memory region. To run the driver
use: "mame guab -flop guab3" now. You may also just start the driver,
then choose a floppy disk image from the builtin file manager.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/formats/guab_dsk.c | 42 | ||||
| -rw-r--r-- | src/lib/formats/guab_dsk.h | 33 |
2 files changed, 75 insertions, 0 deletions
diff --git a/src/lib/formats/guab_dsk.c b/src/lib/formats/guab_dsk.c new file mode 100644 index 00000000000..4c92362251a --- /dev/null +++ b/src/lib/formats/guab_dsk.c @@ -0,0 +1,42 @@ +// license:GPL-2.0+ +// copyright-holders:Dirk Best +/*************************************************************************** + + JPM Give us a Break + + Disk image format + +***************************************************************************/ + +#include "guab_dsk.h" + +guab_format::guab_format() : wd177x_format(formats) +{ +} + +const char *guab_format::name() const +{ + return "guab"; +} + +const char *guab_format::description() const +{ + return "JPM Give us a Break disk image"; +} + +const char *guab_format::extensions() const +{ + return "dsk"; +} + +// gap sizes unverified +const guab_format::format guab_format::formats[] = +{ + { + floppy_image::FF_35, floppy_image::DSDD, floppy_image::MFM, + 2000, 18, 80, 2, 256, {}, 0, {}, 80, 22, 24 + }, + {} +}; + +const floppy_format_type FLOPPY_GUAB_FORMAT = &floppy_image_format_creator<guab_format>; diff --git a/src/lib/formats/guab_dsk.h b/src/lib/formats/guab_dsk.h new file mode 100644 index 00000000000..36280ddd88f --- /dev/null +++ b/src/lib/formats/guab_dsk.h @@ -0,0 +1,33 @@ +// license:GPL-2.0+ +// copyright-holders:Dirk Best +/*************************************************************************** + + JPM Give us a Break + + Disk image format + +***************************************************************************/ + +#pragma once + +#ifndef __GUAB_DSK_H__ +#define __GUAB_DSK_H__ + +#include "wd177x_dsk.h" + +class guab_format : public wd177x_format +{ +public: + guab_format(); + + virtual const char *name() const; + virtual const char *description() const; + virtual const char *extensions() const; + +private: + static const format formats[]; +}; + +extern const floppy_format_type FLOPPY_GUAB_FORMAT; + +#endif // __GUAB_DSK_H__ |
