mirror of
https://github.com/holub/mame
synced 2025-06-21 03:36:33 +03:00
esq5505.cpp: attempt to fix 32bit crash (nw)
This commit is contained in:
parent
db94674786
commit
95cba94386
@ -273,6 +273,9 @@ void esq5505_state::machine_start()
|
|||||||
// tell the pump about the OTIS & ESP chips
|
// tell the pump about the OTIS & ESP chips
|
||||||
m_pump->set_otis(m_otis);
|
m_pump->set_otis(m_otis);
|
||||||
m_pump->set_esp(m_esp);
|
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()
|
void esq5505_state::machine_reset()
|
||||||
@ -280,9 +283,6 @@ void esq5505_state::machine_reset()
|
|||||||
floppy_connector *con = machine().device<floppy_connector>("wd1772:0");
|
floppy_connector *con = machine().device<floppy_connector>("wd1772:0");
|
||||||
floppy_image_device *floppy = con ? con->get_device() : nullptr;
|
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:
|
// Default analog values:
|
||||||
m_analog_values[0] = 0x7fff; // pitch mod: start in the center
|
m_analog_values[0] = 0x7fff; // pitch mod: start in the center
|
||||||
m_analog_values[1] = 0x0000; // patch select: nothing pressed.
|
m_analog_values[1] = 0x0000; // patch select: nothing pressed.
|
||||||
|
Loading…
Reference in New Issue
Block a user