mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
don't crash on garbage values roadedge / samsh64 write on startup (nw)
This commit is contained in:
parent
c11d8fcdc6
commit
bbeddce0b4
@ -202,6 +202,7 @@ void v53_base_device::install_peripheral_io()
|
|||||||
if (m_OPSEL & 0x01) // DMA Unit available
|
if (m_OPSEL & 0x01) // DMA Unit available
|
||||||
{
|
{
|
||||||
UINT16 base = (m_OPHA << 8) | m_DULA;
|
UINT16 base = (m_OPHA << 8) | m_DULA;
|
||||||
|
base &= 0xfffe;
|
||||||
|
|
||||||
if (m_SCTL & 0x02) // uPD71037 mode
|
if (m_SCTL & 0x02) // uPD71037 mode
|
||||||
{
|
{
|
||||||
@ -222,6 +223,7 @@ void v53_base_device::install_peripheral_io()
|
|||||||
if (m_OPSEL & 0x02) // Interupt Control Unit available
|
if (m_OPSEL & 0x02) // Interupt Control Unit available
|
||||||
{
|
{
|
||||||
UINT16 base = (m_OPHA << 8) | m_IULA;
|
UINT16 base = (m_OPHA << 8) | m_IULA;
|
||||||
|
base &= 0xfffe;
|
||||||
|
|
||||||
if (IOAG) // 8-bit
|
if (IOAG) // 8-bit
|
||||||
{
|
{
|
||||||
@ -239,6 +241,7 @@ void v53_base_device::install_peripheral_io()
|
|||||||
{
|
{
|
||||||
UINT16 base = (m_OPHA << 8) | m_TULA;
|
UINT16 base = (m_OPHA << 8) | m_TULA;
|
||||||
//printf("installing TCU to %04x\n", base);
|
//printf("installing TCU to %04x\n", base);
|
||||||
|
base &= 0xfffe;
|
||||||
|
|
||||||
if (IOAG) // 8-bit
|
if (IOAG) // 8-bit
|
||||||
{
|
{
|
||||||
@ -256,6 +259,8 @@ void v53_base_device::install_peripheral_io()
|
|||||||
if (m_OPSEL & 0x08) // Serial Control Unit available
|
if (m_OPSEL & 0x08) // Serial Control Unit available
|
||||||
{
|
{
|
||||||
UINT16 base = (m_OPHA << 8) | m_SULA;
|
UINT16 base = (m_OPHA << 8) | m_SULA;
|
||||||
|
base &= 0xfffe;
|
||||||
|
|
||||||
if (IOAG) // 8-bit
|
if (IOAG) // 8-bit
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user