hook .dsk up to specpls3 and create a skeleton softlist with Pacmania in it (which works) (nw)

This commit is contained in:
David Haywood 2012-12-28 20:54:35 +00:00
parent ee62eab965
commit 6cdf4c0242
4 changed files with 37 additions and 3 deletions

1
.gitattributes vendored
View file

@ -184,6 +184,7 @@ hash/softwarelist.dtd svneol=native#text/plain
hash/sorcerer_cart.xml svneol=native#text/xml
hash/spectrum.xml svneol=native#text/xml
hash/spectrum_cass.xml svneol=native#text/xml
hash/spectrum_flop.xml svneol=native#text/plain
hash/st_cart.xml svneol=native#text/xml
hash/st_flop.xml svneol=native#text/xml
hash/studio2.xml svneol=native#text/xml

22
hash/spectrum_flop.xml Normal file
View file

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE softwarelist SYSTEM "softwarelist.dtd">
<!-- ZX Spectrum Disc images
for +3 machines etc.
-->
<softwarelist name="spectrum_flop" description="ZX Spectrum Disc Images">
<software name="pacmania" >
<description>Pac-Mania (Europe / Australia)</description>
<year>1988</year>
<publisher>Namco / Grandslam</publisher>
<part name="flop1" interface="floppy_3">
<dataarea name="flop" size="195328">
<rom name="pac-mania.dsk" size="195328" crc="88f5506b" sha1="827c95935dd3a1dd919989fc6d7a0efa4e5aebc1" offset="0" />
</dataarea>
</part>
</software>
</softwarelist>

View file

@ -154,8 +154,9 @@ http://www.z88forever.org.uk/zxplus3e/
#include "formats/tzx_cas.h"
/* +3 hardware */
#include "machine/upd765.h"
#include "machine/ram.h"
#include "formats/dsk_dsk.h"
/****************************************************************************************************/
/* Spectrum + 3 specific functions */
@ -385,6 +386,11 @@ static GFXDECODE_START( specpls3 )
GFXDECODE_ENTRY( "maincpu", 0x1fd00, spectrum_charlayout, 0, 8 )
GFXDECODE_END
FLOPPY_FORMATS_MEMBER( spectrum_state::floppy_formats )
FLOPPY_DSK_FORMAT
FLOPPY_FORMATS_END
static MACHINE_CONFIG_DERIVED( spectrum_plus3, spectrum_128 )
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_IO_MAP(spectrum_plus3_io)
@ -395,8 +401,10 @@ static MACHINE_CONFIG_DERIVED( spectrum_plus3, spectrum_128 )
MCFG_MACHINE_RESET_OVERRIDE(spectrum_state, spectrum_plus3 )
MCFG_UPD765A_ADD("upd765", true, true)
MCFG_FLOPPY_DRIVE_ADD("upd765:0", specpls3_floppies, "3ssdd", 0, floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("upd765:1", specpls3_floppies, "3ssdd", 0, floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("upd765:0", specpls3_floppies, "3ssdd", 0, spectrum_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("upd765:1", specpls3_floppies, "3ssdd", 0, spectrum_state::floppy_formats)
MCFG_SOFTWARE_LIST_ADD("flop_list","spectrum_flop")
MACHINE_CONFIG_END
/***************************************************************************

View file

@ -9,6 +9,7 @@
#include "imagedev/snapquik.h"
#include "imagedev/cartslot.h"
#include "machine/upd765.h"
/* Spectrum crystals */
@ -125,6 +126,8 @@ public:
unsigned int m_previous_border_x, m_previous_border_y;
bitmap_ind16 m_border_bitmap;
DECLARE_FLOPPY_FORMATS( floppy_formats );
};