Previous 199869 Revisions Next

r18993 Friday 16th November, 2012 at 18:37:55 UTC by Curt Coder
(MESS) bw2: Added modern disk formats. (nw)
[src/lib]lib.mak
[src/lib/formats]bw2_dsk.c* bw2_dsk.h*

trunk/src/lib/lib.mak
r18992r18993
106106   $(LIBOBJ)/formats/atari_dsk.o   \
107107   $(LIBOBJ)/formats/atarist_dsk.o   \
108108   $(LIBOBJ)/formats/atom_tap.o   \
109   $(LIBOBJ)/formats/bw2_dsk.o   \
109110   $(LIBOBJ)/formats/bw12_dsk.o   \
110111   $(LIBOBJ)/formats/cbm_tap.o      \
111112   $(LIBOBJ)/formats/cgen_cas.o   \
trunk/src/lib/formats/bw2_dsk.c
r0r18993
1/***************************************************************************
2
3    Copyright Olivier Galibert
4    All rights reserved.
5
6    Redistribution and use in source and binary forms, with or without
7    modification, are permitted provided that the following conditions are
8    met:
9
10        * Redistributions of source code must retain the above copyright
11          notice, this list of conditions and the following disclaimer.
12        * Redistributions in binary form must reproduce the above copyright
13          notice, this list of conditions and the following disclaimer in
14          the documentation and/or other materials provided with the
15          distribution.
16        * Neither the name 'MAME' nor the names of its contributors may be
17          used to endorse or promote products derived from this software
18          without specific prior written permission.
19
20    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
21    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
24    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
29    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30    POSSIBILITY OF SUCH DAMAGE.
31
32****************************************************************************/
33
34/*********************************************************************
35
36    formats/bw2_dsk.c
37
38    bw2 format
39
40*********************************************************************/
41
42#include "emu.h"
43#include "formats/bw2_dsk.h"
44
45bw2_format::bw2_format() : wd177x_format(formats)
46{
47}
48
49const char *bw2_format::name() const
50{
51   return "bw2";
52}
53
54const char *bw2_format::description() const
55{
56   return "Bondwell 2 disk image";
57}
58
59const char *bw2_format::extensions() const
60{
61   return "dsk";
62}
63
64// Unverified gap sizes
65const bw2_format::format bw2_format::formats[] = {
66   {   /*  340K 3 1/2 inch double density */
67      floppy_image::FF_35,  floppy_image::SSDD,
68      2000, 17, 80, 1, 256, {}, 0, {}, 100, 22, 20
69   },
70   {   /*  360K 3 1/2 inch double density */
71      floppy_image::FF_35,  floppy_image::SSDD,
72      2000, 18, 80, 1, 256, {}, 0, {}, 100, 22, 20
73   },
74   {}
75};
76
77const floppy_format_type FLOPPY_BW2_FORMAT = &floppy_image_format_creator<bw2_format>;
trunk/src/lib/formats/bw2_dsk.h
r0r18993
1/*********************************************************************
2
3    formats/bw2_dsk.h
4
5    Bondwell 2 format
6
7*********************************************************************/
8
9#ifndef BW2_DSK_H_
10#define BW2_DSK_H_
11
12#include "wd177x_dsk.h"
13
14class bw2_format : public wd177x_format {
15public:
16   bw2_format();
17
18   virtual const char *name() const;
19   virtual const char *description() const;
20   virtual const char *extensions() const;
21
22private:
23   static const format formats[];
24};
25
26extern const floppy_format_type FLOPPY_BW2_FORMAT;
27
28#endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team