mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +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;
|
||||
}
|
||||
|
||||
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:
|
||||
// logerror("%02x to C800 at %x\n", data, offset + 0xc800);
|
||||
m_regs[offset] = data;
|
||||
m_regs[offset & 0x3ff] = data;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user