mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
bt459: more debug side effects (#2743) (nw)
This commit is contained in:
parent
affd4b4ca5
commit
5eac35f6fa
@ -101,16 +101,21 @@ u8 bt459_device::get_component(rgb_t *arr, int index)
|
||||
switch (m_address_rgb)
|
||||
{
|
||||
case 0: // red component
|
||||
m_address_rgb = 1;
|
||||
if (!machine().side_effect_disabled())
|
||||
m_address_rgb = 1;
|
||||
return (m_command_2 & CR2524) == CR2524_RED ? arr[index].g() : arr[index].r();
|
||||
|
||||
case 1: // green component
|
||||
m_address_rgb = 2;
|
||||
if (!machine().side_effect_disabled())
|
||||
m_address_rgb = 2;
|
||||
return arr[index].g();
|
||||
|
||||
case 2: // blue component
|
||||
m_address_rgb = 0;
|
||||
m_address = (m_address + 1) & ADDRESS_MASK;
|
||||
if (!machine().side_effect_disabled())
|
||||
{
|
||||
m_address_rgb = 0;
|
||||
m_address = (m_address + 1) & ADDRESS_MASK;
|
||||
}
|
||||
return (m_command_2 & CR2524) == CR2524_BLUE ? arr[index].g() : arr[index].b();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user