(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 ;)
This commit is contained in:
etabeta78 2014-11-01 07:34:25 +01:00
parent c910230ecb
commit a9b8065a5c
2 changed files with 1219 additions and 7 deletions

1214
hash/apfimag_cass.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -258,10 +258,6 @@ void apf_state::machine_reset()
m_portb = 0;
m_ca2 = 0;
// apfimag only
if (m_cass)
m_cass->change_state(CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR);
// apfimag only
if (m_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