mirror of
https://github.com/holub/mame
synced 2025-07-06 10:29:38 +03:00
fixed snesb regression (nw)
This commit is contained in:
parent
a6e9d21953
commit
4e6b1a5ff3
@ -580,7 +580,11 @@ class snes_state : public driver_device
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
snes_state(const machine_config &mconfig, device_type type, const char *tag)
|
snes_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag) { }
|
: driver_device(mconfig, type, tag),
|
||||||
|
m_maincpu(*this, "maincpu"),
|
||||||
|
m_soundcpu(*this, "soundcpu"),
|
||||||
|
m_spc700(*this, "spc700"),
|
||||||
|
m_superfx(*this, "superfx") { }
|
||||||
|
|
||||||
/* misc */
|
/* misc */
|
||||||
UINT16 m_hblank_offset;
|
UINT16 m_hblank_offset;
|
||||||
@ -649,10 +653,10 @@ public:
|
|||||||
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||||
|
|
||||||
/* devices */
|
/* devices */
|
||||||
_5a22_device *m_maincpu;
|
required_device<_5a22_device> m_maincpu;
|
||||||
spc700_device *m_soundcpu;
|
required_device<spc700_device> m_soundcpu;
|
||||||
snes_sound_device *m_spc700;
|
required_device<snes_sound_device> m_spc700;
|
||||||
cpu_device *m_superfx;
|
optional_device<cpu_device> m_superfx;
|
||||||
upd7725_device *m_upd7725;
|
upd7725_device *m_upd7725;
|
||||||
upd96050_device *m_upd96050;
|
upd96050_device *m_upd96050;
|
||||||
|
|
||||||
|
@ -1054,12 +1054,6 @@ void snes_state::snes_init_ram()
|
|||||||
MACHINE_START( snes )
|
MACHINE_START( snes )
|
||||||
{
|
{
|
||||||
snes_state *state = machine.driver_data<snes_state>();
|
snes_state *state = machine.driver_data<snes_state>();
|
||||||
|
|
||||||
state->m_maincpu = machine.device<_5a22_device>("maincpu");
|
|
||||||
state->m_soundcpu = machine.device<spc700_device>("soundcpu");
|
|
||||||
state->m_spc700 = machine.device<snes_sound_device>("spc700");
|
|
||||||
state->m_superfx = machine.device<cpu_device>("superfx");
|
|
||||||
|
|
||||||
// power-on sets these registers like this
|
// power-on sets these registers like this
|
||||||
SNES_CPU_REG_STATE(WRIO) = 0xff;
|
SNES_CPU_REG_STATE(WRIO) = 0xff;
|
||||||
// SNES_CPU_REG_STATE(WRMPYA) = 0xff;
|
// SNES_CPU_REG_STATE(WRMPYA) = 0xff;
|
||||||
|
Loading…
Reference in New Issue
Block a user