Previous 199869 Revisions Next

r22770 Saturday 11th May, 2013 at 17:49:37 UTC by Carl
(mess) pc: fix font for asst128 (nw)
asst128_dsk: add support for asst128 ssqd 360K disks (nw)
--
Added a new format class for asst128 floppies because the 360K SSQD disk format conflicts with the standard 360K DSDD type.  The Assistant 128 BIOS translates disk commands so 360K DSDD disks boot fine though.
[src/lib]lib.mak
[src/lib/formats]asst128_dsk.c* asst128_dsk.h*
[src/mess/drivers]pc.c
[src/mess/includes]pc.h

trunk/src/lib/formats/asst128_dsk.h
r0r22770
1/*********************************************************************
2
3    formats/asst128_dsk.h
4
5    asst128 format
6
7*********************************************************************/
8
9#ifndef ASST128_DSK_H_
10#define ASST128_DSK_H_
11
12#include "upd765_dsk.h"
13
14class asst128_format : public upd765_format {
15public:
16   asst128_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_ASST128_FORMAT;
27
28#endif
Property changes on: trunk/src/lib/formats/asst128_dsk.h
Added: svn:eol-style
   + native
Added: svn:mime-type
   + text/plain
trunk/src/lib/formats/asst128_dsk.c
r0r22770
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
45asst128_format::asst128_format() : upd765_format(formats)
46{
47}
48
49const char *asst128_format::name() const
50{
51   return "asst128";
52}
53
54const char *asst128_format::description() const
55{
56   return "ASST128 disk image";
57}
58
59const char *asst128_format::extensions() const
60{
61   return "img";
62}
63
64// Unverified gap sizes
65const 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
73const floppy_format_type FLOPPY_ASST128_FORMAT = &floppy_image_format_creator<asst128_format>;
Property changes on: trunk/src/lib/formats/asst128_dsk.c
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native
trunk/src/lib/lib.mak
r22769r22770
104104   $(LIBOBJ)/formats/apridisk.o    \
105105   $(LIBOBJ)/formats/apollo_dsk.o  \
106106   $(LIBOBJ)/formats/ap_dsk35.o    \
107   $(LIBOBJ)/formats/asst128_dsk.o \
107108   $(LIBOBJ)/formats/atari_dsk.o   \
108109   $(LIBOBJ)/formats/atarist_dsk.o \
109110   $(LIBOBJ)/formats/atom_tap.o    \
trunk/src/mess/includes/pc.h
r22769r22770
150150   void pc_eop_w(int channel, bool state);
151151   void mc1502_fdc_irq_drq(bool state);
152152   DECLARE_FLOPPY_FORMATS( floppy_formats );
153   DECLARE_FLOPPY_FORMATS( asst128_formats );
153154   IRQ_CALLBACK_MEMBER(pc_irq_callback);
154155
155156   DECLARE_DEVICE_IMAGE_LOAD_MEMBER( pcjr_cartridge );
trunk/src/mess/drivers/pc.c
r22769r22770
9292#include "imagedev/cartslot.h"
9393#include "formats/mfi_dsk.h"
9494#include "formats/pc_dsk.h"
95#include "formats/asst128_dsk.h"
9596
9697#include "machine/am9517a.h"
9798#include "sound/sn76496.h"
r22769r22770
882883   FLOPPY_PC_FORMAT
883884FLOPPY_FORMATS_END
884885
886FLOPPY_FORMATS_MEMBER( pc_state::asst128_formats )
887   FLOPPY_ASST128_FORMAT
888FLOPPY_FORMATS_END
889
885890static SLOT_INTERFACE_START( ibmpc_floppies )
886891      SLOT_INTERFACE( "525dd", FLOPPY_525_DD )
887892      SLOT_INTERFACE( "35dd", FLOPPY_35_DD )
888893SLOT_INTERFACE_END
889894
895static SLOT_INTERFACE_START( asst128_floppies )
896      SLOT_INTERFACE( "525ssqd", FLOPPY_525_SSQD )
897SLOT_INTERFACE_END
898
890899SLOT_INTERFACE_START(ibm5150_com)
891900   SLOT_INTERFACE("microsoft_mouse", MSFT_SERIAL_MOUSE)
892901   SLOT_INTERFACE("mouse_systems_mouse", MSYSTEM_SERIAL_MOUSE)
r22769r22770
15221531   MCFG_CPU_REPLACE("maincpu", I8086, 4772720)
15231532   MCFG_CPU_PROGRAM_MAP(iskr1031_map)
15241533   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)
15251546MACHINE_CONFIG_END
15261547
15271548static MACHINE_CONFIG_START( iskr3104, pc_state )
r22769r22770
21512172   ROM_LOAD( "asf400-f600.bin",   0xf4000, 0x2000, CRC(e3bf22de) SHA1(d4319edc82c0015ca0adc6c8771e887659717e62))
21522173   ROM_LOAD( "asfc00-ff00.bin",   0xfc000, 0x4000, CRC(0cb6401c) SHA1(70c4da47700f9925fd04049f16d54610c743ed8b))
21532174   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 )
21552177ROM_END
21562178
21572179ROM_START( mk88 )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team