mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
cmi01a: Coverity 315772; fm7: Coverity 315775
This commit is contained in:
parent
3e4cf534db
commit
a1719a7c9c
@ -252,7 +252,7 @@ void cmi01a_device::pulse_gzx()
|
||||
void cmi01a_device::reset_waveform_segment()
|
||||
{
|
||||
m_segment_cnt &= 0x007f;
|
||||
m_segment_cnt = 0x4000 | (m_ws << 7);
|
||||
m_segment_cnt |= (0x4000 | (m_ws << 7));
|
||||
}
|
||||
|
||||
void cmi01a_device::load_w(int state)
|
||||
|
@ -363,10 +363,13 @@ void fm77_state::alu_function_not(uint32_t offset)
|
||||
{
|
||||
if(!(m_alu.bank_disable & (1 << x)))
|
||||
{
|
||||
#ifdef UNUSED
|
||||
// "dat" is overwritten before it can get used: Coverity 315775
|
||||
if(m_alu.lcolour & (1 << x))
|
||||
dat = 0xff;
|
||||
else
|
||||
dat = 0;
|
||||
#endif
|
||||
|
||||
mask = (m_video_ram[(offset & 0x3fff) + (x * 0x4000) + (page * 0xc000)]);
|
||||
dat = ~mask;
|
||||
|
Loading…
Reference in New Issue
Block a user