mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
Fix a couple of Coverity bugs
This commit is contained in:
parent
946bde46e6
commit
262cd55477
@ -319,7 +319,7 @@ uint8_t a2bus_pcxporter_device::read_c800(uint16_t offset)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_regs[offset];
|
return m_regs[offset & 0x3ff];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -436,7 +436,7 @@ void a2bus_pcxporter_device::write_c800(uint16_t offset, uint8_t data)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
// logerror("%02x to C800 at %x\n", data, offset + 0xc800);
|
// logerror("%02x to C800 at %x\n", data, offset + 0xc800);
|
||||||
m_regs[offset] = data;
|
m_regs[offset & 0x3ff] = data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user