mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Inserted checks to prevent debugger access. (nw)
This commit is contained in:
parent
e9b9169c36
commit
220da4e3d7
@ -1673,6 +1673,9 @@ WRITE_LINE_MEMBER( tms5220_device::wsq_w )
|
|||||||
|
|
||||||
WRITE8_MEMBER( tms5220_device::data_w )
|
WRITE8_MEMBER( tms5220_device::data_w )
|
||||||
{
|
{
|
||||||
|
// prevent debugger from changing the internal state
|
||||||
|
if (space.debugger_access()) return;
|
||||||
|
|
||||||
#ifdef DEBUG_RS_WS
|
#ifdef DEBUG_RS_WS
|
||||||
logerror("tms5220_data_w: data %02x\n", data);
|
logerror("tms5220_data_w: data %02x\n", data);
|
||||||
#endif
|
#endif
|
||||||
@ -1703,6 +1706,9 @@ WRITE8_MEMBER( tms5220_device::data_w )
|
|||||||
|
|
||||||
READ8_MEMBER( tms5220_device::status_r )
|
READ8_MEMBER( tms5220_device::status_r )
|
||||||
{
|
{
|
||||||
|
// prevent debugger from changing the internal state
|
||||||
|
if (space.debugger_access()) return 0;
|
||||||
|
|
||||||
if (!m_true_timing)
|
if (!m_true_timing)
|
||||||
{
|
{
|
||||||
/* bring up to date first */
|
/* bring up to date first */
|
||||||
|
@ -116,6 +116,9 @@ tms9928a_device::tms9928a_device( const machine_config &mconfig, const char *tag
|
|||||||
|
|
||||||
READ8_MEMBER( tms9928a_device::vram_read )
|
READ8_MEMBER( tms9928a_device::vram_read )
|
||||||
{
|
{
|
||||||
|
// prevent debugger from changing the address base
|
||||||
|
if (space.debugger_access()) return 0;
|
||||||
|
|
||||||
UINT8 data = m_ReadAhead;
|
UINT8 data = m_ReadAhead;
|
||||||
|
|
||||||
m_ReadAhead = m_vram_space->read_byte(m_Addr);
|
m_ReadAhead = m_vram_space->read_byte(m_Addr);
|
||||||
@ -128,6 +131,9 @@ READ8_MEMBER( tms9928a_device::vram_read )
|
|||||||
|
|
||||||
WRITE8_MEMBER( tms9928a_device::vram_write )
|
WRITE8_MEMBER( tms9928a_device::vram_write )
|
||||||
{
|
{
|
||||||
|
// prevent debugger from changing the address base
|
||||||
|
if (space.debugger_access()) return;
|
||||||
|
|
||||||
m_vram_space->write_byte(m_Addr, data);
|
m_vram_space->write_byte(m_Addr, data);
|
||||||
m_Addr = (m_Addr + 1) & (m_vram_size - 1);
|
m_Addr = (m_Addr + 1) & (m_vram_size - 1);
|
||||||
m_ReadAhead = data;
|
m_ReadAhead = data;
|
||||||
@ -137,6 +143,9 @@ WRITE8_MEMBER( tms9928a_device::vram_write )
|
|||||||
|
|
||||||
READ8_MEMBER( tms9928a_device::register_read )
|
READ8_MEMBER( tms9928a_device::register_read )
|
||||||
{
|
{
|
||||||
|
// prevent debugger from changing the internal state
|
||||||
|
if (space.debugger_access()) return 0;
|
||||||
|
|
||||||
UINT8 data = m_StatusReg;
|
UINT8 data = m_StatusReg;
|
||||||
|
|
||||||
m_StatusReg = m_FifthSprite;
|
m_StatusReg = m_FifthSprite;
|
||||||
@ -262,6 +271,9 @@ void tms9928a_device::change_register(UINT8 reg, UINT8 val)
|
|||||||
|
|
||||||
WRITE8_MEMBER( tms9928a_device::register_write )
|
WRITE8_MEMBER( tms9928a_device::register_write )
|
||||||
{
|
{
|
||||||
|
// prevent debugger from changing the internal state
|
||||||
|
if (space.debugger_access()) return;
|
||||||
|
|
||||||
if (m_latch)
|
if (m_latch)
|
||||||
{
|
{
|
||||||
/* set high part of read/write address */
|
/* set high part of read/write address */
|
||||||
|
Loading…
Reference in New Issue
Block a user