(MESS) Fixed bw12, tandy2k, nanos, specpls3 and sf7000 regressions. (nw)

This commit is contained in:
Sandro Ronco 2012-10-28 12:27:49 +00:00
parent d24e75d58e
commit 845c07b136
6 changed files with 7 additions and 33 deletions

View File

@ -26,7 +26,6 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "imagedev/flopdrv.h"
#include "machine/ram.h"
#include "formats/mfi_dsk.h"
#include "machine/6821pia.h"
@ -82,11 +81,8 @@ void bw12_state::bankswitch()
void bw12_state::floppy_motor_off()
{
floppy_mon_w(m_floppy0, ASSERT_LINE);
floppy_mon_w(m_floppy1, ASSERT_LINE);
floppy_drive_set_ready_state(m_floppy0, 0, 0);
floppy_drive_set_ready_state(m_floppy1, 0, 0);
m_floppy0->mon_w(true);
m_floppy1->mon_w(true);
m_motor_on = 0;
}

View File

@ -13,7 +13,6 @@
#include "machine/z80sio.h"
#include "machine/z80ctc.h"
#include "machine/upd765.h"
#include "imagedev/flopdrv.h"
#include "formats/mfi_dsk.h"
#include "formats/nanos_dsk.h"
#include "machine/ram.h"
@ -450,8 +449,7 @@ void nanos_state::machine_reset()
membank("bank2")->set_base(machine().device<ram_device>(RAM_TAG)->pointer() + 0x1000);
membank("bank3")->set_base(machine().device<ram_device>(RAM_TAG)->pointer());
floppy_mon_w(floppy_get_device(space.machine(), 0), CLEAR_LINE);
floppy_drive_set_ready_state(floppy_get_device(space.machine(), 0), 1,1);
machine().device<floppy_connector>("upd765:0")->get_device()->mon_w(false);
}
static Z80PIO_INTERFACE( nanos_z80pio_intf )

View File

@ -919,8 +919,7 @@ WRITE8_MEMBER( sf7000_state::ppi_pc_w )
*/
/* floppy motor */
floppy_mon_w(m_floppy0, BIT(data, 1));
floppy_drive_set_ready_state(m_floppy0, 1, 1);
m_floppy0->mon_w(BIT(data, 1));
/* FDC terminal count */
m_fdc->tc_w(BIT(data, 2));

View File

@ -156,7 +156,6 @@ http://www.z88forever.org.uk/zxplus3e/
/* +3 hardware */
#include "machine/upd765.h"
#include "imagedev/flopdrv.h"
#include "machine/ram.h"
/****************************************************************************************************/
@ -315,10 +314,8 @@ static WRITE8_HANDLER(spectrum_plus3_port_1ffd_w)
spectrum_state *state = space.machine().driver_data<spectrum_state>();
floppy_mon_w(floppy_get_device(space.machine(), 0), !BIT(data, 3));
floppy_mon_w(floppy_get_device(space.machine(), 1), !BIT(data, 3));
floppy_drive_set_ready_state(floppy_get_device(space.machine(), 0), 1, 1);
floppy_drive_set_ready_state(floppy_get_device(space.machine(), 1), 1, 1);
space.machine().device<floppy_connector>("upd765:0")->get_device()->mon_w(!BIT(data, 3));
space.machine().device<floppy_connector>("upd765:1")->get_device()->mon_w(!BIT(data, 3));
state->m_port_1ffd_data = data;

View File

@ -596,21 +596,6 @@ static const struct pic8259_interface pic1_intf =
DEVCB_NULL
};
// Floppy Configuration
static const floppy_interface tandy2k_floppy_interface =
{
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
FLOPPY_STANDARD_5_25_DSQD, // Mitsubishi M4853
LEGACY_FLOPPY_OPTIONS_NAME(default),
"floppy_5_25",
NULL
};
// Intel 8272 Interface
void tandy2k_state::fdc_irq(bool state)
@ -738,7 +723,7 @@ static MACHINE_CONFIG_START( tandy2k, tandy2k_state )
MCFG_PIT8253_ADD(I8253_TAG, pit_intf)
MCFG_PIC8259_ADD(I8259A_0_TAG, pic0_intf)
MCFG_PIC8259_ADD(I8259A_1_TAG, pic1_intf)
MCFG_UPD765A_ADD(I8272A_TAG, true, true)
MCFG_I8272A_ADD(I8272A_TAG, true)
MCFG_FLOPPY_DRIVE_ADD(I8272A_TAG ":0", tandy2k_floppies, "525qd", 0, tandy2k_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(I8272A_TAG ":1", tandy2k_floppies, "525qd", 0, tandy2k_floppy_formats)
MCFG_CENTRONICS_PRINTER_ADD(CENTRONICS_TAG, standard_centronics)

View File

@ -3,7 +3,6 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "imagedev/flopdrv.h"
#include "imagedev/cartslot.h"
#include "imagedev/cassette.h"
#include "machine/ram.h"