bingor.cpp: Fix palette size; restore palette RAM to prevent crashing (nw)

Here the palette RAM really is physically part of the same RAM used for video data. This is controlled by an unemulated VDP.
This commit is contained in:
AJR 2019-05-06 05:59:33 -04:00
parent d5dd5c1ce9
commit 8b56e83362

View File

@ -559,6 +559,7 @@ private:
void bingor_state::video_start()
{
m_palette->basemem().set(&m_blit_ram[0x300/2], 0x10 * sizeof(uint16_t), 16, ENDIANNESS_LITTLE, 2);
}
uint32_t bingor_state::screen_update_bingor(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
@ -713,7 +714,7 @@ void bingor_state::bingor(machine_config &config)
screen.set_visarea(0, 400-1, 0, 300-1);
screen.set_screen_update(FUNC(bingor_state::screen_update_bingor));
PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x100);
PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x10);
SPEAKER(config, "mono").front_center();
SAA1099(config, "saa", 6000000).add_route(ALL_OUTPUTS, "mono", 0.50);
@ -783,7 +784,7 @@ void bingor_state::vip2000(machine_config &config)
screen.set_visarea(0, 400-1, 0, 300-1);
screen.set_screen_update(FUNC(bingor_state::screen_update_bingor));
PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x100);
PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x10);
SPEAKER(config, "mono").front_center();