Previous 199869 Revisions Next

r36330 Monday 9th March, 2015 at 00:37:34 UTC by David Haywood
don't crash on garbage values roadedge / samsh64 write on startup (nw)
[src/emu/cpu/nec]v53.c

trunk/src/emu/cpu/nec/v53.c
r244841r244842
202202   if (m_OPSEL & 0x01) // DMA Unit available
203203   {
204204      UINT16 base = (m_OPHA << 8) | m_DULA;
205      base &= 0xfffe;
205206
206207      if (m_SCTL & 0x02) // uPD71037 mode
207208      {
r244841r244842
222223   if (m_OPSEL & 0x02) // Interupt Control Unit available
223224   {
224225      UINT16 base = (m_OPHA << 8) | m_IULA;
226      base &= 0xfffe;
225227
226228      if (IOAG) // 8-bit
227229      {
r244841r244842
239241   {
240242      UINT16 base = (m_OPHA << 8) | m_TULA;
241243      //printf("installing TCU to %04x\n", base);
244      base &= 0xfffe;
242245
243246      if (IOAG) // 8-bit
244247      {
r244841r244842
256259   if (m_OPSEL & 0x08) // Serial Control Unit available
257260   {
258261      UINT16 base = (m_OPHA << 8) | m_SULA;
262      base &= 0xfffe;
263
259264      if (IOAG) // 8-bit
260265      {
261266


Previous 199869 Revisions Next


© 1997-2024 The MAME Team