trunk/src/lib/formats/bw2_dsk.c
| r0 | r18993 | |
| 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 | |
| 45 | bw2_format::bw2_format() : wd177x_format(formats) |
| 46 | { |
| 47 | } |
| 48 | |
| 49 | const char *bw2_format::name() const |
| 50 | { |
| 51 | return "bw2"; |
| 52 | } |
| 53 | |
| 54 | const char *bw2_format::description() const |
| 55 | { |
| 56 | return "Bondwell 2 disk image"; |
| 57 | } |
| 58 | |
| 59 | const char *bw2_format::extensions() const |
| 60 | { |
| 61 | return "dsk"; |
| 62 | } |
| 63 | |
| 64 | // Unverified gap sizes |
| 65 | const 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 | |
| 77 | const floppy_format_type FLOPPY_BW2_FORMAT = &floppy_image_format_creator<bw2_format>; |