mirror of
https://github.com/holub/mame
synced 2025-06-20 03:06:39 +03:00
fix debug crashes / asserts.
This commit is contained in:
parent
69f178b612
commit
94c5464c72
@ -196,8 +196,8 @@ void sega_genesis_vdp_device::device_start()
|
|||||||
irq4_on_timer = machine().scheduler().timer_alloc(FUNC(irq4_on_timer_callback), (void*)this);
|
irq4_on_timer = machine().scheduler().timer_alloc(FUNC(irq4_on_timer_callback), (void*)this);
|
||||||
megadriv_render_timer = machine().scheduler().timer_alloc(FUNC(megadriv_render_timer_callback), (void*)this);
|
megadriv_render_timer = machine().scheduler().timer_alloc(FUNC(megadriv_render_timer_callback), (void*)this);
|
||||||
|
|
||||||
m_space68k = &machine().device<legacy_cpu_device>(":maincpu")->space();
|
m_space68k = &machine().device<m68000_base_device>(":maincpu")->space();
|
||||||
m_cpu68k = machine().device<legacy_cpu_device>(":maincpu");
|
m_cpu68k = machine().device<m68000_base_device>(":maincpu");
|
||||||
}
|
}
|
||||||
|
|
||||||
void sega_genesis_vdp_device::device_reset()
|
void sega_genesis_vdp_device::device_reset()
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "video/315_5124.h"
|
#include "video/315_5124.h"
|
||||||
|
#include "cpu/m68000/m68000.h"
|
||||||
|
|
||||||
|
|
||||||
/* The VDP occupies addresses C00000h to C0001Fh.
|
/* The VDP occupies addresses C00000h to C0001Fh.
|
||||||
@ -299,7 +300,7 @@ private:
|
|||||||
UINT16* megadrive_vdp_palette_lookup_highlight;
|
UINT16* megadrive_vdp_palette_lookup_highlight;
|
||||||
|
|
||||||
address_space *m_space68k;
|
address_space *m_space68k;
|
||||||
legacy_cpu_device* m_cpu68k;
|
m68000_base_device* m_cpu68k;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ public:
|
|||||||
m_io_mouse_y(*this, "MOUSE_Y")
|
m_io_mouse_y(*this, "MOUSE_Y")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
required_device<legacy_cpu_device> m_maincpu;
|
required_device<m68000_base_device> m_maincpu;
|
||||||
required_device<via6522_device> m_via0;
|
required_device<via6522_device> m_via0;
|
||||||
required_device<via6522_device> m_via1;
|
required_device<via6522_device> m_via1;
|
||||||
optional_device<applefdc_base_device> m_fdc;
|
optional_device<applefdc_base_device> m_fdc;
|
||||||
|
Loading…
Reference in New Issue
Block a user