esq5505.cpp: attempt to fix 32bit crash (nw)

This commit is contained in:
Ivan Vangelista 2016-07-30 07:47:15 +02:00
parent db94674786
commit 95cba94386

View File

@ -273,6 +273,9 @@ void esq5505_state::machine_start()
// tell the pump about the OTIS & ESP chips
m_pump->set_otis(m_otis);
m_pump->set_esp(m_esp);
m_rom = (UINT16 *)(void *)memregion("osrom")->base();
m_ram = (UINT16 *)(void *)memshare("osram")->ptr();
}
void esq5505_state::machine_reset()
@ -280,9 +283,6 @@ void esq5505_state::machine_reset()
floppy_connector *con = machine().device<floppy_connector>("wd1772:0");
floppy_image_device *floppy = con ? con->get_device() : nullptr;
m_rom = (UINT16 *)(void *)memregion("osrom")->base();
m_ram = (UINT16 *)(void *)memshare("osram")->ptr();
// Default analog values:
m_analog_values[0] = 0x7fff; // pitch mod: start in the center
m_analog_values[1] = 0x0000; // patch select: nothing pressed.