(MESS) adam: Removed runtime tagmap lookups. (nw)

This commit is contained in:
Curt Coder 2014-03-31 10:22:26 +00:00
parent 55a53a4729
commit 2d7b9fac51
2 changed files with 5 additions and 5 deletions

View File

@ -185,7 +185,7 @@ adam_fdc_device::adam_fdc_device(const machine_config &mconfig, const char *tag,
device_adamnet_card_interface(mconfig, *this), device_adamnet_card_interface(mconfig, *this),
m_maincpu(*this, M6801_TAG), m_maincpu(*this, M6801_TAG),
m_fdc(*this, WD2793_TAG), m_fdc(*this, WD2793_TAG),
m_floppy0(*this, WD2793_TAG":0"), m_floppy0(*this, WD2793_TAG":0:525ssdd"),
m_floppy(NULL), m_floppy(NULL),
m_ram(*this, "ram"), m_ram(*this, "ram"),
m_sw3(*this, "SW3") m_sw3(*this, "SW3")
@ -252,7 +252,7 @@ READ8_MEMBER( adam_fdc_device::p1_r )
UINT8 data = 0x00; UINT8 data = 0x00;
// disk in place // disk in place
data |= m_floppy0->get_device()->exists() ? 0x00 : 0x01; data |= m_floppy0->exists() ? 0x00 : 0x01;
// floppy data request // floppy data request
data |= m_fdc->drq_r() ? 0x04 : 0x00; data |= m_fdc->drq_r() ? 0x04 : 0x00;
@ -296,7 +296,7 @@ WRITE8_MEMBER( adam_fdc_device::p1_w )
if (BIT(data, 5)) if (BIT(data, 5))
{ {
m_floppy = m_floppy0->get_device(); m_floppy = m_floppy0;
} }
m_fdc->set_floppy(m_floppy); m_fdc->set_floppy(m_floppy);

View File

@ -29,7 +29,7 @@
// ======================> adam_fdc_device // ======================> adam_fdc_device
class adam_fdc_device : public device_t, class adam_fdc_device : public device_t,
public device_adamnet_card_interface public device_adamnet_card_interface
{ {
public: public:
// construction/destruction // construction/destruction
@ -58,7 +58,7 @@ protected:
required_device<cpu_device> m_maincpu; required_device<cpu_device> m_maincpu;
required_device<wd2793_t> m_fdc; required_device<wd2793_t> m_fdc;
required_device<floppy_connector> m_floppy0; required_device<floppy_image_device> m_floppy0;
floppy_image_device *m_floppy; floppy_image_device *m_floppy;
required_shared_ptr<UINT8> m_ram; required_shared_ptr<UINT8> m_ram;
required_ioport m_sw3; required_ioport m_sw3;