mirror of
https://github.com/holub/mame
synced 2025-05-12 00:58:53 +03:00
Fixed Atari bad logo colors at POST in Area 51:Site 4 [Angelo Salese]
This commit is contained in:
parent
1fe301d758
commit
e7a669022e
@ -384,6 +384,7 @@ static WRITE32_HANDLER( disp_ctrl_w )
|
||||
{
|
||||
mediagx_state *state = space->machine().driver_data<mediagx_state>();
|
||||
|
||||
printf("disp_ctrl_w %08X, %08X, %08X\n", data, offset*4, mem_mask);
|
||||
COMBINE_DATA(state->m_disp_ctrl_reg + offset);
|
||||
}
|
||||
|
||||
@ -432,18 +433,26 @@ static WRITE32_HANDLER( memory_ctrl_w )
|
||||
{
|
||||
mediagx_state *state = space->machine().driver_data<mediagx_state>();
|
||||
|
||||
//mame_printf_debug("memory_ctrl_w %08X, %08X, %08X\n", data, offset, mem_mask);
|
||||
if (offset == 7)
|
||||
printf("memory_ctrl_w %08X, %08X, %08X\n", data, offset*4, mem_mask);
|
||||
if (offset == 0x20/4)
|
||||
{
|
||||
state->m_pal_index = 0;
|
||||
}
|
||||
else if (offset == 8)
|
||||
{
|
||||
state->m_pal[state->m_pal_index] = data & 0xff;
|
||||
state->m_pal_index++;
|
||||
if (state->m_pal_index >= 768)
|
||||
if((state->m_disp_ctrl_reg[DC_GENERAL_CFG] & 0x00e00000) == 0x00400000)
|
||||
{
|
||||
state->m_pal_index = 0;
|
||||
// guess: crtc params?
|
||||
// ...
|
||||
}
|
||||
else if((state->m_disp_ctrl_reg[DC_GENERAL_CFG] & 0x00f00000) == 0x00000000)
|
||||
{
|
||||
state->m_pal_index = data;
|
||||
}
|
||||
else if((state->m_disp_ctrl_reg[DC_GENERAL_CFG] & 0x00f00000) == 0x00100000)
|
||||
{
|
||||
state->m_pal[state->m_pal_index] = data & 0xff;
|
||||
state->m_pal_index++;
|
||||
if (state->m_pal_index >= 768)
|
||||
{
|
||||
state->m_pal_index = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user