mirror of
https://github.com/holub/mame
synced 2025-06-08 22:03:55 +03:00
apple/dafb.cpp: Handle debugger reads better.
This commit is contained in:
parent
5af7effb73
commit
70c6754a06
@ -624,17 +624,21 @@ u32 dafb_base::ramdac_r(offs_t offset)
|
|||||||
switch (offset << 2)
|
switch (offset << 2)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
if (!machine().side_effects_disabled())
|
||||||
|
{
|
||||||
m_pal_idx = 0;
|
m_pal_idx = 0;
|
||||||
|
}
|
||||||
return m_pal_address;
|
return m_pal_address;
|
||||||
|
|
||||||
case 0x10:
|
case 0x10:
|
||||||
{
|
{
|
||||||
pen_t entry = m_palette->pen(m_pal_address);
|
pen_t const entry = m_palette->pen(m_pal_address);
|
||||||
|
u8 const idx = m_pal_idx;
|
||||||
if (!machine().side_effects_disabled())
|
if (!machine().side_effects_disabled())
|
||||||
{
|
{
|
||||||
m_pal_idx++;
|
m_pal_idx++;
|
||||||
}
|
}
|
||||||
switch (m_pal_idx - 1)
|
switch (idx)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
return (entry >> 16) & 0xff;
|
return (entry >> 16) & 0xff;
|
||||||
|
Loading…
Reference in New Issue
Block a user