mirror of
https://github.com/holub/mame
synced 2025-10-06 00:54:22 +03:00
tms34010.c: fixed a stupid error I did while moving this CPU core to inline config, fixes MT05911. MT05910 on the other hand start happening way before my screw-up. Will see if I can fix it or at least determine the commit which caused the regression (nw)
This commit is contained in:
parent
71a6225260
commit
80d82c03cd
@ -35,7 +35,7 @@ tms340x0_device::tms340x0_device(const machine_config &mconfig, device_type type
|
|||||||
: cpu_device(mconfig, type, name, tag, owner, clock, shortname, __FILE__)
|
: cpu_device(mconfig, type, name, tag, owner, clock, shortname, __FILE__)
|
||||||
, device_video_interface(mconfig, *this)
|
, device_video_interface(mconfig, *this)
|
||||||
, m_program_config("program", ENDIANNESS_LITTLE, 16, 32, 3)
|
, m_program_config("program", ENDIANNESS_LITTLE, 16, 32, 3)
|
||||||
, m_reset_deferred(FALSE)
|
, m_halt_on_reset(FALSE)
|
||||||
, m_pixclock(0)
|
, m_pixclock(0)
|
||||||
, m_pixperclock(0)
|
, m_pixperclock(0)
|
||||||
, m_output_int_cb(*this)
|
, m_output_int_cb(*this)
|
||||||
@ -648,6 +648,8 @@ void tms340x0_device::device_reset()
|
|||||||
|
|
||||||
/* HALT the CPU if requested, and remember to re-read the starting PC */
|
/* HALT the CPU if requested, and remember to re-read the starting PC */
|
||||||
/* the first time we are run */
|
/* the first time we are run */
|
||||||
|
m_reset_deferred = m_halt_on_reset;
|
||||||
|
|
||||||
if (m_reset_deferred)
|
if (m_reset_deferred)
|
||||||
{
|
{
|
||||||
io_register_w(*m_program, REG_HSTCTLH, 0x8000, 0xffff);
|
io_register_w(*m_program, REG_HSTCTLH, 0x8000, 0xffff);
|
||||||
@ -714,11 +716,10 @@ void tms340x0_device::execute_run()
|
|||||||
m_icount = 0;
|
m_icount = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if the CPU's reset was deferred, do it now */
|
/* if the CPU's reset was deferred, do it now */
|
||||||
if (m_reset_deferred)
|
if (m_reset_deferred)
|
||||||
{
|
{
|
||||||
m_reset_deferred = 0;
|
m_reset_deferred = FALSE;
|
||||||
m_pc = RLONG(0xffffffe0);
|
m_pc = RLONG(0xffffffe0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ public:
|
|||||||
// construction/destruction
|
// construction/destruction
|
||||||
tms340x0_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname);
|
tms340x0_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname);
|
||||||
|
|
||||||
static void set_halt_on_reset(device_t &device, bool reset_deferred) { downcast<tms340x0_device &>(device).m_reset_deferred = reset_deferred; }
|
static void set_halt_on_reset(device_t &device, bool halt_on_reset) { downcast<tms340x0_device &>(device).m_halt_on_reset = halt_on_reset; }
|
||||||
static void set_pixel_clock(device_t &device, UINT32 pixclock) { downcast<tms340x0_device &>(device).m_pixclock = pixclock; }
|
static void set_pixel_clock(device_t &device, UINT32 pixclock) { downcast<tms340x0_device &>(device).m_pixclock = pixclock; }
|
||||||
static void set_pixels_per_clock(device_t &device, int pixperclock) { downcast<tms340x0_device &>(device).m_pixperclock = pixperclock; }
|
static void set_pixels_per_clock(device_t &device, int pixperclock) { downcast<tms340x0_device &>(device).m_pixperclock = pixperclock; }
|
||||||
static void set_scanline_ind16_callback(device_t &device, scanline_ind16_cb_delegate callback) { downcast<tms340x0_device &>(device).m_scanline_ind16_cb = callback; }
|
static void set_scanline_ind16_callback(device_t &device, scanline_ind16_cb_delegate callback) { downcast<tms340x0_device &>(device).m_scanline_ind16_cb = callback; }
|
||||||
@ -327,7 +327,8 @@ protected:
|
|||||||
INT32 m_gfxcycles;
|
INT32 m_gfxcycles;
|
||||||
UINT8 m_pixelshift;
|
UINT8 m_pixelshift;
|
||||||
UINT8 m_is_34020;
|
UINT8 m_is_34020;
|
||||||
bool m_reset_deferred; /* /HCS pin, which determines HALT state after reset */
|
bool m_reset_deferred;
|
||||||
|
bool m_halt_on_reset; /* /HCS pin, which determines HALT state after reset */
|
||||||
UINT8 m_hblank_stable;
|
UINT8 m_hblank_stable;
|
||||||
UINT8 m_external_host_access;
|
UINT8 m_external_host_access;
|
||||||
UINT8 m_executing;
|
UINT8 m_executing;
|
||||||
|
Loading…
Reference in New Issue
Block a user