(MESS) ti99: Resolve READY in device_config_complete. (nw)

This commit is contained in:
Michael Zapf 2013-12-11 20:27:10 +00:00
parent 5b4587f182
commit 0754a2335c
2 changed files with 13 additions and 5 deletions

View File

@ -394,12 +394,19 @@ void ti99_datamux_device::device_stop(void)
if (m_ram16b) free(m_ram16b);
}
void ti99_datamux_device::device_config_complete()
{
const datamux_config *conf = reinterpret_cast<const datamux_config *>(static_config());
// Must do this here, or ready may be called too early
// The device is built below because we need the dip switches.
m_ready.resolve(conf->ready, *this);
}
void ti99_datamux_device::device_reset(void)
{
const datamux_config *conf = reinterpret_cast<const datamux_config *>(static_config());
const dmux_device_list_entry *list = conf->devlist;
m_ready.resolve(conf->ready, *this);
m_cpu = machine().device("maincpu");
// m_space = &m_cpu->memory().space(AS_PROGRAM);

View File

@ -80,10 +80,11 @@ public:
protected:
/* Constructor */
virtual void device_start(void);
virtual void device_stop(void);
virtual void device_reset(void);
virtual ioport_constructor device_input_ports() const;
void device_start();
void device_stop();
void device_reset();
void device_config_complete();
ioport_constructor device_input_ports() const;
private:
// Keeps the address space pointer