trunk/src/lib/formats/asst128_dsk.c
| r0 | r22770 | |
| 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/asst128_dsk.c |
| 37 | |
| 38 | asst128 format |
| 39 | |
| 40 | *********************************************************************/ |
| 41 | |
| 42 | #include "emu.h" |
| 43 | #include "formats/asst128_dsk.h" |
| 44 | |
| 45 | asst128_format::asst128_format() : upd765_format(formats) |
| 46 | { |
| 47 | } |
| 48 | |
| 49 | const char *asst128_format::name() const |
| 50 | { |
| 51 | return "asst128"; |
| 52 | } |
| 53 | |
| 54 | const char *asst128_format::description() const |
| 55 | { |
| 56 | return "ASST128 disk image"; |
| 57 | } |
| 58 | |
| 59 | const char *asst128_format::extensions() const |
| 60 | { |
| 61 | return "img"; |
| 62 | } |
| 63 | |
| 64 | // Unverified gap sizes |
| 65 | const asst128_format::format asst128_format::formats[] = { |
| 66 | { |
| 67 | floppy_image::FF_525, floppy_image::SSQD, floppy_image::MFM, |
| 68 | 2000, 9, 80, 1, 512, {}, 1, {}, 80, 50, 22, 80 |
| 69 | }, |
| 70 | {} |
| 71 | }; |
| 72 | |
| 73 | const floppy_format_type FLOPPY_ASST128_FORMAT = &floppy_image_format_creator<asst128_format>; |
trunk/src/mess/drivers/pc.c
| r22769 | r22770 | |
| 92 | 92 | #include "imagedev/cartslot.h" |
| 93 | 93 | #include "formats/mfi_dsk.h" |
| 94 | 94 | #include "formats/pc_dsk.h" |
| 95 | #include "formats/asst128_dsk.h" |
| 95 | 96 | |
| 96 | 97 | #include "machine/am9517a.h" |
| 97 | 98 | #include "sound/sn76496.h" |
| r22769 | r22770 | |
| 882 | 883 | FLOPPY_PC_FORMAT |
| 883 | 884 | FLOPPY_FORMATS_END |
| 884 | 885 | |
| 886 | FLOPPY_FORMATS_MEMBER( pc_state::asst128_formats ) |
| 887 | FLOPPY_ASST128_FORMAT |
| 888 | FLOPPY_FORMATS_END |
| 889 | |
| 885 | 890 | static SLOT_INTERFACE_START( ibmpc_floppies ) |
| 886 | 891 | SLOT_INTERFACE( "525dd", FLOPPY_525_DD ) |
| 887 | 892 | SLOT_INTERFACE( "35dd", FLOPPY_35_DD ) |
| 888 | 893 | SLOT_INTERFACE_END |
| 889 | 894 | |
| 895 | static SLOT_INTERFACE_START( asst128_floppies ) |
| 896 | SLOT_INTERFACE( "525ssqd", FLOPPY_525_SSQD ) |
| 897 | SLOT_INTERFACE_END |
| 898 | |
| 890 | 899 | SLOT_INTERFACE_START(ibm5150_com) |
| 891 | 900 | SLOT_INTERFACE("microsoft_mouse", MSFT_SERIAL_MOUSE) |
| 892 | 901 | SLOT_INTERFACE("mouse_systems_mouse", MSYSTEM_SERIAL_MOUSE) |
| r22769 | r22770 | |
| 1522 | 1531 | MCFG_CPU_REPLACE("maincpu", I8086, 4772720) |
| 1523 | 1532 | MCFG_CPU_PROGRAM_MAP(iskr1031_map) |
| 1524 | 1533 | MCFG_CPU_IO_MAP(asst128_io) |
| 1534 | |
| 1535 | MCFG_DEVICE_REMOVE("fdc:0"); |
| 1536 | MCFG_DEVICE_REMOVE("fdc:1"); |
| 1537 | |
| 1538 | MCFG_FLOPPY_DRIVE_ADD("fdc:0", asst128_floppies, "525ssqd", 0, pc_state::asst128_formats) |
| 1539 | MCFG_FLOPPY_DRIVE_ADD("fdc:1", asst128_floppies, "525ssqd", 0, pc_state::asst128_formats) |
| 1540 | |
| 1541 | MCFG_DEVICE_REMOVE(CGA_SCREEN_NAME) |
| 1542 | MCFG_DEVICE_REMOVE(CGA_MC6845_NAME) |
| 1543 | |
| 1544 | MCFG_FRAGMENT_ADD( pcvideo_mc1502 ) |
| 1545 | MCFG_GFXDECODE(ibmpcjr) |
| 1525 | 1546 | MACHINE_CONFIG_END |
| 1526 | 1547 | |
| 1527 | 1548 | static MACHINE_CONFIG_START( iskr3104, pc_state ) |
| r22769 | r22770 | |
| 2151 | 2172 | ROM_LOAD( "asf400-f600.bin", 0xf4000, 0x2000, CRC(e3bf22de) SHA1(d4319edc82c0015ca0adc6c8771e887659717e62)) |
| 2152 | 2173 | ROM_LOAD( "asfc00-ff00.bin", 0xfc000, 0x4000, CRC(0cb6401c) SHA1(70c4da47700f9925fd04049f16d54610c743ed8b)) |
| 2153 | 2174 | ROM_REGION(0x2000,"gfx1", ROMREGION_ERASE00) |
| 2154 | | // Here CGA rom with cyrillic support should be added |
| 2175 | ROM_COPY( "maincpu", 0xffa6e, 0x0800, 0x0400 ) |
| 2176 | ROM_COPY( "maincpu", 0xfc000, 0x0c00, 0x0400 ) |
| 2155 | 2177 | ROM_END |
| 2156 | 2178 | |
| 2157 | 2179 | ROM_START( mk88 ) |