srmp2: initalized a couple variables to avoid asserts in drvnoclear debug builds

This commit is contained in:
Ivan Vangelista 2020-10-31 08:50:58 +01:00
parent 40bf25b8e4
commit aa4451f31d
2 changed files with 7 additions and 5 deletions

View File

@ -66,7 +66,6 @@ Note:
#include "cpu/z80/z80.h"
#include "machine/nvram.h"
#include "sound/ay8910.h"
#include "sound/msm5205.h"
#include "screen.h"
#include "speaker.h"
@ -79,6 +78,9 @@ Note:
void srmp2_state::machine_start()
{
m_adpcm_sptr = 0;
m_adpcm_eptr = 0;
save_item(NAME(m_adpcm_bank));
save_item(NAME(m_adpcm_data));
save_item(NAME(m_adpcm_sptr));

View File

@ -41,10 +41,10 @@ private:
required_region_ptr<uint8_t> m_adpcm_rom;
optional_memory_bank m_mainbank;
int m_color_bank;
int m_gfx_bank;
int m_adpcm_bank;
int m_adpcm_data;
uint8_t m_color_bank;
uint8_t m_gfx_bank;
uint8_t m_adpcm_bank;
uint8_t m_adpcm_data;
uint32_t m_adpcm_sptr;
uint32_t m_adpcm_eptr;
iox_t m_iox;