summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/apf.c
diff options
context:
space:
mode:
author etabeta78 <etabeta78@users.noreply.github.com>2014-11-01 07:34:25 +0100
committer etabeta78 <etabeta78@users.noreply.github.com>2014-11-01 07:34:25 +0100
commita9b8065a5c0b6c4c6d10c20795b04b957110f75c (patch)
tree99a377c1134cec9b305bcd0197642fab409d9297 /src/mess/drivers/apf.c
parentc910230ecb4792d1145b5af1f9e1d34ee8177d4f (diff)
(MESS) apfimag: added software list for cassettes (they require you
to mount the BASIC cart to be loaded, of course). [Fabio Priuli] out of whatsnew: I also set the default tape state to CASSETTE_STOP, because the APF Imagination requires you to immediately press Return after the CLOAD + Press Play sequence. With current CASSETTE_PLAY default, the tape was starting immediately after the first Return press (the one for CLOAD) and I often had the second Return input being ignored by the system, with the result that the tape was not loaded correctly... Having to press play separately seems to give the system enough time to recover from the first Return and being ready to accept a second one ;)
Diffstat (limited to 'src/mess/drivers/apf.c')
-rw-r--r--src/mess/drivers/apf.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mess/drivers/apf.c b/src/mess/drivers/apf.c
index 1ad3d9c15eb..11cf134a2b7 100644
--- a/src/mess/drivers/apf.c
+++ b/src/mess/drivers/apf.c
@@ -259,10 +259,6 @@ void apf_state::machine_reset()
m_ca2 = 0;
// apfimag only
- if (m_cass)
- m_cass->change_state(CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR);
-
- // apfimag only
if (m_ram)
{
/* if we specified 8K of RAM, delete the extended RAM */
@@ -554,7 +550,7 @@ static MACHINE_CONFIG_START( apfm1000, apf_state )
MCFG_APF_CARTRIDGE_ADD("cartslot", apf_cart, NULL)
/* software lists */
- MCFG_SOFTWARE_LIST_ADD("cart_list","apfm1000")
+ MCFG_SOFTWARE_LIST_ADD("cart_list", "apfm1000")
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( apfimag, apfm1000 )
@@ -574,13 +570,15 @@ static MACHINE_CONFIG_DERIVED( apfimag, apfm1000 )
MCFG_PIA_READPB_HANDLER(READ8(apf_state, pia1_portb_r))
MCFG_PIA_WRITEPB_HANDLER(WRITE8(apf_state, pia1_portb_w))
- MCFG_CASSETTE_ADD( "cassette" )
+ MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(apf_cassette_formats)
- MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_DISABLED)
MCFG_FD1771x_ADD("fdc", 1000000) // guess
MCFG_FLOPPY_DRIVE_ADD("fdc:0", apf_floppies, "525dd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("fdc:1", apf_floppies, "525dd", floppy_image_device::default_floppy_formats)
+
+ MCFG_SOFTWARE_LIST_ADD("cass_list", "apfimag_cass")
MACHINE_CONFIG_END