exerion, nbmj8688, nbmj8891: initialized some variables

This commit is contained in:
Ivan Vangelista 2020-11-01 08:33:12 +01:00
parent 7194a5aab0
commit 314580ee4a
3 changed files with 7 additions and 8 deletions

View File

@ -102,9 +102,6 @@ void exerion_state::exerion_palette(palette_device &palette) const
void exerion_state::video_start()
{
int i;
uint8_t *gfx;
/* get pointers to the mixing and lookup PROMs */
m_background_mixer = memregion("proms")->base() + 0x320;
@ -119,6 +116,8 @@ void exerion_state::video_start()
save_pointer(NAME(m_background_gfx[2]), 256 * 256);
save_pointer(NAME(m_background_gfx[3]), 256 * 256);
m_cocktail_flip = 0;
/*---------------------------------
* Decode the background graphics
*
@ -134,15 +133,13 @@ void exerion_state::video_start()
* Where AA,BB,CC,DD are the 2bpp data for the pixel,and a,b,c,d are the OR
* of these two bits together.
*/
gfx = memregion("gfx3")->base();
for (i = 0; i < 4; i++)
uint8_t *gfx = memregion("gfx3")->base();
for (int i = 0; i < 4; i++)
{
int y;
uint8_t *src = gfx + i * 0x2000;
uint16_t *dst = m_background_gfx[i].get();
for (y = 0; y < 0x100; y++)
for (int y = 0; y < 0x100; y++)
{
int x;

View File

@ -549,6 +549,7 @@ void nbmj8688_state::common_video_start()
m_scrolly = 0; // reset because crystalg/crystal2 don't write to this register
m_screen_refresh = 1;
m_blitter_src_addr = 0;
save_pointer(NAME(m_videoram), 512 * 256);
save_pointer(NAME(m_clut), 0x20);

View File

@ -526,6 +526,7 @@ void nbmj8891_state::video_start()
memset(m_videoram1.get(), 0xff, (width * height * sizeof(uint8_t)));
m_gfxdraw_mode = 1;
m_screen_refresh = 1;
m_blitter_src_addr = 0;
common_save_state();
save_pointer(NAME(m_videoram1), width * height);